Skip to content
All library documents

Stochastic Oscillator Entries Filtered by Moving Average Direction

Article Strategy library · Author: ChaoZhang

Summary

The strategy combines a smoothed stochastic oscillator with a short moving average. Its written rules describe buying after an upward move out of oversold territory when the average is rising, and shorting after a downward move from overbought territory when the average is falling. It also outlines exits based on oscillator and average behavior, plus a fixed percentage stop. The supplied parameters specify a 14-period stochastic, smoothing values of three, overbought and oversold thresholds of 80 and 20, a nine-period average, and a two-percent stop. The published test setup covers BTC/USDT futures on one-minute bars for about a week, without performance statistics.

The code’s entry conditions use crossunder at the oversold level for longs and crossover at the overbought level for shorts, which conflicts with the prose’s stated upward and downward threshold crossings. Its exits compare the stochastic K value with the price-based moving average, so the units and intended interpretation are unclear. The document itself notes indicator lag, possible frequent trading in choppy markets, and the limits of a fixed stop; no evidence establishes profitability.

Key ideas

  • The written rules combine stochastic threshold crossings with the direction of a moving average.
  • The listed setup uses a 14-period stochastic, a nine-period average, and a two-percent stop.
  • The code’s entry crossing directions conflict with the prose description of leaving overbought or oversold zones.
  • The exit conditions compare oscillator values with a price-based average, making their meaning unclear.
  • The short BTC/USDT futures test window has no reported performance results.

Tags

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