Skip to content
All library documents

Dual Moving Average Crossovers with Stochastic Thresholds

Article Strategy library · Author: ChaoZhang

Summary

The document describes a strategy that combines a smoothed stochastic oscillator with threshold crossings to generate directional trades. It calculates the stochastic value over a configurable lookback, smooths it twice, and enters long when the smoothed line crosses its signal line while also moving above the lower threshold. A short entry requires a downward signal-line cross together with a move below the upper threshold. The opposite entry condition closes an existing position.

Although the title and prose describe a dual moving average crossover, the included source code uses stochastic calculations rather than moving averages. The published example parameters and backtest settings concern BTC/USDT futures over a limited date range, but no performance results are supplied. The document recommends parameter testing and additional filters, while also acknowledging lag, false signals in sideways markets, and the risk of overfitting. Its claims about general applicability and risk control are not demonstrated by reported evidence.

Key ideas

  • The source code uses a smoothed stochastic oscillator with upper and lower thresholds to time entries.
  • Long and short signals require both a signal-line crossover and movement through a threshold.
  • Opposite signals close existing positions, while the source does not specify a separate stop-loss.
  • The prose describes moving averages, so the title and implementation are inconsistent.
  • No backtest performance results are provided, and the example test is limited in scope.

Tags

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