Hello,
I have this issue in back-testing.
I set stop-loss at 10% but Amibroker is not exiting some trades even in 88 months. Backtest report has -94% in %Chg field and -156% in %Profit field!
Here's the code for stop loss.
ApplyStop(Type=stopTypeLoss, Mode=stopModePercent, Amount=10, ExitAtStop=1, volatile=False, ReentryDelay=1, ValidFrom=0, ValidTo=-1, ActivationFloor=ProfitTargetPercent);
ApplyStop(Type=stopTypeTrailing, Mode=stopModePercent, Amount=0.25, ExitAtStop=1, volatile=False, ReentryDelay=1, ValidFrom=0, ValidTo=-1, ActivationFloor=5.0);
Settings:
Chart
The AFL does not override any of the price variables like BuyPrice or SellPrice.