Skip to content
All library documents

ATR Trailing Stops and UT Bot Price-Crossover Entries

Article Strategy library · Author: ChaoZhang

Summary

The document presents an adaptive trend-following strategy and describes ATR-based trailing stops, RSI direction signals, and parameter risks. Its prose says to go long above an RSI center line and short below it, with the stop distance scaled to ATR. It also notes that parameter settings may need tuning for different instruments and that gaps can pass through stops.

The included source code does not implement that RSI entry logic: the listed RSI, MACD, and stochastic inputs are unused. Instead, entries occur when price crosses the UT Bot ATR trailing-stop line, in either direction; the ATR stop distance is scaled by a sensitivity input. The published BTC/USDT futures settings give a short December 2023 test window, but no performance results are reported. Treat the written RSI explanation and code as inconsistent, and do not infer profitability from the strategy description.

Key ideas

  • The source code enters long or short when price crosses the ATR-based trailing stop.
  • The ATR stop distance is determined by ATR and a sensitivity multiplier.
  • The prose describes RSI signals, but the supplied code does not use its RSI inputs.
  • The published backtest settings provide a test window but no performance results.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.