I thought I´m ready with everything for my script-strategies but there occurs still one problem.
I run the strategy COBC=true in a 5 RangeChart (=dataseries5). Entries I do at close of 3RangeChart (dataseries 3). Entries work fine and I move and cancel stops with stopOrder as well. But my exitOrders are not filled.
if (BarsInProgress!=3) return;
entryconditions() entryOrder=EnterLong (3000, "L1"); works OK
if(GetCurrentAsk(0) == DonchianChannel(BarsArray[5],21)Upper[1])
exitOrder1a = ExitLong(1000, "xL1a","L1"); doesnt work, the exitOrder is not filled.
Also with if(GetCurrentAsk(3) == DonchianChannel(BarsArray[5],21)Upper[1])
exitOrder1a = ExitLong(1000, "xL1a","L1"); the exitOrder isnt filled.
stopOrders work and I move or cancel with eg if(GetCurrentAsk() > Position.AvgPrice + (80*TickSize) && stopOrder1a!= null && stopOrder1a.OrderState==OrderState.Accepted)
stopOrder2a)=ExitLongStop(...)
Why isn´t the exitOrder filled?
Thank you for your help.
Best
Tony
Comment