Working principle of applystop - trailingstop mode percent

Hello,

I'm probably missing something in the knowledge base but how does the trailstop % work in the applystop function? Is it based on a % of the high or as a % on the close? I was trying to achieve a 25% trailing stop on the high of the trade with the code:

trailstop=25;
ApplyStop( stopTypeTrailing, stopModePercent, 25, 1);

However my manual calculation does not equal the % trailstop in the trades.

Thank you for your help.

Robin

Check this out, maybe it will help you in your tests, seeing the behavior of the stop in each mode.

Thank you for the suggestion. I found out how the trailstop works and it's the way I was hoping for. It's indeed calculated from the maxhigh in the trade.

1 Like

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