OPEN-SOURCE SCRIPT
Big Trades (Intrabar Approximation)

Big Trades (Intrabar Approximation)
WHAT IT DOES
This indicator highlights moments of unusually high volume inside each bar and prints the volume directly on the chart at the price where it happened. It is inspired by the "big trades" displays found on order-flow platforms, rebuilt using the data available in Pine Script.
HOW IT WORKS
Pine Script does not provide individual trades (tick-by-tick prints). Instead, the script splits every chart bar into lower-timeframe intrabars (1 second by default) using request.security_lower_tf(), and flags the intrabars whose volume stands out.
- Each flagged intrabar is placed at the midpoint of its high and low.
- Green = the intrabar closed at or above its open (up-intrabar). Purple = it closed below its open (down-intrabar).
- Flagged intrabars that sit close to each other inside the same bar are merged into a single label, colored by whichever side had more volume. Hover a label to see the up/down breakdown.
THRESHOLD MODES
- Relative (default): shows intrabars whose volume is greater than a multiple (default 4x) of the recent average intrabar volume. The threshold adapts automatically, so it works in both quiet overnight sessions and busy cash-session opens.
- Absolute: a fixed volume threshold.
- Top N: always shows the N largest intrabars of every bar. Useful for studying structure, but in quiet bars these are not necessarily "big".
SETTINGS
- Intrabar timeframe: 1S gives the most detail. Seconds timeframes are only available on plans that support them; otherwise use a minute timeframe that is lower than your chart timeframe.
- Merge distance: in ticks. Auto uses 20% of ATR(14). Increase it if labels overlap, decrease it for more detail.
- Show buy/sell split: displays levels with both sides as up/down (for example 120/45).
LIMITATIONS
- Numbers are the total volume of an intrabar, not a single order. A 300 label on a 1-second intrabar can be one large order or many small ones.
- Up/down color is based on the intrabar's close versus open, not on the true aggressor side of each trade.
- TradingView keeps at most 500 labels per script, so labels on older bars are removed as new ones appear.
- Intrabar history is limited, so very old bars may show no labels.
- Empty bars simply mean no intrabar passed the threshold.
This script is for chart analysis and education only. It is not a trading signal and does not provide financial advice.
WHAT IT DOES
This indicator highlights moments of unusually high volume inside each bar and prints the volume directly on the chart at the price where it happened. It is inspired by the "big trades" displays found on order-flow platforms, rebuilt using the data available in Pine Script.
HOW IT WORKS
Pine Script does not provide individual trades (tick-by-tick prints). Instead, the script splits every chart bar into lower-timeframe intrabars (1 second by default) using request.security_lower_tf(), and flags the intrabars whose volume stands out.
- Each flagged intrabar is placed at the midpoint of its high and low.
- Green = the intrabar closed at or above its open (up-intrabar). Purple = it closed below its open (down-intrabar).
- Flagged intrabars that sit close to each other inside the same bar are merged into a single label, colored by whichever side had more volume. Hover a label to see the up/down breakdown.
THRESHOLD MODES
- Relative (default): shows intrabars whose volume is greater than a multiple (default 4x) of the recent average intrabar volume. The threshold adapts automatically, so it works in both quiet overnight sessions and busy cash-session opens.
- Absolute: a fixed volume threshold.
- Top N: always shows the N largest intrabars of every bar. Useful for studying structure, but in quiet bars these are not necessarily "big".
SETTINGS
- Intrabar timeframe: 1S gives the most detail. Seconds timeframes are only available on plans that support them; otherwise use a minute timeframe that is lower than your chart timeframe.
- Merge distance: in ticks. Auto uses 20% of ATR(14). Increase it if labels overlap, decrease it for more detail.
- Show buy/sell split: displays levels with both sides as up/down (for example 120/45).
LIMITATIONS
- Numbers are the total volume of an intrabar, not a single order. A 300 label on a 1-second intrabar can be one large order or many small ones.
- Up/down color is based on the intrabar's close versus open, not on the true aggressor side of each trade.
- TradingView keeps at most 500 labels per script, so labels on older bars are removed as new ones appear.
- Intrabar history is limited, so very old bars may show no labels.
- Empty bars simply mean no intrabar passed the threshold.
This script is for chart analysis and education only. It is not a trading signal and does not provide financial advice.
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.