Skip to main content
The built-in functions for highs, lows, pivots and statistics over a window of bars. Each row maps one concept from Lipi to the other languages; the word in a cell is the relation, explained in the language map overview. Each section below gives the Lipi construct first, then the construct in each language, with a note wherever behaviour differs. The language name links to the documentation the row was checked against.

Highest value

The highest value source reached in the last length bars. In Lipi: ta.highest. At this build its first valid bars can miss the true maximum.

Offset of the highest value

Locates the highest value of source within the last length bars and returns its position rather than its value. In Lipi: ta.highestbars.

Lowest value

The lowest value source reached in the last length bars. In Lipi: ta.lowest. At this build it returns 0 on the first length bars after it first has a value.

Offset of the lowest value

Gives the position of the lowest value of source within the last length bars, not the value itself. In Lipi: ta.lowestbars.

Pivot high

Looks for a pivot high in source, as this build implements it. In Lipi: ta.pivothigh.

Pivot low

Looks for a pivot low in source, as this build implements it. In Lipi: ta.pivotlow.

Range of values

How much ground source covered over the last length bars, expressed as one figure. In Lipi: ta.range.

Median

The middle value of the last length values of source. In Lipi: ta.median.

Mode

Of the last length values of source, this reports the one that recurs most often. In Lipi: ta.mode.

Percentile by linear interpolation

The requested percentile of source over length bars, interpolating between the two values that straddle the rank. In Lipi: ta.percentile_linear_interpolation.

Percentile by nearest rank

Takes the requested percentile of source over length bars at the nearest rank, without interpolating. In Lipi: ta.percentile_nearest_rank.

Percent rank

Ranks where source now stands against the last length bars of itself. In Lipi: ta.percentrank.

Correlation coefficient

Correlation between two series, source1 and source2, measured over length bars. In Lipi: ta.correlation.