iGator Indicator
Calculates the Gator oscillator and returns its value.
Function Signature
double iGator(
string symbol, // symbol
int timeframe, // timeframe
int jaw_period, // Jaw line period
int jaw_shift, // Jaw line shift
int teeth_period, // Teeth line period
int teeth_shift, // Teeth line shift
int lips_period, // Lips line period
int lips_shift, // Lips line shift
int ma_method, // MA averaging method
int applied_price, // applied price
int mode, // line index
int shift // shift
);
Parameters
NULL for current symbol.ENUM_TIMEFRAMES value. 0 for current chart timeframe.ENUM_MA_METHOD).ENUM_APPLIED_PRICE).MODE_UPPER (upper histogram) or MODE_LOWER (lower histogram).Returned Value
double: Numerical value of the Gator oscillator.Notes
The oscillator displays the difference between the Alligator red and blue lines (upper histogram) and between red and green lines (lower histogram).
Example
double diff = iGator(NULL, 0, 13, 8, 8, 5, 5, 3, MODE_SMMA, PRICE_MEDIAN, MODE_UPPER, 1);
Related Indicators
Platform Support
Constants Reference
MODE_UPPER, MODE_LOWER)
Previous
arrow_back
Ifractals