Skip to content
All library documents

Double Moving Average Crossovers with Trend Filtering and Risk Controls

Article Strategy library · Author: ChaoZhang

Summary

This document describes a short-term strategy that compares a six-period RMA with a four-period HMA. Their crossovers supply directional signals, while a separate long-term trend check filters entries. The script also plots volume-weighted bar colors and offers take-profit and stop-loss exits. Its published backtest settings specify BTC/USDT futures over a brief period, but no performance results are reported, so they do not establish profitability.

The notes identify familiar crossover risks: whipsaws, frequent trading in ranges, losses in trending conditions, and parameter overfitting. They suggest testing parameter robustness, adjusting exit levels, and adding trend filters. There are some limits to the description: the source uses a higher-timeframe RMA and OHLC4 for crossover signals, and its trend conditions are not fully explained in the prose. Although the document presents the setup as suitable for oscillating markets, the code's precise behavior and results require independent review before drawing conclusions.

Key ideas

  • The strategy compares a six-period RMA with a four-period HMA to generate crossover signals.
  • A long-term trend condition is used to filter entries, while the source also supports long and short orders.
  • Take-profit and stop-loss orders are included, but their effectiveness is not demonstrated with results.
  • Frequent crossovers can create whipsaws and trading costs, while parameter tuning can overfit.

Tags

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