Is there some way to limit the order
MyOrder = EnterLongLimit(0, true, 1, SomePrice, "MyBuy1");
by time when it does not get Filled? Lets say give it 30 minutes on 5M chart to fill, otherwise cancel it.
I tried approach like this with no success.
if ( MyOrder != null && ToTime( MyOrder.Time) > (ToTime(Time[0]) + 1000*30 ) ) { CancelOrder(MyOrder); }
Or is there any simple way to set up limit prices on which it will automatically cancel the unfilled EnterLongLimit()?
Lets say I EnterLongLimit() but the market goes short for hours and not get filled. So is there a way to set Limit for example
EnterLongLimit(0, true, 1, 10000 , "MyBuy1")
to cancel this order at 9970 (-30 ticks) if it did not get filled by then?
I didnt find anything useful
Thank you very much
Comment