Print(BarsSinceEntry().ToString();
I think I can see what the problem is, my data series uses 1 minute time frames, and this is what I get….
I can understand that the order is cancelled because BarsSinceEntry is more than 3.
Looking back at the output it would appear that BarsSinceEntry only resets to 0 when a limit order is executed.
So is there a way that BarsSinceEntry can be reset to 0 when a limit order is placed but not executed? Or is there a way round this?
11
12
13
14
15
10:22AM Entered internal PlaceOrder() method at 10:22:00AM: Action=SellShort OrderType=Limit Quantity =1…..etc
Cancelled custom managed order at 10:23:00 AM: Order='NT-00002/Back101'....etc
16
17
18

Comment