Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,097 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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