1988issue C091-6
Constructing short-horizon gap and trailing-stop rules
A short-horizon system is built as one procedure. Freeze a nested swing map so support and resistance are the same inputs at every scale, convert opening gaps into fade, continuation, or stand-aside rules, and bind every choice to a range-scaled trailing stop.
- Price extremes are labeled on five nested horizons so support and resistance stay the same inputs at every scale.
- A large opening gap through the prior day's high or low is coded as a fade of the open, a next-session continuation after an open-to-close reversal, or a stand-aside when the stop would sit past the session limit.
- Every trade carries a stop a few ticks beyond mapped support or resistance, or trailed at 57 percent of the three-day average range, with half of that average as the profit exit.
- After a profit take, the same side may be restored if price returns to the original entry with at least one hour left.
Entry, exit, and abstention as one procedure
Short-horizon construction is written as a single coding task. The historical workflow first freezes a nested swing map, then converts the opening print into a fade, a continuation, or a stand-aside, then attaches a stop to every choice.
Editorial reading: keep the nested map, the gap codes, and the range-scaled trailing stop as one procedure so entry, exit, and abstention can be tested together.
A nested swing map that stays fixed
A nested price extreme is a high or low that is the best price over a stated lookback and then remains unbroken for a stated confirmation window. The historical workflow labels those extremes on five nested horizons: major, intermediate, minor, short-term, and session.
A major extreme is the best price over 26 calendar weeks that then holds for at least 10 calendar weeks. An intermediate extreme is the best price over 6 calendar weeks that then holds for at least 12 trading days.
A minor extreme is the best price over 12 trading days that then holds for at least 5 trading days. A short-term extreme is the best price over 5 trading days that then holds for at least 2 trading days. The session extreme is that day's high and low.
Support and resistance from the same inputs
Support and resistance are assembled from lifetime highs and lows, from a confirmed prior swing near the day's range, and from the open, high, low, and close of the current and prior day, week, and month.
Entries are written to align with every nested trend. A confirmed low becomes a long candidate once prior highs at the matching scales have been taken out.
Opening gaps as fade, continuation, or stand-aside
A gap-trading rule treats an opening print beyond the prior day's high or low as a fade of the open, a next-session continuation after an open-to-close reversal, or a stand-aside when the stop would sit past the session limit.
A large opening gap through the prior day's high or low is coded as a fade of the opening direction, managed with a trailing stop, and skipped when that stop would lie beyond the session's limit move.
If a sharp opening gap then closes back through the open and mid-range, the next session is coded in the open-to-close direction. A halfway fill of the gap is coded as a likely rotation toward the opening print.
Stops scaled to the three-day average range
A trailing stop follows favorable price at a gap-sized increment or at a stated fraction of the three-day average range, including overnight protection when a profit target is dropped. Every trade carries a stop, placed a few ticks beyond the mapped support or resistance or trailed as a fraction of the three-day average range.
The three-day average range is the mean of the prior three daily ranges. Half of that average is used as a profit exit and 57 percent of it as a trailing stop or overnight protective stop.
Restoring a side or dropping the profit exit
After a profit take, the same side may be restored if price returns to the original entry with at least one hour left. In a strong trend the profit exit may be omitted in favor of a close-of-day flatten or an overnight hold behind the trailing stop.
All readings on this track · 20 readings
- 1988Constructing short-horizon gap and trailing-stop rules
- 1996Constructing closed rules for spikes, time stops and gap failures
- 1999Opening-gap same-day fade rules
- 1999Evaluating same-session opening-gap rules
- 1999Constructing mechanical gap-fade entry and exit rules
- 2000Constructing opening-gap continuation entry and exit rules
- 2000Gap types as trade hypotheses
- 2003One-day fade-the-gap rules remain unfinished across market climates
- 2003Gap and pivot entry rules with stops written before the fill
- 2007Evaluating gap and lap opens against short-horizon baselines
- 2007Evaluating same-day gap rules across price, momentum, and weekday
- 2011Session gaps as a fade-or-follow drill
- 2015Testing gap continuation breakouts as one procedure
- 2015Downside exhaustion gaps as a ten-session fade procedure
- 2016Constructing a gap-fill long as one entry and exit checklist
- 2016Gap-reversal entry and trailing-stop rules
- 2016Constructing late entries from serial uptrend gaps
- 2017Premarket gap permission with cup breakouts and one tight trail
- 2018Inside-range gap breakout entry and stop rules
- 2020Closing-range breakout after a downside gap