stop
Stop loss from entry, in points, percent, or ATR.
stop 10 points
Write points, percent, or atr. stop 2 atr is 2 × ATR(14) as a price distance (same as points after the ATR is measured). Live quantity and exchange still come from Deploy. The number also shows as a Stop Loss knob in the script inputs UI.
Return value
—
Note
- Also: stop 2 percent, stop 2 atr (2 × ATR of 14).
Example
when ema(9) crosses above ema(21) buy stop 10 points target 20 points