OPEN-SOURCE SCRIPT
Aggressive Order Flow

This is a candle coloring indicator that combines aggregated Open Interest (OI) across multiple perpetual futures feeds with per-candle Volume Delta to identify whether price movement is backed by real orderflow conviction.
How it works
On each candle, the indicator checks two conditions:
OI direction — aggregated OI across up to 5 user-defined perpetual futures feeds is summed. If the combined OI grew by more than the defined threshold, OI is considered increasing.
Delta direction — lower timeframe volume is broken down into buying and selling pressure per bar. If net delta is positive, buy pressure increased
🟢 Green — OI increasing + positive delta. New money entering the market on the buy side. Bullish conviction.
🔴 Red — OI increasing + negative delta. New money entering the market on the sell side. Bearish conviction.
⬜ Grey — OI flat or decreasing. Movement is likely driven by existing positions being closed rather than new commitment. Low conviction.
Settings
Up to 5 perpetual futures tickers for OI aggregation, set them to spot to disable.
OI change threshold (%) to filter out noise, higher % means more OI added.
Stat Box
A table displayed in the top right corner shows the aggregated OI across chosen feeds now vs N candles ago, with the absolute and percentage change over that window. Only active ticker slots are included in the calculation.
Notes
The stat box is not necessary, you can disable it.
If you want to disable a ticker, set it to spot.
How it works
On each candle, the indicator checks two conditions:
OI direction — aggregated OI across up to 5 user-defined perpetual futures feeds is summed. If the combined OI grew by more than the defined threshold, OI is considered increasing.
Delta direction — lower timeframe volume is broken down into buying and selling pressure per bar. If net delta is positive, buy pressure increased
🟢 Green — OI increasing + positive delta. New money entering the market on the buy side. Bullish conviction.
🔴 Red — OI increasing + negative delta. New money entering the market on the sell side. Bearish conviction.
⬜ Grey — OI flat or decreasing. Movement is likely driven by existing positions being closed rather than new commitment. Low conviction.
Settings
Up to 5 perpetual futures tickers for OI aggregation, set them to spot to disable.
OI change threshold (%) to filter out noise, higher % means more OI added.
Stat Box
A table displayed in the top right corner shows the aggregated OI across chosen feeds now vs N candles ago, with the absolute and percentage change over that window. Only active ticker slots are included in the calculation.
Notes
The stat box is not necessary, you can disable it.
If you want to disable a ticker, set it to spot.
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.