I want develop a strategy. I need put a stop buy order and stop sell order. When the prices touch the first of them, I cancel the other.
maxCuartaVela = High[0];
minCuartaVela = Low[0];
// Orden de compra y venta stop
ordenCompraStop = EnterLongStopMarket(1, maxCuartaVela + 2 * TickSize, "CompraStop");
ordenVentaStop = EnterShortStopMarket(1, minCuartaVela - 2 * TickSize, "VentaStop");
Strategy 'XXXXXX': An Enter() method to submit an entry order at '11/28/2024 09:20:00' has been ignored. Please search on the term 'Internal Order Handling Rules that Reduce Unwanted Positions' in the Help Guide for detailed explanation.
How can I do it?
Thanks

Comment