Max ( double value1 , double value2 );
Description
Returns the greater of two values.
Input parameters
Parameter | Default value | Description |
---|---|---|
value1 | - | Defines the first value for comparison. |
value2 | - | Defines the second value for comparison. |
Example
def SMA = SimpleMovingAvg();
plot data = Max(close, SMA);
This example displays the higher value of either the closing price or the simple moving average.