Gator Oscillator Phases

solaris

Member
This question is in regards to the Gator Oscillator. Can a scan be developed to identify the 4 phases of the Gator Oscillator ?
  • Sleeping Phases
  • Awakening Phases
  • Eating Phases
  • Sated Phases
Also can the code be modified to plot the 4 different phases on the Chart, such as a arrow for the sleeping phases, a circle for the awakening phase, a triangle for eating phase etc.

Here is the code: Any help or suggestion would be very appreciated. Thanks

Code:
declare lower;

input price = hl2;
input jawLength = 13;
input teethLength = 8;
input lipsLength = 5;
input jawDisplace = -8;
input teethDisplace = -5;
input lipsDisplace = -3;
input averageType = AverageType.WILDERS;

def jaw = WilliamsAlligator(price, jawLength, teethLength, lipsLength, jawDisplace, teethDisplace, lipsDisplace, averageType).Jaw;
def teeth = WilliamsAlligator(price, jawLength, teethLength, lipsLength, jawDisplace, teethDisplace, lipsDisplace, averageType).Teeth;
def lips = WilliamsAlligator(price, jawLength, teethLength, lipsLength, jawDisplace, teethDisplace, lipsDisplace, averageType).Lips;

plot Top = AbsValue(jaw - teeth);
plot Bottom = -AbsValue(teeth - lips);
plot ZeroLine = 0;

Top.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Top.DefineColor("Up", Color.UPTICK);
Top.DefineColor("Down", Color.DOWNTICK);
Top.AssignValueColor(if Top > Top[1] then Top.Color("Up") else Top.Color("Down"));
Bottom.SetPaintingStrategy(PaintingStrategy.HISTOGRAM);
Bottom.DefineColor("Up", Color.UPTICK);
Bottom.DefineColor("Down", Color.DOWNTICK);
Bottom.AssignValueColor(if Bottom < Bottom[1] then Bottom.Color("Up") else Bottom.Color("Down"));
ZeroLine.SetDefaultColor(GetColor(0));
 

Similar threads

Top