2002issue C081-9
Constructing a StochRSI and Bollinger mechanical system
Build the system as one procedure: encode an independent confirmation pair, add market-state filters, then decide whether excursion data should change the exit rule or stay a money-management overlay.
- A mechanical trading system is one procedure with entry and exit signals, a stop plan, and a capital-allocation rule.
- StochRSI and Bollinger Bands are paired as independent confirmation because one is range-based momentum and the other is a statistical envelope.
- Volatility regime and volume state come next as filters, including skipping low-volume sideways stretches.
- Excursion charts can justify a trailing stop instead of more exit-rule encoding, while capital allocation stays inside the procedure.
Three required parts of the procedure
A mechanical trading system is constructed as one procedure with three required parts: entry and exit signals, a stop plan, and a capital-allocation rule. Those parts turn rule inputs, market state, and execution constraints into entry, exit, or abstention signals over a defined holding period.
The archive presents the resulting script as a starting mechanical procedure, not a finished product. Later refinements include adjustable lookbacks and self-adapting thresholds.
First encode an independent confirmation pair
StochRSI and Bollinger Bands are paired because one is range-based momentum and the other is a statistical envelope. They are not reverse calculations of the same range formula, so one reading can corroborate the other.
The relative strength index is a bounded oscillator of ordered closes. It can be restated as StochRSI by measuring where current RSI sits inside its own recent high-low range. On a 14-period window, StochRSI is RSI minus its lookback low, divided by the lookback RSI range, which makes it reach extremes faster than raw RSI.
Bollinger Bands are a statistical envelope around a moving average that locates price against a volatility-scaled upper, mid, and lower band.
A long setup is encoded as price tagging the lower 20-day, two-standard-deviation band, then closing back above that band while StochRSI rises to 0.4.
Then add market-state filters
Volatility regime and volume state are construction inputs. Shorter StochRSI lookbacks fit quieter price regimes. Low-volume sideways stretches are treated as random and better skipped.
The system is specified for swing holding periods on names averaging more than 500,000 shares a day, not for noise-scale scalping.
Editorial: an in-gear price move that rises on expanding volume or falls on contracting volume is a market-state filter rather than a signal by itself. That reading belongs with the volume-state skip, not with the entry rule.
Then decide what excursion data should change
An encoded exit after an upper-band tag is a later close back through the Bollinger midline once momentum has faded.
Excursion charts are used as a construction check. Many losers first showed open profit, so a trailing stop is a candidate alternative to further exit-rule encoding. Maximum favorable excursion records the best intra-trade open profit before a close. Maximum adverse excursion records the worst intra-trade drawdown before a close. Together they inspect stop and exit logic and whether open gains are given back.
Capital allocation is part of the procedure. At most one-tenth of current capital is assigned to any single position.
All readings on this track · 45 readings
- 1992Constructing volatility-scaled bands with relative strength index confirmation
- 1994Implied volatility as a band-defined regime filter for index options
- 1995Constructing projection bands from least-squares slopes
- 1995Constructing regression projection bands and range oscillators
- 1996Constructing Bollinger bands, percent-b, and stochastics
- 1996Constructing mechanical rules from Bollinger Bands and stochastics
- 1996Constructing a standard-error envelope around a linear regression
- 1996Dual-horizon ratio envelopes and regression error channels
- 1997Rational group structure with a trend screen, RSI, and bands
- 1997Asymmetric volatility band construction
- 1998Constructing three-state filters from Bollinger band envelopes
- 1999Combination filters with Bollinger Bands and the relative strength index
- 1999Constructing stochastic timed exits and band-RSI reversals
- 1999Evaluating Bollinger Bands against fixed-width and range-based envelopes
- 2000Constructing a Bollinger Band target as a forward price
- 2001Numeric candlestick encoding with local size bands
- 2001Ranked candlestick sentiment to band-cross entries
- 2002Combining Bollinger Bands, RSI, and a stop-loss
- 2002Bollinger Bands remain filters, not forecasts
- 2002Constructing a stochastic RSI with Bollinger bands
- 2002Constructing a StochRSI and Bollinger mechanical system
- 2003Constructing volatility-scaled Bollinger envelopes
- 2003Why tick breadth fails as a market personality
- 2005Constructing Bollinger bands versus fixed trading bands
- 2006Squared versus absolute deviation in envelope construction
- 2006Confirming yen crossovers with implied volatility and bands
- 2006A daily candle reversal is a hypothesis until shorter sessions fail at the same zone
- 2008Rebuild the Relative Strength Index as price-scale bands
- 2008Reading Relative Strength Index extremes on one price axis with Bollinger Bands and moving averages
- 2011Three-filter confirmation for short-swing futures
- 2011Constructing an inverse Fisher stochastic with bands and averages
- 2012Constructing a Bollinger Band indicator suite
- 2012Stacking price extremes, crossovers, bands, and MACD
- 2012Adaptive Bollinger band impulse, trend, and momentum filters
- 2013Rescaling stochastic, percent-B, and wave-count parameters
- 2014Industry-group quartile pivots as a Bollinger Bands case study
- 2014Bollinger Bands as adaptive price envelopes: a 2014 classroom case
- 2016Trend-channel entry rules from stacked moving averages
- 2016A permission stack for Bollinger, RSI, and the 50-period average
- 2017Constructing weighted Bollinger bands and volume averages
- 2017Four swing-entry rules that share a timed exit
- 2017Two-wave monthly cycles as a regime filter
- 2019Constructing exponential-deviation-bands from a midline-average
- 2020Critiquing exponential variants of Bollinger Bands
- 2020Constructing selectable volatility and moving-average bands