Stop Loss Missed

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.

Correction here: I changed ActivationFloor in the following line to zero:

ApplyStop(Type=stopTypeLoss, Mode=stopModePercent, Amount=10, ExitAtStop=1, volatile=False, ReentryDelay=1, ValidFrom=0, ValidTo=-1, ActivationFloor=0);

... and it is still loosing much more than 10%

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.