HighestAll ( IDataHolder data );
Description
Returns the highest value of data
for all bars in the chart.
Input parameters
Parameter | Default value | Description |
---|---|---|
data | - | Defines data for which the highest value is found. |
Example
input price = close;
plot MiddleLR = InertiaAll(price);
def dist = HighestAll(AbsValue(MiddleLR - price));
plot UpperLR = MiddleLR + dist;
plot LowerLR = MiddleLR - dist;
The code draws a regression channel where the highest and the lowest borders are defined with the help of the maximum deviation between the price and regression line. The deviation is calculated for all bars using the HighestAll
function.