Home/Dovee/Function reference

stop-at

Dynamic analytical stop / target from an expression.

Reference/Language/Language

stop at expr    target at expr

Existing stop 10 points / target 20 percent keep working. stop at and target at store expression-based levels (for example entry price - atr(14) * 2) as signal metadata for charts and webhooks — they do not place or modify broker orders. Partial exit: exit 50 percent updates simulated size. Optional: breakeven after 1 percent.

Return value

Example

when flat and close > ema(close, 20)
  buy
stop at entry price - atr(14) * 2
target at entry price + atr(14) * 3
when long and bars since entry > 20
  exit 50 percent

See also