OPEN-SOURCE SCRIPT
已更新

Heikin Ashi Trend Zones [AGPro Series]

6 828
Heikin Ashi Trend Zones [AGPro Series]

Heikin Ashi Trend Zones [AGPro Series] is a clean overlay built for traders who like the smoothing behavior of Heikin Ashi but still want to keep the original market candles visible. Instead of repainting the chart with synthetic candles, the script reads the internal Heikin Ashi state in the background and converts it into a focused trend-state layer.

The engine follows four core ideas:

1. Internal HA Side
The script calculates the active Heikin Ashi side from synthetic HA open and close values, then filters weak neutral bodies so the state does not flip on every small candle.

2. HA Streak Quality
The panel tracks how long the current HA side has been active. This helps separate early state changes from mature continuation phases.

3. Optional Transition Zones
When the HA side changes with enough body strength, wick cleanliness, close location, ATR pressure, and prior-state maturity, the script can project a compact rectangular transition zone. This layer is disabled by default so the public chart view stays clean, but it remains available for traders who want to inspect HA changeover corridors.

4. Continuation Quality
Once a HA streak matures, the script scores continuation quality using body strength, wick cleanliness, close location, smoothed HA slope, streak depth, and ATR context. Labels appear only when the continuation score is strong enough and the cooldown rules allow a clean chart presentation.

What makes this script different

- It does not replace real candles with Heikin Ashi candles.
- It does not behave like a generic trend-following dashboard.
- It focuses on HA state transitions, HA streak maturity, and continuation quality.
- Optional transition boxes are concept-native HA corridors, not broad horizontal support/resistance zones.
- Label density is capped with cooldown and maximum visible label controls.
- The panel exposes HA side, streak, transition quality, continuation quality, and ATR context in a compact AGPro layout.

Visual design

The overlay stays restrained:
- A slim trend-state ribbon follows the smoothed HA path.
- Optional transition zones can extend forward as compact rectangles when enabled.
- Continuation labels are offset from candles with ATR spacing.
- Panel location, panel theme, panel font size, and label font size are adjustable.

Suggested usage

Use the script to study whether Heikin Ashi structure is shifting, stabilizing, or continuing while the original candles remain visible. The strongest reads usually come from alignment between a clean HA side, a growing streak, strong continuation quality, and an ATR context that supports the current state.

Default settings are tuned for a balanced public chart view with a clean ribbon and selective continuation labels. Faster traders can reduce smoothing and cooldown values. Swing traders can enable transition zones, increase transition projection, and require higher continuation quality for fewer labels.
發行說明
UPDATE NOTES - v1.1

This update focuses on measurement.

The core purpose of the script remains unchanged.
This release adds two measured follow-rate layers to the panel, without
touching the Heikin Ashi engine, the ribbon, the zones, or the labels.

This script continues to function as an analytical and visualization tool.
It does not attempt to predict price direction or provide guaranteed outcomes.


------------------------
What Changed
------------------------

- A Trans Follow layer was added to the panel. Every qualified HA
transition on the current chart is tracked once: it counts as followed
when price extends 1.5 ATR in the new direction before the HA side
flips back, and as failed when the side flips first or the tracking
window times out.

- A Cont Follow layer was added next to it. Every continuation signal
(the same condition that prints CONT / HOLD labels) is tracked the
same way against the active trend direction. The statistic works even
when continuation labels are hidden.

- Both rates are reported with their sample size (for example 57%
n=41) and stay neutral until at least 8 resolved events exist, so
small samples are never presented as evidence. The quality scores
still describe each signal's internal state; the new row shows how
such signals actually resolved on this chart.

- Both trackers register only on confirmed bars, regardless of the
Confirmed Bars Only visual setting, so the statistics never repaint.
Targets are frozen at registration.


------------------------
Visual Improvements
------------------------

- The panel gained one row in the same four-column grid, keeping the
existing width, alignment, and AGPro surface in both themes.


------------------------
Interface & Usability
------------------------

- No settings were changed, added defaults remain identical, and
existing chart layouts are not affected.


------------------------
Behavior Notes
------------------------

This update does not change the Heikin Ashi state engine, the doji
filter, the quality scoring, the ribbon, the transition zones, the
continuation labels, or the alerts.

The goal is to back the script's transition and continuation claims
with measured history, not to introduce new predictive behavior.


------------------------
Limitations Reminder
------------------------

The script remains a rule-based analytical tool.

Follow rates are measured on the current chart and timeframe only.
They describe how past signals resolved under this configuration;
they do not guarantee that future signals will resolve the same way.

Market conditions such as volatility, liquidity, and timeframe
differences may affect how signals appear.


------------------------
Risk Reminder
------------------------

This script is for educational and analytical purposes only.

It does not provide financial advice or guaranteed trading outcomes.

Users remain responsible for their own decisions.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。