Orderflow
Volume Bubbles
A study you add to a chart. Ready-made charts are in the chartbook shop.
Description
Volume Bubbles draws the large trades on the chart as circles. A bid trade and an ask trade each have their own color, and the circle grows with the size of the trade. It is a widely used way to see where size actually traded.
The difference from the built-in Volume Bubbles study is the timed aggregation, which is the version futures traders want. A futures order is often split into many prints at the same price, a few milliseconds apart. This study puts those prints back together before it decides what is large enough to draw, so the bubble is the size of the order rather than each fragment. An exchange summary trade is rebuilt from its pieces first. Separate prints on the same side and the same price are then added together while they arrive inside the merge window.
A bubble is drawn when that combined volume reaches the threshold. Fixed Volume uses Volume Threshold. Auto sets the threshold from the largest aggregated trade in each loaded bar, so a common lot size is not treated as unusual.
Key Notes
- The chart must be an intraday chart. For accurate bubbles, Intraday Data Storage Time Unit is set to 1 Tick. If it is not, the study writes a message to the Message Log.
- Bid bubbles start light red and ask bubbles start blue. The radius scales between the minimum and the maximum. Volume numbers are hidden until Show Volume Text is turned on.
- Largest Ask Bubble and Largest Bid Bubble are available for other studies to read.
- The largest bubbles on a bar are kept, up to Maximum Bubbles Per Bar. It starts at 24. The range is 1 to 80.
- Auto needs at least 20 bars that contain a trade. With fewer, it uses Volume Threshold.
- Changing the merge window or the history range reads the trades again. Changing the threshold, the mode, the colors, or the sizes reuses the aggregation already built.
Requirements
- In Sierra Chart: Chart >> Chart Settings >> Chart Data >> Trades Combining Method, set to Combine Trades Into Original Summary Trade. The study rebuilds the original trade from those records.
Important Inputs
| Input | What it does |
|---|---|
| Bubble Threshold Mode | Fixed Volume or Auto. It starts on Fixed Volume. Fixed Volume uses Volume Threshold. Auto calculates the threshold from the largest time-aggregated trade in each loaded bar. |
| Volume Threshold | The smallest combined trade drawn as a bubble in Fixed Volume. It starts at 150. The range is 1 to 1000000. Auto also falls back to it when there is too little data to measure. |
| Auto Sensitivity | Used only in Auto. A higher number requires a more unusual aggregated trade. It starts at 3.5. The range is 1 to 8. |
| Same-Price Merge Window (ms) | How long same-side, same-price prints are added into one trade. It starts at 50. The range is 0 to 5000. 50 milliseconds gathers a split order without joining a later, separate trade at that price. |
| Historical Bars To Scan (0=All) | How many recent bars are read for bubbles. It starts at 300. The range is 0 to 5000. 0 scans every loaded bar, up to that limit. |
| Size Based On | Visible Bars, or All Loaded Bars. It starts on All Loaded Bars. The radius is scaled against the bubbles in that set. |
| Show Volume Text | Writes the combined volume on the bubble. It starts off. |