I have a trailing stop in the OnBarUpdate method of my strategy which works fine. I also wanted a stop-loss, but read that you cannot use the SetStopLoss (?) method, so I programmed into my exit condition manually within the OnBarUpdate method to exit if the current close is less than the MIN of 5 bars prior to BarsSinceEntry. - Trying to have a trailing stop and a stop loss that exits if the close of the current bar is less than the low price of the 5 bars prior to entry.
However, the manual portion (stop loss) is not functioning and the trailing stop method seems to override all other exit methods.
Please advise.
Thank you,
hbmiles2000
Comment