OPEN-SOURCE SCRIPT
Relative Volume Heat [forexobroker]

Relative Volume Heat [forexobroker] turns raw volume into a participation regime. It measures how today's volume compares to its own recent baseline, then z-scores that ratio to classify the market as COLD, WARM or HOT. Directional entries are only allowed while the regime is HOT, so signals only print when real participation is behind the move. A heatmap background visualises regime intensity at a glance.
🔶 ALGORITHM
1. Compute RVOL = volume / SMA(volume, Volume MA Length).
2. Z-score the RVOL ratio over the RVOL Z Window: rz = (RVOL - mean) / stdev.
3. Classify the regime: rz >= Hot Z = HOT (2), rz >= Warm Z = WARM (1), else COLD (0).
4. A trend EMA defines directional bias: close above = up, below = down.
5. A separate reclaim EMA times the entry: a confirmed close-cross of it in the bias direction inside a HOT (or optionally WARM) regime is the trigger.
6. A cooldown, bar-close confirmation and a position-lock gate the final signal so it never repaints intrabar and never stacks the same side.
🔶 SIGNAL LOGIC
- Buy: in-session AND regime tradable AND trend direction up AND close crosses over the reclaim EMA AND position not already long AND cooldown elapsed AND barstate.isconfirmed.
- Sell: in-session AND regime tradable AND trend direction down AND close crosses under the reclaim EMA AND position not already short AND cooldown elapsed AND barstate.isconfirmed.
Only fires while the RVOL z-score regime is HOT (or WARM if "Trade Only When Hot" is off).
🔶 INPUTS
- RVOL group: Volume MA Length baseline for the relative-volume ratio (default 20).
- RVOL group: RVOL Z Window the ratio is z-scored over (default 50).
- RVOL group: Hot Z Threshold above which trading is enabled (default 1.0).
- RVOL group: Warm Z Threshold separating WARM from COLD (default 0.0).
- RVOL group: Trend EMA defining directional bias inside a hot regime (default 34).
- Signal Logic group: Entry Reclaim EMA whose close-cross times entries (default 9).
- Signal Logic group: Trade Only When Hot toggle and Cooldown Bars between signals (default 5).
- Filters group: optional session restriction with a configurable window (default off).
- Visual group: dashboard, 3-layer glow, heat background and buy/sell colors (dashboard default on).
🔶 ALERTS
RVH Buy, RVH Sell, RVH Any Signal, RVH Hot On, RVH Hot Off, RVH Warm, RVH Cold, RVH EMA Up, RVH EMA Down, RVH Trend Cross, RVH Hot Now, RVH Armed, RVH Webhook JSON.
🔶 LIMITATIONS
- Needs warm-up bars before the z-score window and trend EMA are fully populated.
- Volume-based, so it requires a real volume feed; on forex it falls back to broker tick-volume, which is a proxy only.
- COLD and WARM regimes intentionally suppress signals, so quiet markets produce few or no entries.
- Defaults are tuned for liquid instruments and intraday/swing timeframes; thin symbols may need a higher Volume MA Length.
- The regime classifies participation, not direction; bias still depends on the trend and reclaim EMAs.
🔶 ALGORITHM
1. Compute RVOL = volume / SMA(volume, Volume MA Length).
2. Z-score the RVOL ratio over the RVOL Z Window: rz = (RVOL - mean) / stdev.
3. Classify the regime: rz >= Hot Z = HOT (2), rz >= Warm Z = WARM (1), else COLD (0).
4. A trend EMA defines directional bias: close above = up, below = down.
5. A separate reclaim EMA times the entry: a confirmed close-cross of it in the bias direction inside a HOT (or optionally WARM) regime is the trigger.
6. A cooldown, bar-close confirmation and a position-lock gate the final signal so it never repaints intrabar and never stacks the same side.
🔶 SIGNAL LOGIC
- Buy: in-session AND regime tradable AND trend direction up AND close crosses over the reclaim EMA AND position not already long AND cooldown elapsed AND barstate.isconfirmed.
- Sell: in-session AND regime tradable AND trend direction down AND close crosses under the reclaim EMA AND position not already short AND cooldown elapsed AND barstate.isconfirmed.
Only fires while the RVOL z-score regime is HOT (or WARM if "Trade Only When Hot" is off).
🔶 INPUTS
- RVOL group: Volume MA Length baseline for the relative-volume ratio (default 20).
- RVOL group: RVOL Z Window the ratio is z-scored over (default 50).
- RVOL group: Hot Z Threshold above which trading is enabled (default 1.0).
- RVOL group: Warm Z Threshold separating WARM from COLD (default 0.0).
- RVOL group: Trend EMA defining directional bias inside a hot regime (default 34).
- Signal Logic group: Entry Reclaim EMA whose close-cross times entries (default 9).
- Signal Logic group: Trade Only When Hot toggle and Cooldown Bars between signals (default 5).
- Filters group: optional session restriction with a configurable window (default off).
- Visual group: dashboard, 3-layer glow, heat background and buy/sell colors (dashboard default on).
🔶 ALERTS
RVH Buy, RVH Sell, RVH Any Signal, RVH Hot On, RVH Hot Off, RVH Warm, RVH Cold, RVH EMA Up, RVH EMA Down, RVH Trend Cross, RVH Hot Now, RVH Armed, RVH Webhook JSON.
🔶 LIMITATIONS
- Needs warm-up bars before the z-score window and trend EMA are fully populated.
- Volume-based, so it requires a real volume feed; on forex it falls back to broker tick-volume, which is a proxy only.
- COLD and WARM regimes intentionally suppress signals, so quiet markets produce few or no entries.
- Defaults are tuned for liquid instruments and intraday/swing timeframes; thin symbols may need a higher Volume MA Length.
- The regime classifies participation, not direction; bias still depends on the trend and reclaim EMAs.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
🔵Gain access to our powerful tools : kestutisbalciunas.com/tradingview/
🔵Join our free telegram for updates : t.me/algotradingedge
All scripts & content provided by Forexobroker are for informational & educational purposes only.
🔵Join our free telegram for updates : t.me/algotradingedge
All scripts & content provided by Forexobroker are for informational & educational purposes only.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
🔵Gain access to our powerful tools : kestutisbalciunas.com/tradingview/
🔵Join our free telegram for updates : t.me/algotradingedge
All scripts & content provided by Forexobroker are for informational & educational purposes only.
🔵Join our free telegram for updates : t.me/algotradingedge
All scripts & content provided by Forexobroker are for informational & educational purposes only.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.