Heikin Ashi Candles, Smoothing the Noise
Re: Heikin Ashi Candles, Smoothing the Noise
4. The HA Doji Deceleration Exit
A Heikin Ashi doji (a tiny body with wicks on both sides) has a specific mathematical implication: the HA Open and HA Close are virtually identical.
The Math: Since HA Close = (Open + High + Low + Close) / 4 and HA Open = (Prev Open + Prev Close) / 2, a doji means the current period's average traded price has stalled exactly at the midpoint of the previous period. Momentum has hit a mathematical brick wall.
The Execution: Rather than waiting for the HA candle to turn red, you initiate a market sell order on the close of any HA candle where the body size is less than 10% of the total candle length (High to Low).
The Result: You exit at the absolute apex of the trend's deceleration, rather than giving back profits waiting for the opposing momentum to confirm a color change.
Execution Guardrail: In all of these strategies, the trigger logic evaluates the smoothed HA data, but the StopLoss parameter sent to your broker must always be calculated against the raw Bid/Ask prices. Never send a stop order priced at an HA Close.
A Heikin Ashi doji (a tiny body with wicks on both sides) has a specific mathematical implication: the HA Open and HA Close are virtually identical.
The Math: Since HA Close = (Open + High + Low + Close) / 4 and HA Open = (Prev Open + Prev Close) / 2, a doji means the current period's average traded price has stalled exactly at the midpoint of the previous period. Momentum has hit a mathematical brick wall.
The Execution: Rather than waiting for the HA candle to turn red, you initiate a market sell order on the close of any HA candle where the body size is less than 10% of the total candle length (High to Low).
The Result: You exit at the absolute apex of the trend's deceleration, rather than giving back profits waiting for the opposing momentum to confirm a color change.
Execution Guardrail: In all of these strategies, the trigger logic evaluates the smoothed HA data, but the StopLoss parameter sent to your broker must always be calculated against the raw Bid/Ask prices. Never send a stop order priced at an HA Close.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
Heikin Ashi is a mathematical derivative of price, which makes it completely blind to effort (volume). A flat-bottomed HA candle driven by 100 shares looks mathematically identical to one driven by 100,000 shares.
Because HA excels at showing the result of momentum, combining it with VWAP and Volume Profile (which measure the effort and liquidity behind that momentum) is the most effective way to filter out synthetic HA signals.
Here is how to combine HA wick mechanics with volume data to filter false signals.
Because HA excels at showing the result of momentum, combining it with VWAP and Volume Profile (which measure the effort and liquidity behind that momentum) is the most effective way to filter out synthetic HA signals.
Here is how to combine HA wick mechanics with volume data to filter false signals.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
1. VWAP + HA Wicks: The "Rubber Band" Filter
VWAP (Volume Weighted Average Price) represents the true intraday equilibrium and the baseline cost for institutional players. Because HA smooths out price action, it can easily trick you into buying the absolute top of a micro-trend that is hyper-extended from VWAP.
The False Signal: A series of strong, flat-bottom green HA candles moving sharply away from VWAP. Breakout traders buy the momentum.
The VWAP Filter: VWAP acts like gravity. If the HA trend is extended far above VWAP, the appearance of the very first lower wick on a green HA candle is not just a warning—it is a high-probability mean-reversion trigger. The wick confirms that real market orders have stopped lifting the offer, and the "rubber band" is snapping back to VWAP.
The Execution Setup: Only take flat-bottom HA breakout signals if they originate at or near the VWAP band. If the real price is more than 1 Standard Deviation away from VWAP (using VWAP bands), ignore all flat-bottom continuation signals.
VWAP (Volume Weighted Average Price) represents the true intraday equilibrium and the baseline cost for institutional players. Because HA smooths out price action, it can easily trick you into buying the absolute top of a micro-trend that is hyper-extended from VWAP.
The False Signal: A series of strong, flat-bottom green HA candles moving sharply away from VWAP. Breakout traders buy the momentum.
The VWAP Filter: VWAP acts like gravity. If the HA trend is extended far above VWAP, the appearance of the very first lower wick on a green HA candle is not just a warning—it is a high-probability mean-reversion trigger. The wick confirms that real market orders have stopped lifting the offer, and the "rubber band" is snapping back to VWAP.
The Execution Setup: Only take flat-bottom HA breakout signals if they originate at or near the VWAP band. If the real price is more than 1 Standard Deviation away from VWAP (using VWAP bands), ignore all flat-bottom continuation signals.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
2. Volume Profile + HA: Mapping the Liquidity Walls
Volume Profile plots traded volume at specific price levels (the Y-axis), creating High Volume Nodes (HVNs - areas of heavy congestion/fair value) and Low Volume Nodes (LVNs - liquidity vacuums where price moves fast).
Volume Profile is plotted on real prices. You use it to map the battlefield, and HA to time the entry/exit.
The "HVN Absorption" Trap
The Trap: Your HA chart prints a beautiful, flat-bottom green candle, signaling a strong long entry.
The Filter: You look at your Volume Profile, and the real price is driving directly into a massive HVN or the Point of Control (POC). This is a trap. The HA formula is simply averaging the previous candles, masking the fact that price is hitting a wall of limit orders.
The Action: Do not buy HA momentum into an HVN. Instead, wait. If the next HA candle prints a lower wick (or a doji) while inside that HVN, it confirms absorption—passive sellers are absorbing the momentum. This is a highly reliable signal to fade the HA trend.
Volume Profile plots traded volume at specific price levels (the Y-axis), creating High Volume Nodes (HVNs - areas of heavy congestion/fair value) and Low Volume Nodes (LVNs - liquidity vacuums where price moves fast).
Volume Profile is plotted on real prices. You use it to map the battlefield, and HA to time the entry/exit.
The "HVN Absorption" Trap
The Trap: Your HA chart prints a beautiful, flat-bottom green candle, signaling a strong long entry.
The Filter: You look at your Volume Profile, and the real price is driving directly into a massive HVN or the Point of Control (POC). This is a trap. The HA formula is simply averaging the previous candles, masking the fact that price is hitting a wall of limit orders.
The Action: Do not buy HA momentum into an HVN. Instead, wait. If the next HA candle prints a lower wick (or a doji) while inside that HVN, it confirms absorption—passive sellers are absorbing the momentum. This is a highly reliable signal to fade the HA trend.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
The "LVN Vacuum" Breakout
The Setup: Price has been chopping inside an HVN. The HA candles are alternating red and green with wicks on both sides (dojis).
The Filter: The real price breaks the edge of the HVN and enters a Low Volume Node (LVN). Simultaneously, the HA chart prints a flat-bottom green candle.
The Action: This is a pristine, validated signal. The flat-bottom HA confirms directional conviction, and the LVN confirms there is no historical resistance to stop the move. You ride the trend, trailing your stop behind the real lows of the HA candles, until price hits the next HVN and prints a lower wick.
The Setup: Price has been chopping inside an HVN. The HA candles are alternating red and green with wicks on both sides (dojis).
The Filter: The real price breaks the edge of the HVN and enters a Low Volume Node (LVN). Simultaneously, the HA chart prints a flat-bottom green candle.
The Action: This is a pristine, validated signal. The flat-bottom HA confirms directional conviction, and the LVN confirms there is no historical resistance to stop the move. You ride the trend, trailing your stop behind the real lows of the HA candles, until price hits the next HVN and prints a lower wick.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
3. The "Delta Divergence" Wick (Advanced)
If you have access to Cumulative Volume Delta (CVD) or footprint charts, you can look inside the specific candle where the HA wick appears.
When an HA chart is in a strong downtrend (flat-top red candles) and suddenly prints an upper wick, it means the real market price surged above the HA equilibrium.
If that upper wick is accompanied by aggressive positive delta (market buying) but the real price ultimately closes back down near the lows, the buyers were trapped. The HA upper wick was a false breakout.
You can safely ignore that wick, hold your short position, and use the real high of that trapped wick as your new trailing stop loss.
If you have access to Cumulative Volume Delta (CVD) or footprint charts, you can look inside the specific candle where the HA wick appears.
When an HA chart is in a strong downtrend (flat-top red candles) and suddenly prints an upper wick, it means the real market price surged above the HA equilibrium.
If that upper wick is accompanied by aggressive positive delta (market buying) but the real price ultimately closes back down near the lows, the buyers were trapped. The HA upper wick was a false breakout.
You can safely ignore that wick, hold your short position, and use the real high of that trapped wick as your new trailing stop loss.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
To prevent an Expert Advisor from buying the top or shorting the bottom of a mathematically smoothed Heikin Ashi trend, you must introduce a standard deviation (Z-Score) filter anchored to a session VWAP.
Because you need to separate the HA signal from the execution environment, the most robust architectural approach is to encapsulate the VWAP distance check into a boolean gate function that evaluates the real price against the VWAP bands before permitting the HA signal to fire.
Because you need to separate the HA signal from the execution environment, the most robust architectural approach is to encapsulate the VWAP distance check into a boolean gate function that evaluates the real price against the VWAP bands before permitting the HA signal to fire.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
1. The Core Logic Structure
Instead of measuring a fixed pip distance (which breaks when volatility shifts), calculate how many standard deviations the real price is away from the VWAP. If the Z-Score exceeds your threshold (e.g., 2.0 or 2.5), the EA rejects the trade.
The Boolean Gate:
HA_State: Is the current HA candle flat-bottomed (bullish) or flat-topped (bearish)?
VWAP_Distance: (Real_Close - VWAP) / VWAP_Standard_Deviation
Is_Permitted: If HA_State == Bullish AND VWAP_Distance < Max_Z_Score, return true.
Instead of measuring a fixed pip distance (which breaks when volatility shifts), calculate how many standard deviations the real price is away from the VWAP. If the Z-Score exceeds your threshold (e.g., 2.0 or 2.5), the EA rejects the trade.
The Boolean Gate:
HA_State: Is the current HA candle flat-bottomed (bullish) or flat-topped (bearish)?
VWAP_Distance: (Real_Close - VWAP) / VWAP_Standard_Deviation
Is_Permitted: If HA_State == Bullish AND VWAP_Distance < Max_Z_Score, return true.
Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
2. MQL5 Implementation Example
Here is how you structure this logic in MQL5. This assumes you have already retrieved the HA candle data and the VWAP/Standard Deviation data (typically via iCustom or a dedicated VWAP class).
Here is how you structure this logic in MQL5. This assumes you have already retrieved the HA candle data and the VWAP/Standard Deviation data (typically via iCustom or a dedicated VWAP class).
Code: Select all
//--- Input Parameters
input double InpMaxVWAPExtension = 2.0; // Max Standard Deviations from VWAP
//--- Function to check if a Long entry is permitted
bool IsLongEntryValid(double realClose, double vwapValue, double vwapStDev, double haOpen, double haClose, double haLow)
{
// 1. Validate HA Momentum (Flat Bottom Green Candle)
bool isHABullish = (haClose > haOpen);
bool isFlatBottom = (haOpen == haLow); // No lower wick
if(!isHABullish || !isFlatBottom)
return false; // No HA signal
// 2. Calculate Extension (Z-Score) based on Real Price, not HA Price
// Positive Z-Score means price is above VWAP
double zScore = (realClose - vwapValue) / vwapStDev;
// 3. The Filter: Reject if price is hyper-extended above VWAP
if(zScore >= InpMaxVWAPExtension)
{
PrintFormat("Trade Rejected: Price is extended %.2f StDev above VWAP.", zScore);
return false;
}
// 4. Signal is valid and near fair value
return true;
}Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.
Re: Heikin Ashi Candles, Smoothing the Noise
3. Handling the "Wick" Fade Logic
If you want to actively fade the false momentum (the "Rubber Band" effect), you can reverse the logic. You wait for the price to become hyper-extended, and then trigger a reversion trade the exact moment the HA chart prints a wick against the trend.
If you want to actively fade the false momentum (the "Rubber Band" effect), you can reverse the logic. You wait for the price to become hyper-extended, and then trigger a reversion trade the exact moment the HA chart prints a wick against the trend.
Code: Select all
bool IsReversionShortValid(double realClose, double vwapValue, double vwapStDev, double haOpen, double haClose, double haLow)
{
// 1. Check if market is hyper-extended upwards
double zScore = (realClose - vwapValue) / vwapStDev;
if(zScore < InpMaxVWAPExtension)
return false; // Not extended enough to fade
// 2. Check for momentum decay (Appearance of a lower wick on a green HA candle)
bool isHAGreen = (haClose > haOpen);
bool hasLowerWick = (haLow < haOpen);
// 3. Trigger: Price is stretched, and the HA equilibrium just broke
if(isHAGreen && hasLowerWick)
{
Print("Reversion Triggered: Lower wick appeared at maximum VWAP extension.");
return true;
}
return false;
}Preserve your own money. Scale with the market's money. Exponential growth is the ultimate key.