I'm having a hard time diagnosing this error. In my strategy, my code is:
if (Position.MarketPosition == MarketPosition.Flat) entryOrder = null;
if ( (entryOrder == null) && ( (My Setup Condition == true) ) {
SetStopLoss(CalculationMode.Ticks, 4);
SetProfitTarget(CalculationMode.Ticks, 4);
entryOrder = EnterLongLimit(0, false, ...");
}
Then, I get into a trade, but the Stops and Profit targets are ignored, and the trade never closes This occurs rarely, and seemingly randomly.
Any thoughts on this? Thanks for your help,
Comment