MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Technical indicators  iAlligator

 
double iAlligator( 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 Bill Williams' Alligator and returns its value.
Parameters:
symbol   -   Symbol the data of which should be used to calculate indicator. NULL means the current symbol.
timeframe   -   Timeframe. It can be one of Timeframe enumeration values. 0 means the current chart timeframe.
jaw_period   -   Blue line averaging period (Alligator's Jaw).
jaw_shift   -   Blue line shift relative to the chart.
teeth_period   -   Red line averaging period (Alligator's Teeth).
teeth_shift   -   Red line shift relative to the chart.
lips_period   -   Green line averaging period (Alligator's Lips).
lips_shift   -   Green line shift relative to the chart.
ma_method   -   MA method. It can be any of Moving Average methods.
applied_price   -   Applied price. It can be any of Applied price enumeration values.
mode   -   Data source, identifier of a line of the indicator. It can be any of the following values:
MODE_GATORJAW - Gator Jaw (blue) balance line,
MODE_GATORTEETH - Gator Teeth (red) balance line,
MODE_GATORLIPS - Gator Lips (green) balance line.
shift   -   Shift relative to the current bar (number of periods back) where the data should be taken from.
Sample:
  double jaw_val=iAlligator(NULL, 0, 13, 8, 8, 5, 5, 3, MODE_SMMA, PRICE_MEDIAN, MODE_GATORJAW, 1);
 iAD iADX