MQL4 Reference Technical Indicators iGator
iGatorCalculates the Gator oscillator 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 method enumeration value. applied_price [in] Applied price. It can be any of Applied price enumeration values. mode [in] Indicator line index. It can be any of Indicators line identifiers enumeration value. MODE_UPPER - upper histogram, 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 Gator oscillator. Note The oscillator displays the difference between the Alligator red and blue lines (the upper histogram) and that between red and green lines (the lower histogram). Example:
|