OPEN-SOURCE SCRIPT
Composite Liquidity Flow: five-asset weighted flow with RSI conf

WHAT IT DOES
One histogram that answers "where is the WHOLE market's money leaning?" It estimates buy and sell pressure across five instruments at once — index futures, their ETFs, and an inverse hedge ETF with its logic flipped — weights them, smooths them, and prints the net as a z-scored delta histogram with an RSI confluence layer on top.
HOW IT WORKS
- Per-asset pressure from candle structure (body and wick attribution), priced in dollars, weighted per your inputs.
- The inverse-hedge leg counts its buying as market selling — hedging demand is information.
- Z-score normalization keeps the scale readable across quiet and wild days; a session filter mutes overnight ETF noise.
- Divergences require three consecutive bars of opposing flow plus optional RSI confirmation, with a cooldown so they stay rare.
- Confluence arrows print only when flow direction, flow acceleration, and RSI agree — and a live dashboard scores it all.
HOW TO USE IT
Built for intraday index trading (5m default tuning). Green above zero and accelerating with RSI supportive = the composite tape agrees with your long. The divergence markers are warnings, not entries.
WHAT IT CAN'T DO
All of it is estimated from OHLCV — a well-built proxy, not tick data. The composite describes the index complex; it says nothing about your single stock.
SETTINGS
Five symbols and weights, smoothing and normalization, RSI confluence, divergence strictness, session filter, full display toggles.
Open source. Free. The whole market's lean, one pane.
One histogram that answers "where is the WHOLE market's money leaning?" It estimates buy and sell pressure across five instruments at once — index futures, their ETFs, and an inverse hedge ETF with its logic flipped — weights them, smooths them, and prints the net as a z-scored delta histogram with an RSI confluence layer on top.
HOW IT WORKS
- Per-asset pressure from candle structure (body and wick attribution), priced in dollars, weighted per your inputs.
- The inverse-hedge leg counts its buying as market selling — hedging demand is information.
- Z-score normalization keeps the scale readable across quiet and wild days; a session filter mutes overnight ETF noise.
- Divergences require three consecutive bars of opposing flow plus optional RSI confirmation, with a cooldown so they stay rare.
- Confluence arrows print only when flow direction, flow acceleration, and RSI agree — and a live dashboard scores it all.
HOW TO USE IT
Built for intraday index trading (5m default tuning). Green above zero and accelerating with RSI supportive = the composite tape agrees with your long. The divergence markers are warnings, not entries.
WHAT IT CAN'T DO
All of it is estimated from OHLCV — a well-built proxy, not tick data. The composite describes the index complex; it says nothing about your single stock.
SETTINGS
Five symbols and weights, smoothing and normalization, RSI confluence, divergence strictness, session filter, full display toggles.
Open source. Free. The whole market's lean, one pane.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.