Block Volume
<< Click to Display Table of Contents >> Block Volume |
Block volume detects block trades and display how many occurred per bar. This can be displayed either as trades or volume. Historical tick data is required to plot historically.
BlockVolume(int blockSize, CountType countType)
BlockVolume(ISeries<double> input, int blockSize, CountType countType)
double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.
input |
Indicator source data (?) |
blockSize |
The minimum volume a trade must be to be considered a block trade |
countType |
The format to count the block trades. By number of block trades that occurred or total block trade volume |
// A 1 tick data series must be added to OnStateChange() as this indicator runs off of tick data
// Prints the current value of an 80 block trade size counted in volume for the Block Volume double value = BlockVolume(80, CountType.Volume)[0]; } |