POSITIVE_INFINITY

Syntax

Double.POSITIVE_INFINITY

Description

Defines the positive value of infinitely large magnitude.

Example

declare lower;
def range = high - low;
plot SmallestRange = LowestAll(if range == 0 then Double.POSITIVE_INFINITY else range);

This script finds the smallest non-zero candle range on chart.