Skip to content
All library documents

Trading Price Position Relative to Three Moving Averages

Article Strategy library · Author: ChaoZhang

Summary

The strategy compares closing price with three moving averages of different lengths: a weighted moving average and two exponential moving averages, set to 25, 50, and 100 periods in the supplied configuration. It opens a long position when price is above all three averages and a short position when price is below all three. Positions are closed when price moves back across the shorter weighted average while the full three-average condition for the opposite position is not met. This is a multi-period moving-average alignment rule, despite the document’s MACD-focused title and overview.

The explanation presents the alignment as a way to follow broad direction and potentially filter weaker signals. It provides parameter values and BTC/USDT futures backtest dates, but no trade count, return, drawdown, or comparison against a baseline. The described approach is straightforward but lagging: price can reverse before the averages respond, and a temporary break can trigger a losing trade. The text suggests optimizing periods and adding filters or ATR-based stops, but it does not test those changes or establish performance across other markets.

Key ideas

  • The source uses one weighted and two exponential moving averages with configured lengths of 25, 50, and 100 periods.
  • A long position opens when price is above all three averages, and a short opens when it is below all three.
  • Positions close based on price crossing the weighted average outside the full entry condition.
  • The method is a moving-average alignment system rather than a conventional MACD crossover strategy.
  • Backtest settings are supplied, but no performance statistics are reported.

Tags

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