1999issue C031-3
Constructing stochastic timed exits and band-RSI reversals
Two archive constructions treat entry and exit as a wiring choice. One joins a custom stochastic to swing-confirmation and a fixed-bar-exit. The other joins a bollinger-band envelope to rsi-confirmation and an always-invested-reversal. Every length, threshold, and hold time is written as an explicit, testable input.
- Entry and exit are a wiring choice: name the oscillator or envelope, the confirmation, and the exit rule as one contract.
- The stochastic contract combines percent-k, percent-d, swing-confirmation, and a fixed-bar-exit whose hold length is an input.
- The band-and-RSI contract pairs a bollinger-band touch with rsi-confirmation and uses an always-invested-reversal so only one position is open.
- Lengths, thresholds, holding-day-count, and stated costs belong in the specification as explicit, testable inputs.
Two contracts, one construction habit
The archive records two complete entry-exit constructions. One joins a custom stochastic to swing-confirmation and a fixed-bar-exit. The other joins a bollinger-band envelope to rsi-confirmation and an always-invested-reversal.
Editorial: TradersWeek reads each construction as a wiring choice. The parts are named, the order of checks is fixed, and the hold rule is written down before any bar is evaluated.
A custom stochastic with swing-confirmation and a timed exit
Percent-k locates the close inside the lookback high-low range and scales that location to 100. It is the close minus the lookback lowest low, divided by the high-low range, then scaled. When the slow factor is greater than 1, both the numerator and the range are averaged before the ratio is taken. Percent-d is a moving average of that percent-k and is the directional filter for swing entries.
The plotted stochastic used lengths of 5 for percent-k, 12 for percent-d, and 3 for percent-k smoothing. The tradable version used 7, 12, and 3, plus a 5-bar timed exit.
A long entry required percent-d to be higher than each of its prior two bars together with a swing low in percent-k. A short entry required the opposite percent-d sequence together with a swing high in percent-k. That pairing is swing-confirmation: percent-k must print a local low or high while percent-d is already rising or falling.
Both long and short positions were closed on the close of the bar whose count since entry equaled the ExitBars input. That is a fixed-bar-exit. It does not wait for an opposite oscillator signal.
An alternative stochastic construction stored K length, D length, and holding days as coefficients. It entered on a K-versus-D crossover and exited on the opposite crossover or when elapsed bars exceeded the holding-day-count.
A bollinger-band envelope with rsi-confirmation
A band-and-RSI rule set reversed short to long on the next open when the low was at or below the lower band and 20-period RSI was under 30. It reversed long to short when the high was at or above the upper band and RSI was over 70. The secondary check is rsi-confirmation: the relative-strength threshold must agree with the band touch before a reversal is taken.
That construction stayed fully invested with a position limit of one because the reversal conditions were not treated as discrete isolated events. The result is an always-invested-reversal: the book flips long to short or short to long instead of going flat.
A spreadsheet variant built bands from a 21-period average of the close plus or minus two standard deviations and paired them with a 20-period RSI using the same 30 and 70 confirmation thresholds. A bollinger-band here is a moving-average envelope of the close offset by a stated multiple of its lookback standard deviation.
A further band-and-RSI implementation used 20-period, two-standard-deviation bands on the close, the same RSI thresholds of 30 and 70, an entry cost of 5 and an exit cost of 10, and a position size equal to the full current account balance.
Every length and hold time is an input
Across both families the lengths, thresholds, ExitBars or holding-day-count, and stated costs appear as named inputs. The plotted and tradable stochastic lengths differ, the two band lookbacks differ, and the hold clock is either a fixed-bar-exit or a holding-day-count beside an opposite crossover.
Editorial: TradersWeek treats that habit as the usable lesson. The archive workflow is a template for writing a contract that can be tested, not a claim about present-day use.
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