Guide
How does the UT Bot v5 strategy work ?
The UT Bot v5 strategy utilizes the relationship between a Moving Average (MA) and a modified Average True Range (ATR) to determine entry points for trades. By comparing the MA to the ATR configured for trailing stop loss (ATR_TSL), it identifies buy signals when both the MA and the price are greater than the ATR_TSL. Conversely, sell signals are generated when both are less than the ATR_TSL. The script offers flexibility, allowing users to select from different types of MAs—Simple (SMA), Exponential (EMA), Weighted (WMA), or Hull (HMA)—and to choose the price source for analysis.
Enhancements in this version include the ability to set take profit (TP) and stop loss (SL) levels and to restrict the strategy to buying or selling only. The chosen MA and ATR_TSL are also plotted on the chart for real-time visual reference. Buy and sell signals are clearly indicated on the chart through shapes and bar colors, turning green for buy and red for sell opportunities. Furthermore, the strategy automatically closes positions when predefined TP or SL conditions are met or when an opposite signal is identified, given that the corresponding buy or sell option is enabled.