iGator
The function returns the handle of the Gator indicator. The Oscillator shows the difference between the blue and red lines of Alligator (upper histogram) and difference between red and green lines (lower histogram).
int iGator( |
Parameters
symbol
[in] The symbol name of the security, the data of which should be used to calculate the indicator. The NULL value means the current symbol.
period
[in] The value of the period can be one of the ENUM_TIMEFRAMES values, 0 means the current timeframe.
jaw_period
[in] Averaging period for the blue line (Alligator's Jaw).
jaw_shift
[in] The shift of the blue line relative to the price chart. It isn't directly connected with the visual shift of the indicator histogram.
teeth_period
[in] Averaging period for the red line (Alligator's Teeth).
teeth_shift
[in] The shift of the red line relative to the price chart. It isn't directly connected with the visual shift of the indicator histogram.
lips_period
[in] Averaging period for the green line (Alligator's lips).
lips_shift
[in] The shift of the green line relative to the price charts. It isn't directly connected with the visual shift of the indicator histogram.
ma_method
[in] Smoothing type. Can be one of the values of ENUM_MA_METHOD.
applied_price
[in] The price used. Can be any of the price constants ENUM_APPLIED_PRICE or a handle of another indicator.
Returned value
Returns the handle of a specified technical indicator, in case of failure returns INVALID_HANDLE. The computer memory can be freed from an indicator that is no more utilized, using the IndicatorRelease() function, to which the indicator handle is passed.
Note
Buffer numbers: 0 - UPPER_HISTOGRAM, 1 - color buffer of the upper histogram, 2 - LOWER_HISTOGRAM, 3 - color buffer of the lower histogram.
© 2000-2010, MetaQuotes Software Corp.