GatorOscillator.Upper

Calculates the GatorOscillator.Upper indicator.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
jawsPeriodNumber13-
jawsShiftNumber8-
teethPeriodNumber8-
teethShiftNumber5-

Returns:

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

123456789101112
function GatorOscillator.Upper(
jawsPeriod = 13,
jawsShift = 8,
teethPeriod = 8,
teethShift = 5
):
jaws = Alligator.Jaws(median, jawsPeriod, jawsShift)
teeth = Alligator.Teeth(median, teethPeriod, teethShift)
value = Math.Abs(jaws - teeth)
isGreen = Rises(value)

value, isGreen