Guide
How does the UT Bot Strategy strategy work ?
The UT Bot Strategy is a technical tool built upon the code by @Yo_adriiiiaan with enhancements to optimize its application. Essentially, this strategy utilizes an Average True Range (ATR) based trailing stop to signal entry points for trades.
- The strategy allows traders to modify the sensitivity of signals through a 'Key Value' input.
- The 'ATR Period' input defines the lookback period for the Average True Range calculation, which forms the foundation for computing the trailing stop.
- An optional input lets traders switch to signals derived from Heikin Ashi candles, known to smooth price data and reduce market noise.
Trade signals are generated based on the crossover between an Exponential Moving Average (EMA) and the ATR trailing stop:
- Buy signals occur when the price (src) is above the ATR trailing stop and the EMA crosses over it from below.
- Sell signals are the inverse, happening when the price is below the ATR trailing stop and the EMA crosses below it.
The visualization on the chart includes color-coordinated bars to reflect market direction (green for bullish, red for bearish) and shapes to mark trade entry points (up arrows for buys and down arrows for sells).