There is my code:
Stav=0;
protected override void OnBarUpdate()
{
switch(Stav)
{
case 0:
if (ToTime(Time[0]) == ToTime(13,40,0))
{
Stav = 1;
}
break;
case 1:
EnterLong();
break;
}
}
For example, when actual time is 16:30 so after start of this strategy is open Long. I tried to check Time[0] trought Output window and after start has Time[0] some historical values. Example: 233000, 233100, 233200, 233300,... to the last 162900 and 163000. But in this series is value 134000 and Long order is executed. Could you help me how to start counting from last time value? Thank you
Comment