09.12.2012 Views

Charting and Studies User Guide - CQG.com

Charting and Studies User Guide - CQG.com

Charting and Studies User Guide - CQG.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Volume Calculation<br />

Trade volume is associated with a bid or ask side in this way:<br />

Page 341<br />

• If the trade is less than or equal to the best bid, all of its volume is associated with the<br />

bid.<br />

• If the trade is greater than or equal to the best ask, all of its volume is associated with<br />

the ask.<br />

• If best bid <strong>and</strong> best ask are equal or crossed <strong>and</strong> the trade has occurred, half of its<br />

volume is associated with the bid <strong>and</strong> half with the ask (except TFlow).<br />

• If the trade is less than the best ask <strong>and</strong> greater than the best bid, its volume is split<br />

between bid <strong>and</strong> ask inversely proportional to the distances to best bid/best ask, i.e. the<br />

closer the trade is to the best bid, the higher the quantity associated with the bid.<br />

Fractional volume is rounded to the closest integer (st<strong>and</strong>ard mathematics).<br />

Filtered trade volume for a bar is calculated as the sum of the ask/bid/total volumes of<br />

trades inside the bar, with the actual volumes greater than or equal to the given threshold.<br />

Consecutive trades are considered as one large trade if all of the following conditions are met:<br />

• They all happened on the same side (bid or ask).<br />

• There were no intervening opposite side trades among them (trade that is split between<br />

bid <strong>and</strong> ask is not considered intervening).<br />

• They happened within 50 milliseconds of each other (TFlow only).<br />

• No BBA updates occurred between trades.<br />

If a large trade contains trades from several bars, its volume is assigned to the last bar.<br />

If a trade is associated with the bid or ask side, the tick corresponding to this trade is<br />

associated with the same side. If a trade is divided between both sides, then the corresponding<br />

tick is divided between sides in the same proportion. Ticks assigned to bid <strong>and</strong> ask sides are<br />

accumulated in the VolBid <strong>and</strong> VolAsk outputs.<br />

Filtered tick volume is calculated as sum of ticks corresponding to:<br />

• single trades, not recognized as large trades, with volume greater than or equal to the<br />

given threshold, <strong>and</strong><br />

• large trades with volume greater than or equal to the given threshold.<br />

The Volume study works with most chart types (bar, c<strong>and</strong>lestick, equalized sessions, fill gap,<br />

line, no gap, percent bar, tick, TFlow, time-based TFlow, yield, BarXData, CVBXData, <strong>and</strong><br />

TFXData). Total actual <strong>and</strong> tick volume are calculated for historical charts <strong>and</strong> for point <strong>and</strong><br />

figure charts built from bars. Total actual, bid, ask, <strong>and</strong> tick volume are calculated for point <strong>and</strong><br />

figure charts built from ticks.<br />

<strong>Charting</strong> <strong>and</strong> <strong>Studies</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!