My current situation is that
when a certain condition is true i enter either a long or a short by:
EnterLong(Convert.ToInt32(DefaultQuantity), "longEntry1");
EnterShort(Convert.ToInt32(DefaultQuantity), "shortEntry1");
Now I want to set a stop loss for this long right?
Im not sure if i should use SetStopLoss or ExitLongLimit
I have the following two options that I wrote that im not sure what is better , I tired using both but in the backtest, the stop losses don't execute:
SetStopLoss(CalculationMode.Currency, Swing.SwingLow[2]);
ExitLongLimit(Swing.SwingLow[2], "longEntry1");
Am i doing something wrong? Backtest seems not to work with the stop losses i have in place.

Comment