Skip to content
All library documents

Switching Between Trend and Range Strategies with Moving Averages, Bollinger Bands, and RSI

Article Strategy library · Author: ChaoZhang

Summary

This adaptive system describes separate trading approaches for trending and range-bound conditions. It uses slow and fast simple moving averages to classify direction: trend entries combine price position relative to the slow average with a distance threshold, while moving-average crossovers also generate entries. In range conditions, it uses Bollinger Band extensions and RSI extremes to seek trades. The stated defaults include 50- and 20-period averages, 20-period Bollinger Bands, and a 14-period RSI.

Risk controls use a common 2% stop and different take-profit levels for trend and range trades. The code and settings describe a daily BTC-USDT futures backtest spanning about a year, but no returns or other results are reported. The market classification treats price above or below the slow average as trending, leaving little room for a distinct range state, and the source includes separate entry conditions that may overlap. The text itself flags sensitivity to parameters, delayed regime recognition, false signals, and trading costs from frequent switching.

Key ideas

  • The approach combines moving-average trend signals with Bollinger Band and RSI signals for range conditions.
  • Trend entries use price relative to the slow average and moving-average crossovers.
  • Range entries use extended prices near Bollinger Band boundaries or RSI extremes.
  • The stated risk settings use a 2% stop and different take-profit levels for trend and range trades.
  • The published backtest configuration contains no performance results.

Tags

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