RangeLeader (Function)

image\trumpet2.gif Disclaimer

The RangeLeader function checks to see if the current bar is a range leader.

Syntax

RangeLeader

Returns (Integer)

A value of 1 is returned if the current bar is considered a range leader based on a pair of conditions (see Remarks). 0 if it is not.

Parameters

None

Remarks

This function compares the current and previous bar and looks at two conditions:

  • Whether the mid-point of the current bar is greater than the previous High or less than the previous Low.

  • Whether the Range of the current bar is greater than the Range of the previous bar. If both conditions are met, the function returns 1; if one or neither is met, the function returns 0.

Example

Value1 = RangeLeader;