Skip to content
All library documents

SuperTrend Signals, ATR Bands, and Trend-Reversal Trading

Article FMZ digest · Author: 善

Summary

This article explains a JavaScript implementation of SuperTrend built from average true range and smoothed upper and lower bands. The indicator switches between bands as closing prices cross them, producing an upward or downward trend state. A sample strategy opens a long position when the indicator changes to an uptrend and a short position when it changes to a downtrend, with order handling, position checks, and chart plotting included.

The author compares the implementation with a platform chart indicator and notes that their outputs differ slightly, without resolving the cause. A backtest example uses a 15-minute chart and specified indicator settings on a futures contract, but the article gives limited performance interpretation and notes that trading only one contract at a time leaves capital underused. The material is therefore most useful as an indicator and signal implementation example; it does not demonstrate that the trend-following rule is profitable across markets, parameter choices, or realistic execution conditions.

Key ideas

  • SuperTrend uses ATR-based bands around the midpoint of each bar to track trend direction.
  • The indicator changes state when price crosses its active band.
  • The sample strategy opens long or short positions when the trend state reverses.
  • Indicator implementations can differ across platforms, so calculation details should be checked.
  • The cited backtest setup is limited and does not establish general profitability.

Tags

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