Home/Dovee/Function reference

stop

Stop loss from entry, in points, percent, or ATR.

Reference/Language/Language

stop 10 points

Write points, percent, or atr. A points or percent stop is measured from the signal bar's close. In close mode that close is the fill, and the stop can flatten the trade starting on the bar after entry, so the entry wick cannot stop the trade out. In next-open mode the distance stays on that signal close. The fill bar can trigger, and that exit books on that same bar. stop 2 atr becomes a points distance for each trade: 2 × ATR(14) of the bar it opened on. A touched stop fills at the stop level for the quantity actually closed. If the bar opens past the stop, it fills at that worse open.

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

See also