TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
double iGator ( string  symbol,
int  timeframe,
int  jaw_period,
int  jaw_shift,
int  teeth_period,
int  teeth_shift,
int  lips_period,
int  lips_shift,
int  ma_method,
int  applied_price,
int  mode,
int  shift 
)

Calculates the Gator oscillator and returns its value

Parameters
symbolSymbol name on the data of which the indicator will be calculated. NULL means the current symbol
timeframeTimeframe. It can be any of following values:
PERIOD_CURRENT0Current timeframe
PERIOD_M111 minute
PERIOD_M555 minutes
PERIOD_M151515 minutes
PERIOD_M303030 minutes
PERIOD_H1601 hour
PERIOD_H42404 hours
PERIOD_D114401 day
PERIOD_W1100801 week
PERIOD_MN1432001 month
PERIOD_M222 minutes
PERIOD_M333 minutes
PERIOD_M444 minutes
PERIOD_M666 minutes
PERIOD_M101010 minutes
PERIOD_M121212 minutes
PERIOD_M202020 minutes
PERIOD_H21202 hours
PERIOD_H31803 hours
PERIOD_H63606 hours
PERIOD_H84808 hours
PERIOD_H1272012 hours
jaw_periodBlue line averaging period (Alligator's Jaw)
jaw_shiftBlue line shift relative to the chart
teeth_periodRed line averaging period (Alligator's Teeth)
teeth_shiftRed line shift relative to the chart
lips_periodGreen line averaging period (Alligator's Lips)
lips_shiftGreen line shift relative to the chart
ma_methodMoving Average method. It can be any of following values:
MODE_SMASimple averaging
MODE_EMAExponential averaging
MODE_SMMASmoothed averaging
MODE_LWMALinear-weighted averaging
applied_priceApplied price. It can be any of the following values:
PRICE_CLOSEClose price
PRICE_OPENOpen price
PRICE_HIGHThe maximum price for the period
PRICE_LOWThe minimum price for the period
PRICE_MEDIANMedian price, (high + low)/2
PRICE_TYPICALTypical price, (high + low + close)/3
PRICE_WEIGHTEDWeighted close price, (high + low + close + close)/4
modeIndicator line index. It can be any of folloing values:
MODE_GATORJAWblue line (Jaw line)
MODE_GATORTEETHred line (Teeth line)
MODE_GATORLIPSgreen line (Lips line)
shiftIndex of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago)
Returns
Numerical value of the Gator oscillator

oscillator displays the difference between the Alligator red and blue lines (the upper histogram) and that between red and green lines (the lower histogram)