High

Returns the highest price for a specific bar.

Syntax

High(shift: number): number

Parameters

  • shift: A number representing the shift from the current bar

Return Value

Returns a number representing the highest price reached during the specified bar.

Description

The High method returns the highest price reached during a bar at the specified shift from the current bar. The shift parameter determines which bar's high price to return:

  • 0: Current bar

  • 1: Previous bar

  • 2: Two bars ago

  • And so on

Example

Last updated