Skip to main content
Track Pullback trading
3 / 10
Library

2005issue C041-15

Write a moving-average pullback as one procedure

The archive writes a pullback against a 30-bar closing average as three setup tests, a separate high trigger, a next-bar market buy, and a three-bar time-stop. A screening version also requires price between 5 and 20 and a 20-bar average volume above 600000.

  • The pullback reference is a 30-bar average of closing prices.
  • A setup requires no close below that average over the pullback lookback, a recent low above an earlier lookback high, and a close within 1.5 percent of the average.
  • The default entry trigger is a high that exceeds the prior bar high, and the strategy version then buys the next bar at market.
  • The strategy version exits after three bars have elapsed since entry. A screening version also requires price between 5 and 20 and a 20-bar average volume above 600000.
Entries in this reading3 entries

A pullback written as a procedure

A moving average, in this historical workflow, is a lookback average of closing prices used as the pullback reference line. Pullback trading is a rule set that waits for a defined retreat toward that average, then requires a separate entry trigger. A time-stop is an exit that closes the position after a fixed number of bars rather than a price target.

The pullback reference is a 30-bar average of closing prices.

Setup conditions

A setup requires no close below that 30-bar average over the pullback lookback. A setup also requires the recent low to sit above an earlier lookback high. A setup also requires the close to sit within 1.5 percent of the average.

Trigger and entry

The default entry trigger is a high that exceeds the prior bar high. The strategy version buys the next bar at market when setup and trigger are both true.

Time-stop exit

The strategy version exits after three bars have elapsed since entry. That time-stop closes the position after a fixed number of bars rather than a price target.

Screening version

A screening version also requires price between 5 and 20 and a 20-bar average volume above 600000.

Keep the pieces in one sequence

Editorial reading: keep the 30-bar average, the three setup tests, the high trigger, the next-bar market buy, and the three-bar time-stop as a single procedure. If setup or trigger is false, the procedure does not enter. The screening version adds price between 5 and 20 and a 20-bar average volume above 600000 before that same sequence.

Educational research material, not investment advice. Historical source context does not establish present-day performance.
3 of 10 in the Pullback trading track
20051-6 pp.Next on Pullback tradingHow to write a short moving-average pullback as one procedureThe short procedure combines a downtrend test, a moving-average pullback setup, a lower-low trigger, a volume floor, and a stochastic filter into one signal.
All readings on this track · 10 readings
  1. 1997A two-gate held-out test of hand-labeled pullback nets
  2. 2004A 50-day average touch as a screening procedure
  3. 2005Write a moving-average pullback as one procedure
  4. 2005How to write a short moving-average pullback as one procedure
  5. 2007Failed-breakout shorts with a half-width exit
  6. 2008Three-gate pullback entries from exchange tick breadth
  7. 2010Clear-method noise alerts for swing entries and exits
  8. 2011Same pullback rules, different market modes
  9. 2012Pixel-grid pullback and sector color alignment
  10. 2013Untested pullback entries need quantified exits
All 10 readings tagged Pullback trading
Also on Pullback trading5 readings