GatorOscillator.Lower

Calculates the Lower part of the GatorOscillator indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
teethPeriodNumber8-
teethShiftNumber5-
lipsPeriodNumber5-
lipsShiftNumber3-

Returns two values:

  1. Series<Number> - the value of the Lower part of the Gator Oscillator.
  2. Boolean - whether or not the Lower part of the Gator Oscillator is green.

GatorOscillator.Lower is a built-in function - you can use it directly. Below is an example implementation:

123456789101112
function GatorOscillator.Lower(
teethPeriod = 8,
teethShift = 5,
lipsPeriod = 5,
lipsShift = 3
):
teeth = Alligator.Teeth(median, teethPeriod, teethShift)
lips = Alligator.Jaws(median, lipsPeriod, lipsShift)
value = -Math.Abs(teeth - lips)
isGreen = Rises(value)

value, isGreen