UT Bot Alerts (MQL5)

Category: trend, volatility

A trend-following signal indicator that combines ATR-based trailing stops with price crossovers to identify momentum shifts.

Formula

loss = ATR(n) * Coef \\ \text{TrailingStop} = \begin{cases} \max(\text{Prev}, Close - loss) & \text{if } Close > \text{Prev} \text{ and } Close[1] > \text{Prev} \\ \min(\text{Prev}, Close + loss) & \text{if } Close < \text{Prev} \text{ and } Close[1] < \text{Prev} \\ Close \pm loss & \text{otherwise} \end{cases} \\ \text{Signal} = Close \text{ crosses } \text{TrailingStop}

Inputs

See signal primitives, usage in published strategies and more on WOBR StrategyVerse.


Open in the WOBR AI app → · WOBR.AI home