OPEN-SOURCE SCRIPT
Mis à jour HA_with_Friends

HA_with_Friends =
HA + Momentum + EMA + WWV Combined Indicator
This indicator combines four powerful technical analysis tools into a single pane, designed primarily for XAUUSD (Gold) trading but applicable to any instrument.
─── COMPONENTS ───────────────────────────────────────
1. Heiken Ashi Candles
Displays smoothed Heiken Ashi candlesticks to filter out market noise
and identify trend direction more clearly than standard candles.
2. EMA Cloud (50/100)
Two Exponential Moving Averages with a dynamic color-filled cloud.
- Green cloud = Uptrend (EMA 50 above EMA 100)
- Red cloud = Downtrend (EMA 50 below EMA 100)
3. HA Momentum Signal
Detects the first high-momentum Heiken Ashi candle after a color change,
filtering by Body Ratio, Wick Ratio, and Minimum Body Size.
- ▲ Black triangle = BUY signal
- ▼ Orange triangle = SELL signal
4. WWV ATR (Weis Wave Volume — ATR Method)
Displays cumulative wave volume using ATR-based Renko logic.
Green dot = Bullish wave | Red dot = Bearish wave
5. WWV LB (Weis Wave Volume — LazyBear Method)
Displays cumulative wave volume using trend-detection logic.
Lime dot = Bullish wave | Red dot = Bearish wave
─── SETTINGS ─────────────────────────────────────────
HA Momentum
• Min Body Ratio (%) — Minimum candle body as % of total range
• Max Wick Ratio (%) — Maximum momentum-side wick as % of total range
• Min Body Size (Points) — Minimum body size in price points
EMA
• EMA Fast Length (default: 50)
• EMA Slow Length (default: 100)
WWV ATR
• Value — ATR period for Renko brick size
• Price Source — Close / Open-Close / High-Low
• Use True Range — Always / Auto / Never
WWV LB
• Trend Detection Length — Bars used to confirm rising/falling trend
─── ALERTS ───────────────────────────────────────────
• HA Momentum BUY Signal
• HA Momentum SELL Signal
─── NOTES ────────────────────────────────────────────
• All components are displayed in a separate pane (overlay = false)
• WWV dots are plotted below Heiken Ashi candles using ATR-based offset
• Optimized for M5 timeframe on XAUUSD
• Combine with higher timeframe analysis for best results
HA + Momentum + EMA + WWV Combined Indicator
This indicator combines four powerful technical analysis tools into a single pane, designed primarily for XAUUSD (Gold) trading but applicable to any instrument.
─── COMPONENTS ───────────────────────────────────────
1. Heiken Ashi Candles
Displays smoothed Heiken Ashi candlesticks to filter out market noise
and identify trend direction more clearly than standard candles.
2. EMA Cloud (50/100)
Two Exponential Moving Averages with a dynamic color-filled cloud.
- Green cloud = Uptrend (EMA 50 above EMA 100)
- Red cloud = Downtrend (EMA 50 below EMA 100)
3. HA Momentum Signal
Detects the first high-momentum Heiken Ashi candle after a color change,
filtering by Body Ratio, Wick Ratio, and Minimum Body Size.
- ▲ Black triangle = BUY signal
- ▼ Orange triangle = SELL signal
4. WWV ATR (Weis Wave Volume — ATR Method)
Displays cumulative wave volume using ATR-based Renko logic.
Green dot = Bullish wave | Red dot = Bearish wave
5. WWV LB (Weis Wave Volume — LazyBear Method)
Displays cumulative wave volume using trend-detection logic.
Lime dot = Bullish wave | Red dot = Bearish wave
─── SETTINGS ─────────────────────────────────────────
HA Momentum
• Min Body Ratio (%) — Minimum candle body as % of total range
• Max Wick Ratio (%) — Maximum momentum-side wick as % of total range
• Min Body Size (Points) — Minimum body size in price points
EMA
• EMA Fast Length (default: 50)
• EMA Slow Length (default: 100)
WWV ATR
• Value — ATR period for Renko brick size
• Price Source — Close / Open-Close / High-Low
• Use True Range — Always / Auto / Never
WWV LB
• Trend Detection Length — Bars used to confirm rising/falling trend
─── ALERTS ───────────────────────────────────────────
• HA Momentum BUY Signal
• HA Momentum SELL Signal
─── NOTES ────────────────────────────────────────────
• All components are displayed in a separate pane (overlay = false)
• WWV dots are plotted below Heiken Ashi candles using ATR-based offset
• Optimized for M5 timeframe on XAUUSD
• Combine with higher timeframe analysis for best results
Notes de version
# HA with Friends (HA_WWV)HA with Friends is a trend-following and momentum confirmation indicator that combines four powerful market analysis tools into a single visual framework:
✅ Heiken Ashi Momentum
✅ EMA Trend Cloud
✅ WWV ATR Trend Detection
✅ WWV LB Wave Analysis
✅ MACD Momentum Confirmation
The indicator is designed to help traders identify high-probability trend continuation opportunities while filtering out low-quality signals.
## Features
### 1. Heiken Ashi Momentum Signals
The script analyzes Heiken Ashi candle structure and identifies momentum candles based on:
* Minimum body-to-range ratio
* Maximum wick percentage
* Minimum candle body size
A BUY signal appears when a bullish momentum candle forms after a bearish-to-bullish color transition.
A SELL signal appears when a bearish momentum candle forms after a bullish-to-bearish color transition.
This helps traders avoid entering too early and wait for real momentum confirmation.
---
### 2. EMA Trend Cloud
Two configurable EMAs create a trend cloud:
* Fast EMA
* Slow EMA
Green cloud = Uptrend
Red cloud = Downtrend
The cloud provides a quick visual representation of market direction and trend strength.
---
### 3. WWV ATR Trend Detector
The WWV ATR engine tracks directional movement using ATR-based price filtering.
Green ATR Step Line = Bullish trend
Red ATR Step Line = Bearish trend
This component helps reduce noise and highlights meaningful trend changes.
---
### 4. WWV LB Trend Wave
The LB Wave module measures short-term directional persistence.
Green LB Dot = Upward wave
Red LB Dot = Downward wave
This helps traders visualize whether price movement is currently supported by directional momentum.
---
### 5. MACD Momentum Dot
MACD histogram strength is displayed using colored step line.
Dark Green = Strong Bullish Momentum
Light Green = Weakening Bullish Momentum
Dark Red = Strong Bearish Momentum
Light Red = Weakening Bearish Momentum
This provides an additional layer of momentum confirmation.
---
## Confluence Signals
The strongest signals occur when all four components agree:
* Heiken Ashi Direction
* WWV ATR Direction
* WWV LB Direction
* MACD Momentum
🚀 Confluence BUY:
All four indicators turn bullish simultaneously.
🔻 Confluence SELL:
All four indicators turn bearish simultaneously.
Only the first bar of a new confluence state is marked to avoid repeated signals.
---
## Alerts Included
The indicator includes built-in TradingView alerts for:
* HA Momentum BUY
* HA Momentum SELL
* Confluence BUY
* Confluence SELL
These alerts can be used for discretionary trading, automation, or webhook integrations.
---
## Best Used For
* Trend-following strategies
* Swing trading
* Forex
* Gold (XAUUSD)
* Indices
* Cryptocurrency markets
Works on all timeframes, although H1 and above generally provide cleaner signals.
---
## Disclaimer
This indicator is intended for educational and informational purposes only. No indicator can guarantee future performance. Always use proper risk management and test any strategy before trading with real capital.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.