Gator Oscillator

Created by Bill Williams, the Gator Oscillator is an expanded oscillator view of Williams Alligator’s three moving averages. [Discuss] 💬

chart for Gator Oscillator

// C# usage syntax
IEnumerable<GatorResult> results =
  quotes.GetGator();

// with custom Alligator configuration
IEnumerable<GatorResult> results = quotes
  .GetAlligator([see Alligator docs])
  .GetGator();

Historical quotes requirements

If using default settings, you must have at least 121 periods of quotes to cover the warmup and convergence periods. Since this uses a smoothing technique, we recommend you use at least 271 data points prior to the intended usage date for better precision. If using a custom Alligator configuration, see Alligator documentation for historical quotes requirements.

quotes is a collection of generic TQuote historical price quotes. It should have a consistent frequency (day, hour, minute, etc). See the Guide for more information.

Response

IEnumerable<GatorResult>

Convergence warning: The first 150 periods will have decreasing magnitude, convergence-related precision errors that can be as high as ~5% deviation in indicator values for earlier periods.

GatorResult

Date DateTime - Date from evaluated TQuote

Upper double - Absolute value of Alligator Jaw-Teeth

Lower double - Absolute value of Alligator Lips-Teeth

UpperIsExpanding bool - Upper value is growing

LowerIsExpanding bool - Lower value is growing

Utilities

See Utilities and helpers for more information.

Chaining

This indicator may be generated from any chain-enabled indicator or method.

// example
var results = quotes
    .Use(CandlePart.HLC3)
    .GetGator();

Results cannot be further chained with additional transforms.