2013issue C1059-61
Constructing a typical-price and heikin-ashi crossover as one mechanical procedure
This archive note reconstructs a crossover that compares a five-period typical-price average with an eight-period heikin-ashi-close average, then writes candle confirmation, next-bar open fills, labeled exits, and opposing-position flags as one inspectable procedure.
- The crossover construction compares a five-period typical-price average with an eight-period average of the heikin-ashi close.
- A long or short entry is armed only when the average-cross direction and the candle’s close-versus-open relationship agree.
- Exit construction includes stop-loss and breakeven logic as labeled exits, while opposing-position flags keep only one side open and use the opposite signal to flatten and reverse.
- Buy and sell markers can fill at the next bar’s open, a nine-column worksheet can expose the full crossover state, and a background overlay can stand in for long versus short state when candle coloring is unavailable.
What the two averages compare
The crossover construction compares a five-period typical-price average with an eight-period average of the heikin-ashi close. The typical-price average is a moving average of each bar’s typical price, used as one side of that comparison. The heikin-ashi-close average is a moving average of the heikin-ashi close, used as the opposing side of the same crossover.
When entries are armed
A long entry is armed only when the typical-price average is above the heikin-ashi-close average and the candle closes above its open. A short entry is armed only when the typical-price average is below the heikin-ashi-close average and the candle closes below its open. Candle confirmation is that extra entry filter: the raw close-versus-open relationship must agree with the average-cross direction before a signal is armed.
Labeled exits and opposing-position flags
Exit construction includes stop-loss and breakeven logic, with each order labeled so the trade report can identify which rule produced the fill. Those labeled exits let a stop-loss fill and a breakeven fill be attributed to named rules. Automation treats long and short as opposing-position flags: a long signal opens a buy only when no long is open and closes an existing short, and a short signal does the inverse. That mechanical state keeps only one side open and uses the opposite signal to flatten and reverse.
Fills, worksheet state, and chart overlay
Buy and sell markers can be placed at the next bar’s open so the fill occurs one bar after the crossover condition appears. That next-bar open fill records the signal on one bar and transacts at the following bar’s open. A worksheet build can expose the full crossover state in a nine-column calculation block and let the user switch exponential-average formulas when choosing lengths. When individual candle coloring is unavailable, a user-toggled background overlay can stand in for long versus short state on the chart.
All readings on this track · 57 readings
- 1988Constructing moving averages: weights, smoothing and crossovers
- 1988Constructing breadth and average trend states
- 1989Evaluating an always-in-the-market moving-average crossover
- 1989Constructing symmetric market-breadth ratio accumulators
- 1989Objective crossover tests of Fibonacci wave ratios
- 1990Volume-adjusted moving average construction
- 1991Constructing a mechanical crossover on a synthetic price series
- 1991A two-speed breadth reading for intermediate market direction
- 1992A Deutschemark yield map with dual-average and relative-strength timing
- 1992Confirming currency-fund trends with a crossover and a filter
- 1992A moving-average slope filter for crossover signals
- 1992Occupancy and split-sample tests for average crossovers
- 1994Gold-mining seasonality and bond-fund duration switching
- 1994Price oscillator from two moving averages
- 1995Explicit exponential weights and binary entry filters
- 1996Currency futures crossover with slope, bond filter, and stop
- 1996Two-market average crossover entry with a fixed stop
- 1997Construction of a filtered three-average crossover
- 1998Two-group exponential average compression as a trend filter
- 1998Constructing r-squared trend filters with dual lookbacks
- 1998Moving-average length is a habit, not a secret
- 1999Solving the close that triggers a moving-average crossover
- 2000Kagi yang and yin control versus crossover noise
- 2000Constructing simple moving average crossover filters
- 2000Building a vertical-horizontal filter to gate trend signals
- 2000Two-average crossover as a check on trend following
- 2003Stacked exponential-average retracement entries and extreme stops
- 2003Evaluating oscillator thresholds against optimized crossovers
- 2004Constructing a semicycle trend-quality filter
- 2004Commodity subgroups labeled by crossover, support, or convergence
- 2004Full-window evaluation of crossover trend systems
- 2004Two-average trend filters as a classroom critique of indicator stacking
- 2005Three-layer confirmation from a moving-average cross, candles, and Q-stick
- 2005Charting put prices beside an equity breakdown
- 2005Range-gated moving-average crossover construction
- 2007Anticipating a simple-average crossover with a threshold-close
- 2007Anticipating moving-average crossovers one bar ahead
- 2007Lead-series moving-average crossovers with a stochastic and relative strength index
- 2007Next-bar SMA crossover hypotheses from theoretical crossing values
- 2007Anticipating a moving-average crossover before confirmation
- 2007A three-horizon moving-average stack as a construction problem
- 2007Confirming trend with regression slope and r-squared
- 2008Constructing a multi-timeframe smoothed crossover
- 2008Best-day clusters versus trend filters
- 2008Allied markets as a confirmation gate for crossover and breakout signals
- 2008Weekly exponential-average crossover as a mechanical trend case study
- 2010Evaluating a 200-day crossover as long, short, and stand-aside rules
- 2010Read a 10-and-40 trend on two neighboring time frames
- 2012Sampling unit as a first-class parameter on dual simple moving averages
- 2012Constructing index-ETF entries from volatility-index persistence
- 2013Moving-average baselines versus crossover signals
- 2013Constructing a typical-price and heikin-ashi crossover as one mechanical procedure
- 2016A three-gate checklist for longs after a sharp drop
- 2016Weekly inflation-ratio crossover for commodity regimes
- 2017Normalized Laguerre zero-axis warning as a two-marker construction
- 2019Range-weighted construction of an adaptive exponential moving average
- 2020Construct a second-pullback entry after a moving-average crossover