HighestVisibleValue
- get the highest value within visible chart area

Indicators
(AmiBroker 5.30)


SYNTAX HighestVisibleValue( array )
RETURNS NUMBER
FUNCTION The function calculates single value (not array) representing highest value of given array within VISIBLE range (on chart).

Should be applied only in indicators as only indicators have concept of "visible" bars. The function will return Null value if no visible bars are present. The function is equivalent to the following coding:

function HighestVisibleValueEquivalent( array )
{
 bv =
Status("barvisible");
 Hh = -
1e8;
 for( i = 0; i < BarCount; i++ )
 {
  
if( bv[ i ] AND array[ i ] > Hh ) Hh = array[ i ];
 }
 return hh;
}

EXAMPLE
SEE ALSO LowestVisibleValue() function

References:

The HighestVisibleValue function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.