I'm trying to develop a script that at a certain time sends 2 limit orders together, a buy and a sell.
It seems that it always reads only the first instruction and ignores the second, I tried also to write 2 condition sets but the second part is ignores:
If (Totime(Time[0]) >= ToTime(10,20,0)
&& ToTime(Time[0])< ToTime(13,35,0)
&& Close[0] < Level1Short)
{EnterShortLimit(DefaultQuantity, Level1Short,"SE1");}
If (Totime(Time[0]) >= ToTime(10,20,0)
&& ToTime(Time[0])< ToTime(13,35,0)
&& Close[0] > Level1Long)
{EnterLongLimit(DefaultQuantity, Level1Long,"LE1");}
Thanks, bye
Smodato

Comment