EnterLong and EnterShort

Posted By: boatman

EnterLong and EnterShort - 06/01/14 13:04

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.
Posted By: dusktrader

Re: EnterLong and EnterShort - 06/01/14 14:32

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
© 2024 lite-C Forums