OPEN-SOURCE SCRIPT
Smoothed Heiken Ashi Candles [JopAlgo]

Smoothed Heiken Ashi Candles [JopAlgo] — cleaner bias, less noise, better timing
What it does (one line):
Builds a two-stage smoothed Heiken Ashi view so you can read trend vs. pullback without the usual candle noise. Color does the talking:
Lime = bullish state (close ≥ open on the smoothed HA feed)
Red = bearish state
Under the hood: price is EMA-smoothed ( Length len ), converted to Heiken Ashi, then smoothed again ( Length len2 ). Net effect: fewer whips, clearer swings.
What you’ll see
A full candle chart of Smoothed HA (o₂/h₂/l₂/c₂).
Color rule: o₂ > c₂ → red (bearish), otherwise lime (bullish).
No extra clutter—just an easy bias read you can trust at a glance.
Read in 3 seconds: What color? What slope? Are pullbacks shallow or deep relative to the last swing?
How to use it (simple, repeatable)
Bias filter:
Trade longs while candles are lime.
Trade shorts while candles are red.
Where to act (location first):
Use Volume Profile v3.2 [JopAlgo] (VAH/VAL/POC/LVNs) and Anchored VWAP [JopAlgo] for entries/targets.
No level, no trade.
When to click (timing):
Continuation: In lime, buy the first pullback that holds a level (VAL/AVWAP/MA cluster) and prints a fresh lime close. Mirror for red shorts.
Reclaim/Reject: A color flip that happens at a level (e.g., AVWAP reclaim → turns lime) is higher quality than a random mid-range flip.
Quality check (optional, strong):
If you use CVDv1 [JopAlgo], prefer setups with Alignment OK and no Absorption against your side.
Timeframe guidance
1–5m (scalps): Keep len / len2 shorter (e.g., 5 / 5 or 6 / 8) to avoid lag.
15m–1H (intraday): Default 10 / 10 is a sweet spot.
2H–4H (swing): Try 14–20 / 10–14 for smoother swings.
1D+ (position): 20–34 / 14–20 for backdrop; execute on a lower TF.
Settings that actually matter (and how to tune)
Smoothing Length for Original OHLC (len)
Controls the base smoothness before HA.
Lower = more reactive, more flips.
Higher = steadier bias, more lag.
Smoothing Length for Heiken Ashi (len2)
Controls the final polish of the HA feed.
Lower = earlier turns (noisier).
Higher = fewer flips (slower).
Practical tip: If you get too many color flips, raise len2 first. If it feels sluggish at entries, lower len slightly.
Entries, exits, and risk (keep it tight)
Entry — continuation:
In lime, wait for a pullback to VAL / AVWAP / MA cluster, then a new lime close → enter.
Stop: below structure/last swing. Targets: POC/HVNs or prior swing high/low.
Entry — reclaim/reject:
Color flips at a level (e.g., AVWAP reclaim turns lime) → enter with the level holding.
Invalidation: immediate flip back on the next bar and level loss.
Manage:
If color stays with you but progress stalls at HVNs, trim. If color flips against your position, tighten or exit unless higher-TF context argues to hold.
Best combos with other [JopAlgo] tools
Volume Profile v3.2: Use VAH/VAL/LVNs/POC for where to act; Smoothed HA tells you if trend context supports the trade.
Anchored VWAP: A reclaim/rejection with matching HA color is a high-quality timing cue.
CVDv1: Take color-aligned trades with flow (Alignment OK, strong Imbalance, no Absorption).
Patterns you’ll recognize
Walk-of-color: Multiple same-color bars with rising/lowering bodies → ride pullbacks to level; don’t fade.
Color flip at level: The cleanest reversal context (e.g., red→lime on a VAL reclaim).
Chop tell: Rapid lime↔red flips mid-range → do less; only trade edges.
Practical defaults to start
len = 10, len2 = 10
Timeframes: 15m–4H out of the box
Process: Location → Color/Bias → Timing bar → (optional) CVD check → Structure-based risk
Serious Disclaimer & Licensing
This indicator and description are provided for educational purposes only and do not constitute financial, investment, or trading advice. Markets involve risk; you can lose some or all of your capital. Past performance does not guarantee future results. You are solely responsible for evaluating the suitability of this tool in your process, including testing on historical and simulated data and applying appropriate risk management.
Data quality can vary by exchange/venue. No warranty—express or implied—is made regarding accuracy, completeness, or fitness for a particular purpose. [JopAlgo] assumes no liability for any direct or consequential losses arising from the use of this script or description.
License: This Pine Script™ code is released under the Mozilla Public License 2.0 (MPL 2.0), © JopAlgo. You may use, modify, and distribute the code under MPL 2.0 terms.
What it does (one line):
Builds a two-stage smoothed Heiken Ashi view so you can read trend vs. pullback without the usual candle noise. Color does the talking:
Lime = bullish state (close ≥ open on the smoothed HA feed)
Red = bearish state
Under the hood: price is EMA-smoothed ( Length len ), converted to Heiken Ashi, then smoothed again ( Length len2 ). Net effect: fewer whips, clearer swings.
What you’ll see
A full candle chart of Smoothed HA (o₂/h₂/l₂/c₂).
Color rule: o₂ > c₂ → red (bearish), otherwise lime (bullish).
No extra clutter—just an easy bias read you can trust at a glance.
Read in 3 seconds: What color? What slope? Are pullbacks shallow or deep relative to the last swing?
How to use it (simple, repeatable)
Bias filter:
Trade longs while candles are lime.
Trade shorts while candles are red.
Where to act (location first):
Use Volume Profile v3.2 [JopAlgo] (VAH/VAL/POC/LVNs) and Anchored VWAP [JopAlgo] for entries/targets.
No level, no trade.
When to click (timing):
Continuation: In lime, buy the first pullback that holds a level (VAL/AVWAP/MA cluster) and prints a fresh lime close. Mirror for red shorts.
Reclaim/Reject: A color flip that happens at a level (e.g., AVWAP reclaim → turns lime) is higher quality than a random mid-range flip.
Quality check (optional, strong):
If you use CVDv1 [JopAlgo], prefer setups with Alignment OK and no Absorption against your side.
Timeframe guidance
1–5m (scalps): Keep len / len2 shorter (e.g., 5 / 5 or 6 / 8) to avoid lag.
15m–1H (intraday): Default 10 / 10 is a sweet spot.
2H–4H (swing): Try 14–20 / 10–14 for smoother swings.
1D+ (position): 20–34 / 14–20 for backdrop; execute on a lower TF.
Settings that actually matter (and how to tune)
Smoothing Length for Original OHLC (len)
Controls the base smoothness before HA.
Lower = more reactive, more flips.
Higher = steadier bias, more lag.
Smoothing Length for Heiken Ashi (len2)
Controls the final polish of the HA feed.
Lower = earlier turns (noisier).
Higher = fewer flips (slower).
Practical tip: If you get too many color flips, raise len2 first. If it feels sluggish at entries, lower len slightly.
Entries, exits, and risk (keep it tight)
Entry — continuation:
In lime, wait for a pullback to VAL / AVWAP / MA cluster, then a new lime close → enter.
Stop: below structure/last swing. Targets: POC/HVNs or prior swing high/low.
Entry — reclaim/reject:
Color flips at a level (e.g., AVWAP reclaim turns lime) → enter with the level holding.
Invalidation: immediate flip back on the next bar and level loss.
Manage:
If color stays with you but progress stalls at HVNs, trim. If color flips against your position, tighten or exit unless higher-TF context argues to hold.
Best combos with other [JopAlgo] tools
Volume Profile v3.2: Use VAH/VAL/LVNs/POC for where to act; Smoothed HA tells you if trend context supports the trade.
Anchored VWAP: A reclaim/rejection with matching HA color is a high-quality timing cue.
CVDv1: Take color-aligned trades with flow (Alignment OK, strong Imbalance, no Absorption).
Patterns you’ll recognize
Walk-of-color: Multiple same-color bars with rising/lowering bodies → ride pullbacks to level; don’t fade.
Color flip at level: The cleanest reversal context (e.g., red→lime on a VAL reclaim).
Chop tell: Rapid lime↔red flips mid-range → do less; only trade edges.
Practical defaults to start
len = 10, len2 = 10
Timeframes: 15m–4H out of the box
Process: Location → Color/Bias → Timing bar → (optional) CVD check → Structure-based risk
Serious Disclaimer & Licensing
This indicator and description are provided for educational purposes only and do not constitute financial, investment, or trading advice. Markets involve risk; you can lose some or all of your capital. Past performance does not guarantee future results. You are solely responsible for evaluating the suitability of this tool in your process, including testing on historical and simulated data and applying appropriate risk management.
Data quality can vary by exchange/venue. No warranty—express or implied—is made regarding accuracy, completeness, or fitness for a particular purpose. [JopAlgo] assumes no liability for any direct or consequential losses arising from the use of this script or description.
License: This Pine Script™ code is released under the Mozilla Public License 2.0 (MPL 2.0), © JopAlgo. You may use, modify, and distribute the code under MPL 2.0 terms.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.
نص برمجي مفتوح المصدر
بروح TradingView الحقيقية، قام مبتكر هذا النص البرمجي بجعله مفتوح المصدر، بحيث يمكن للمتداولين مراجعة وظائفه والتحقق منها. شكرا للمؤلف! بينما يمكنك استخدامه مجانًا، تذكر أن إعادة نشر الكود يخضع لقواعد الموقع الخاصة بنا.
إخلاء المسؤولية
لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.