Disparity (Function)
The Disparity function calculates and returns the amount (as a percentage) that the current price varies above or below the average price over Length bars.
Syntax
Diparity(Price,Length)
Returns (Double
The function returns floating point value that represents the percent ratio of the price of the current bar to the average price over Length bars.
Parameters
Name | Type | Description |
Price | Numeric | Specifies which bar value (price, function, or formula) to use for current bar and moving average price. |
Length | Numeric | Sets the number of bars to use for the moving average. |