zorro not placing order when trying to use it as a scalper

Posted By: roshanbaba

zorro not placing order when trying to use it as a scalper - 01/26/16 04:05

I have added the set(TICKS) flag but y isnt zorro placing an order while trading. It seems to work fine while testing.

I want to use the script as a scalper...which would run on every tick.

I am a newbie with zorro s module..

the outline script looks like this....


function run()
{
set(TICKS);
......
.....
}


when I use only the tick function then it says there is no MAIN or RUN function.
Posted By: jcl

Re: zorro not placing order when trying to use it as a scalper - 01/26/16 14:52

Trading normally produces the same results as testing. So check first if the not placed orders are maybe just a normal behavior of the script. Otherwise use printf statements for checking why and when the trade conditions in your script are not fulfilled.
Posted By: DdlV

Re: zorro not placing order when trying to use it as a scalper - 01/26/16 17:03

Welcome roshanbaba!

Probably best to clarify a few things...

set(TICKS) applies to Test - it determines how the History files are processed in Test.

If I understand correctly what you're trying to accomplish, you need BOTH run() and tick() functions. run() is the required "master" function for Trading and will be called on every bar, however you've defined the bars. tick() would be called on every tick.

HTH.
© 2024 lite-C Forums