2008issue C051-14
Constructing a zero-lag TMA and heikin-ashi crossover as a complete rule set
Historical reconstructions form a buy or sell condition when a zero-lag TMA of typical price crosses a zero-lag TMA of a heikin-ashi close, then set order size before entry and attach a loss bound that does not wait for the next opposite crossover.
- The signal is a moving-average crossover of a zero-lag TMA of typical price and a zero-lag TMA of a heikin-ashi close.
- Typical price is the mean of high, low, and close, while the heikin-ashi close is rebuilt from a bar midpoint, a recursive open, and highs and lows limited by that open.
- Order size is set before entry as the integer share count a fixed investment can buy at the close, or as 5 percent of equity per order.
- A loss can exit at the nearer of a 10 percent drop from entry and the lowest low of the 21 bars before entry, while an opposite crossover exits a gain.
The constructed crossover
The constructed signal is the crossover of a zero-lag TMA of typical price and a zero-lag TMA of a heikin-ashi close. That buy or sell condition is a moving-average crossover: it forms when one moving-average series crosses another.
Typical price is the mean of high, low, and close. The heikin-ashi close is rebuilt as the mean of a bar midpoint, a recursive open, and the bar high and low limited by that open, which is the smoothed close with the high and low clipped to that open.
How the zero-lag TMA is assembled
A zero-lag TMA is a triple-exponential average with the gap between the first and second TEMA values added back. In this construction it equals a TEMA of the chosen series plus the difference between that TEMA and a second TEMA of the first TEMA.
TEMA is three times a single EMA minus three times a double EMA plus a triple EMA. Multiple reconstructions use 55 as the default average length.
Because an exponential average depends on the first bar used, one reconstruction withholds plots and trades until four times the Period input have passed.
Size the order before entry
A pre-entry size rule bounds exposure from account allocation, price, and the planned stop distance. Historical reconstructions set that exposure before a trade is placed.
One reconstruction sizes the order as the integer share count a fixed Investment input can buy at the close, so exposure is set before entry. Another reconstruction allocates 5 percent of equity per order.
A loss bound that does not wait for the next crossover
A trailing stop here is a loss bound that stays attached after entry, independent of the next opposite crossover.
The second reconstruction exits a loss at the nearer of a 10 percent drop from entry and the lowest low of the 21 bars before entry. An opposite crossover exits a gain.
All readings on this track · 33 readings
- 1988Constructing unsigned true range for directional models
- 1989Evaluate an always-in ATR breakout as one procedure
- 1992Variable lookback and average true range as a trend-filter construction
- 1993A random-walk index that uses true range as its scale
- 1993A shared harness for trend-filter construction
- 1998Finish a trend with a volatility trail, wave permission, and a slower-frame veto
- 1999A trend filter that switches tactics and scales ATR targets
- 2001Filter higher lows with linear regression, then judge the exit
- 2003A Mechanical trading system is a maintained procedure, not only an entry trigger
- 2005Construction of a volatility-bounded long entry
- 2005Six-zone encoding of open, high, low, and close
- 2006Normalized average true range as a pre-entry volatility bound
- 2006Chandelier exits, ATR position sizing, and trailing stops
- 2007Constructing a rule-based entry with Relative Strength Index and ATR position sizing
- 2008Constructing a zero-lag TMA and heikin-ashi crossover as a complete rule set
- 2010Use the session-range percent stop as a pre-trade filter
- 2011OCA exit groups, trailing limits, and ATR stops
- 2011ATR bands around support and resistance for stops and targets
- 2013Algorithmic head-and-shoulders construction with bounded exits
- 2013Constructing ATR-scaled swing pivots and linear-regression divergence
- 2013Constructing volatility bands from typical price
- 2014Constructing true-range contraction filters before expansion
- 2015Constructing touch plans from modified true range
- 2015One checklist for breakout entry and ATR risk
- 2015Percentage true-range construction for cross-market volatility filters
- 2015Construct a percentage true range for cross-market volatility
- 2015Percentage true range as a pre-entry exposure filter
- 2016Constructing ATR-filtered breakout entries
- 2017A dividend date as a pairs-trading classroom
- 2018Range-based volatility as a true-range construction
- 2018Moving average support and volatility-band construction
- 2018Construct a lifecycle breakout from compression
- 2018Pair the book first and let volatility or range set the size