OPEN-SOURCE SCRIPT

Relative Volume Heat [forexobroker]

402
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.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.