MQL4 Reference Technical Indicators iAlligator
iAlligatorCalculates the Alligator indicator and returns its value.
Parameters symbol [in] Symbol name on the data of which the indicator will be calculated. NULL means the current symbol. timeframe [in] Timeframe. It can be any of ENUM_TIMEFRAMES enumeration values. 0 means the current chart timeframe. jaw_period [in] Blue line averaging period (Alligator's Jaw). jaw_shift [in] Blue line shift relative to the chart. teeth_period [in] Red line averaging period (Alligator's Teeth). teeth_shift [in] Red line shift relative to the chart. lips_period [in] Green line averaging period (Alligator's Lips). lips_shift [in] Green line shift relative to the chart. ma_method [in] MA method. It can be any of Moving Average methods. It can be any of ENUM_MA_METHOD enumeration values. applied_price [in] Applied price. It can be any of ENUM_APPLIED_PRICE enumeration values. mode [in] Data source, identifier of the indicator line. It can be any of the following values: MODE_GATORJAW - Gator Jaw (blue) balance line, shift [in] Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago). Returned value Numerical value of the Alligator indicator. Example:
|