Documentation/AlgoCode/Function reference

trailsteps

Price movement that triggers one trailing-stop step.

Reference/Language/Language

trailsteps 10 points or trailsteps trailAmount points

Write a number or input name. With trail 5 points, each 10-point favorable move shifts the stop by 5 points. Use a stop directive as the initial stop. Input-backed trailsteps values accept decimals.

Return value

Example

trailAmount = input 10 as "Trailing Steps"
trailBy = input 5 as "Trail By"
stop 10 points
trailsteps trailAmount points
trail trailBy points

See also