Documentation/AlgoCode/Function reference
percent
Percent-of-entry unit for stop and target.
Reference/Language basics/Language
stop 2 percent
stop 2 percent is a 2% stop from the fill. trailsteps 10 points and trail 5 points are price distances. stop 2 atr is 2 × ATR(14), stored as points.
Return value
—
Example
when close is above ema(21) buy stop 2 percent target 4 percent