Heiken Ashi Retrace & Auto Fibs

HA Retrace & Auto Fibs is an automated swing-structure, Fibonacci retracement, and Heikin Ashi support/resistance tool.
The script calculates Heikin Ashi price structure internally, so it can be used on a standard candlestick chart without requiring the chart itself to be switched to Heikin Ashi candles.
The indicator was designed around two related ideas:
Automatically identify meaningful swing pivots and maintain the appropriate Fibonacci retracement for the current price leg.
Identify Heikin Ashi body structures near those pivots that may act as useful retest zones for continuation.
Why Heikin Ashi Support & Resistance?
The HA support/resistance component came from observing that after a meaningful pivot forms, price will often return toward the Heikin Ashi body structure surrounding that pivot before continuing in the direction of the larger move.
These retests can sometimes function as a market check of the recently established structure:
After a pivot low, price may pull back toward the HA support area before attempting another move higher.
After a pivot high, price may rally back toward the HA resistance area before attempting another move lower.
Because of this behavior, these levels can be used as potential long or short entry areas, particularly when the retest aligns with the prevailing structure, Fibonacci retracement levels, momentum, or other forms of confirmation.
The levels are not intended to predict that every retest will hold. Rather, they provide clearly defined areas where traders can watch price behavior for continuation or failure.
Heikin Ashi Support & Resistance Logic
Swing pivots are identified using Heikin Ashi wick structure and a configurable fractal-style pivot method.
The support and resistance levels are then derived separately from the HA candle bodies surrounding the pivot.
By default, the script searches a configurable group of candles around each pivot for the local body structure or "nook" associated with the reversal.
For a pivot high, resistance is placed at the highest relevant HA body bottom near that pivot.
For a pivot low, support uses the mirrored calculation and is placed at the lowest relevant HA body top near that pivot.
This means the S/R level does not necessarily have to come from the exact candle containing the highest or lowest wick. A nearby candle can provide the more meaningful body-based level.
Users can also choose Wick instead of Body placement independently for support and resistance.
Automatic Fibonacci Retracements
The script automatically identifies opposing Heikin Ashi swing pivots and draws Fibonacci retracement levels across the active swing.
For a bullish swing:
0.000 = swing high
1.000 = swing low
For a bearish swing:
0.000 = swing low
1.000 = swing high
Displayed levels include:
0.000 · 0.236 · 0.382 · 0.500 · 0.618 · 0.786 · 1.000
Each Fib is labeled with both its ratio and corresponding price.
When an active swing extends beyond the established pivot, the Fibonacci structure can update with the expanding move until a new opposing pivot establishes the next completed swing structure.
Using the Two Systems Together
The Fib levels and HA support/resistance levels are intentionally calculated as separate structures.
The Fibonacci retracement measures the price range between the swing extremes, while the HA S/R levels identify body-based areas surrounding those pivots.
This can create useful confluence.
For example, during a bullish structure, a pullback into:
HA pivot support,
a meaningful Fib retracement,
and confirming momentum or price action
may provide an area to evaluate for a potential long continuation.
The same concept is mirrored for short setups when price retests HA resistance during a bearish structure.
Features
Works on standard candlestick or Heikin Ashi charts
Internally calculated Heikin Ashi OHLC data
Fractal-style automatic swing detection
Automatic bullish and bearish Fibonacci retracements
Dynamic tracking of an extending price leg
Fib ratio and price labels
Automatic HA-based support and resistance
Local HA body-structure/"nook" detection around pivots
Adjustable number of candles searched around a pivot
Independent Body / Wick selection for support and resistance
Optional pivot markers
Adjustable Fib appearance and transparency
Individual alerts for each Fib retracement
Combined Any Fib Level alert
Optional configurable alert suppression/cooldown
UI-controlled alert() calls for TradingView watchlist and multi-symbol scanning workflows
Alerts
Alerts are available for individual Fibonacci levels as well as an Any Fib Level condition.
Users can configure how a Fib interaction is recognized, including wick touches or closing-price crosses.
An optional suppression setting can prevent repeated alerts for a configurable number of bars after an initial signal.
The script also includes independently selectable alert() function calls, allowing it to be used with TradingView's Any alert() function call option for watchlist and multi-symbol scanning.
Important Note
Heikin Ashi candles use synthetic OHLC values derived from standard market prices. HA candle values therefore may not exactly match the prices displayed by standard candles.
This indicator is intended as a technical-analysis and chart-organization tool. A support, resistance, or Fibonacci interaction is not by itself confirmation that a reversal or continuation will occur. These areas are best evaluated alongside market structure, price action, momentum, volume, and appropriate risk management.
Open-source script. The code is available for users who would like to study the methodology, modify it, or build upon the underlying concepts.
The script calculates Heikin Ashi price structure internally, so it can be used on a standard candlestick chart without requiring the chart itself to be switched to Heikin Ashi candles.
The indicator was designed around two related ideas:
Automatically identify meaningful swing pivots and maintain the appropriate Fibonacci retracement for the current price leg.
Identify Heikin Ashi body structures near those pivots that may act as useful retest zones for continuation.
Why Heikin Ashi Support & Resistance?
The HA support/resistance component came from observing that after a meaningful pivot forms, price will often return toward the Heikin Ashi body structure surrounding that pivot before continuing in the direction of the larger move.
These retests can sometimes function as a market check of the recently established structure:
After a pivot low, price may pull back toward the HA support area before attempting another move higher.
After a pivot high, price may rally back toward the HA resistance area before attempting another move lower.
Because of this behavior, these levels can be used as potential long or short entry areas, particularly when the retest aligns with the prevailing structure, Fibonacci retracement levels, momentum, or other forms of confirmation.
The levels are not intended to predict that every retest will hold. Rather, they provide clearly defined areas where traders can watch price behavior for continuation or failure.
Heikin Ashi Support & Resistance Logic
Swing pivots are identified using Heikin Ashi wick structure and a configurable fractal-style pivot method.
The support and resistance levels are then derived separately from the HA candle bodies surrounding the pivot.
By default, the script searches a configurable group of candles around each pivot for the local body structure or "nook" associated with the reversal.
For a pivot high, resistance is placed at the highest relevant HA body bottom near that pivot.
For a pivot low, support uses the mirrored calculation and is placed at the lowest relevant HA body top near that pivot.
This means the S/R level does not necessarily have to come from the exact candle containing the highest or lowest wick. A nearby candle can provide the more meaningful body-based level.
Users can also choose Wick instead of Body placement independently for support and resistance.
Automatic Fibonacci Retracements
The script automatically identifies opposing Heikin Ashi swing pivots and draws Fibonacci retracement levels across the active swing.
For a bullish swing:
0.000 = swing high
1.000 = swing low
For a bearish swing:
0.000 = swing low
1.000 = swing high
Displayed levels include:
0.000 · 0.236 · 0.382 · 0.500 · 0.618 · 0.786 · 1.000
Each Fib is labeled with both its ratio and corresponding price.
When an active swing extends beyond the established pivot, the Fibonacci structure can update with the expanding move until a new opposing pivot establishes the next completed swing structure.
Using the Two Systems Together
The Fib levels and HA support/resistance levels are intentionally calculated as separate structures.
The Fibonacci retracement measures the price range between the swing extremes, while the HA S/R levels identify body-based areas surrounding those pivots.
This can create useful confluence.
For example, during a bullish structure, a pullback into:
HA pivot support,
a meaningful Fib retracement,
and confirming momentum or price action
may provide an area to evaluate for a potential long continuation.
The same concept is mirrored for short setups when price retests HA resistance during a bearish structure.
Features
Works on standard candlestick or Heikin Ashi charts
Internally calculated Heikin Ashi OHLC data
Fractal-style automatic swing detection
Automatic bullish and bearish Fibonacci retracements
Dynamic tracking of an extending price leg
Fib ratio and price labels
Automatic HA-based support and resistance
Local HA body-structure/"nook" detection around pivots
Adjustable number of candles searched around a pivot
Independent Body / Wick selection for support and resistance
Optional pivot markers
Adjustable Fib appearance and transparency
Individual alerts for each Fib retracement
Combined Any Fib Level alert
Optional configurable alert suppression/cooldown
UI-controlled alert() calls for TradingView watchlist and multi-symbol scanning workflows
Alerts
Alerts are available for individual Fibonacci levels as well as an Any Fib Level condition.
Users can configure how a Fib interaction is recognized, including wick touches or closing-price crosses.
An optional suppression setting can prevent repeated alerts for a configurable number of bars after an initial signal.
The script also includes independently selectable alert() function calls, allowing it to be used with TradingView's Any alert() function call option for watchlist and multi-symbol scanning.
Important Note
Heikin Ashi candles use synthetic OHLC values derived from standard market prices. HA candle values therefore may not exactly match the prices displayed by standard candles.
This indicator is intended as a technical-analysis and chart-organization tool. A support, resistance, or Fibonacci interaction is not by itself confirmation that a reversal or continuation will occur. These areas are best evaluated alongside market structure, price action, momentum, volume, and appropriate risk management.
Open-source script. The code is available for users who would like to study the methodology, modify it, or build upon the underlying concepts.
Nexus ChartTools | Clearer Charts. Better Decisions.
Proprietary TradingView indicators for clearer technical analysis.
Creator of S/R + D and MTF Cross.
For invite-only access or support, send me a private message. Not financial advice.
Proprietary TradingView indicators for clearer technical analysis.
Creator of S/R + D and MTF Cross.
For invite-only access or support, send me a private message. Not financial advice.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
Nexus ChartTools | Clearer Charts. Better Decisions.
Proprietary TradingView indicators for clearer technical analysis.
Creator of S/R + D and MTF Cross.
For invite-only access or support, send me a private message. Not financial advice.
Proprietary TradingView indicators for clearer technical analysis.
Creator of S/R + D and MTF Cross.
For invite-only access or support, send me a private message. Not financial advice.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.