Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 17,605 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
EnterLong and EnterShort #441742
06/01/14 13:04
06/01/14 13:04
Joined: Apr 2014
Posts: 482
Sydney, Australia
B
boatman Offline OP
Senior Member
boatman  Offline OP
Senior Member
B

Joined: Apr 2014
Posts: 482
Sydney, Australia
Hi everyone

Another beginner question coming.

I am a bit confused about the EnterLong and EnterShort functions. For most of Zorro's functions, it is possible to define the function's parameters in the brackets following the function. For example SMA(price(), 50). However, the EnterLong and EnterShort functions need to have their parameters defined prior to calling the function.

Why is this so?

Thanks in advance for any advice.

Re: EnterLong and EnterShort [Re: boatman] #441744
06/01/14 14:32
06/01/14 14:32
Joined: Jul 2013
Posts: 522
D
dusktrader Offline
User
dusktrader  Offline
User
D

Joined: Jul 2013
Posts: 522
I might be misunderstanding your question here... but I think the answer is that enterLong() enterShort() allow you to define the parameters either before calling them or at the time of the call. You can also skip defining them and then Zorro will use the functions defaults.

man page here


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1