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:
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.