- ago
How is the PercentHL calculated? I'm trying to determine what the TS dollar value would be for the trailstop to be triggered.

CODE:
   CloseAtTrailingStop(foundPosition0, TrailingStopType.PercentHL, HMAxTS.AsDouble, "Sell At T/S");


where HMAxTS is a percentage for the trail stop.
0
87
Solved
4 Replies

Reply

Bookmark

Sort
- ago
#1
Documented in the QuickRef.

○ PercentHL - Like PercentC, but adjusts based on intraday progress; uses highs for long positions and lows for short positions.
0
Best Answer
Cone8
 ( 5.87% )
- ago
#2
HMAxTS is a Parameter [type] in your script.
0
- ago
#3
Thanks, very helpful. FYI, the Quickref in the application and on the Support tab leaves off the clarifiers "...uses highs *for long positions* and lows *for short positions*". It just says "...calculated using highs and lows."
0
Cone8
 ( 5.87% )
- ago
#4
I can clarify it. Anyway, the idea implied is that you're using the most favorable excursion for the trade to set the Trailing stop (instead of using the Closing price).
0

Reply

Bookmark

Sort