Skip to content
All library documents

Building an ATR-Based SuperTrend Breakout and Reversal System

Article FMZ digest · Author: homily

Summary

The document explains how to calculate and implement a SuperTrend signal using a midpoint price and ATR-based upper and lower bands. True range is calculated from the current high-low range and gaps from the previous close; ATR is smoothed, then multiplied by a factor to set the bands. The bands tighten as the trend continues, while a close crossing the opposite band changes the trend state. The author demonstrates translating this recursive logic into a 15-minute automated strategy and trading reversals in a quarterly Bitcoin futures contract.

A backtest over roughly one year is reported with stated parameters, contract size, and an annualized return of about 33%. The article also notes that a sharp market drop had a substantial adverse effect. This is a single historical test, and the document provides no broader out-of-sample evidence or detailed risk-adjusted comparison. The code and reported result therefore illustrate implementation and one test case, rather than establishing robustness or live-trading performance.

Key ideas

  • SuperTrend uses ATR-scaled bands around the high-low midpoint to define potential trend reversals.
  • ATR incorporates both the current high-low range and gaps relative to the previous close.
  • The trailing bands tighten during a trend, and a close beyond the opposite band switches the trend state.
  • The article implements the indicator on 15-minute Bitcoin futures data and enters positions when the trend state flips.
  • Its reported backtest covers one historical period, so it does not establish performance across other regimes or in live trading.

Tags

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