PriceVolDistribution
|
Matrix functions |
SYNTAX | PriceVolDistribution( priceH, priceL, vol, bins, absolute = False, startbar = 0, endbar = -1 ) |
RETURNS | MATRIX |
FUNCTION | The function is general purpose frequency distribution function. It is typically used to create distribution of volume versus price but this is only one of many possible uses. The function takes priceH, priceL and vol arrays and outputs distribution MATRIX with price levels in first column and relative volume at that level in second column. The bins parameter decides how many price 'bins' the distribution will have. The absolute parameter decides whenever returned volumes are absolute sum or relative (0...1) values. The startbar and endbar decides which bars from input array should be used. |
EXAMPLE | // a demo showing |
SEE ALSO |
The PriceVolDistribution function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.