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.
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.
All readings on this track · 10 readings
- 1997A two-gate held-out test of hand-labeled pullback nets
- 2004A 50-day average touch as a screening procedure
- 2005Write a moving-average pullback as one procedure
- 2005How to write a short moving-average pullback as one procedure
- 2007Failed-breakout shorts with a half-width exit
- 2008Three-gate pullback entries from exchange tick breadth
- 2010Clear-method noise alerts for swing entries and exits
- 2011Same pullback rules, different market modes
- 2012Pixel-grid pullback and sector color alignment
- 2013Untested pullback entries need quantified exits