Hello, how could I solve it, it doesn't let me place an EnterShortStopMarket and an EnterLongStopMarket in a channel in case it breaks either of the two. how should I do it?
This is the error
An Enter() method to submit an entry order at '04/05/2024 08:30:00' has been ignored. Please search on the term 'Internal Order Handling Rules that Reduce Unwanted Positions' in the Help Guide for detailed explanation.
//if (currentPrice > rectangleHigh)
//{
double buyStopPrice = rectangleHigh + 30 * TickSize;
EnterLongStopMarket(0, true, 20, buyStopPrice, "");
// SetStopLoss(CalculationMode.Price, rectangleLow);
//}
// Verificar si el precio rompe el rectángulo hacia abajo
//if (currentPrice < rectangleLow)
//{
double sellStopPrice = rectangleLow - 30 * TickSize;
EnterShortStopMarket(0, true, 20, sellStopPrice, "");
SetStopLoss(CalculationMode.Price, rectangleLow);
//}

Comment