i have strategy activating a ExitLongStopMarket.
The order is put correctly however in the next bar update it gets cancelled.
you can see in the screenshot attached
this is my code below
if (StopLossSet == 0 && Position.GetUnrealizedProfitLoss(PerformanceUnit.P oints, Close[0]) > 0.25 && Close[0] >= EMA200[0]) { Print("Position Hit EMA200, Set Exit Stop Market Order 0.25 above Average Price"); ExitLongStopMarket((int)CalculationMode.Price, (Position.AveragePrice + 0.25)); StopLossSet = 1; }
So this ExitLongStopMarket gets ran only one time, since what i want is to set it and let the price continue ging up or closing with 1 tick profit.
but i dont know why is getting cancelled as soon as next bar is created.
what am i doing wrong?
Thanks
Comment