Home/Dovee/Function reference

trail

Trailing stop distance from price.

Reference/Language/Language

trail 5 points

While a simulated trade is open, the trail line follows the running high (long) or low (short) by the given distance. Drawn on the chart as Trail and hit-tested on closed trades using OHLC only — exact intrabar order vs target is not known. Units: points (default), percent, or atr. Also shows as a Trail knob. Analytical metadata only — not a broker order modify.

Return value

Example

when ema(9) crosses above ema(21)
  buy
stop 10 points
trail 5 points

See also