iIchimoku Indicator

Overview

Calculates the Ichimoku Kinko Hyo indicator and returns its value.

Function Signature

double iIchimoku(
  string      symbol,       // symbol
  int         timeframe,    // timeframe
  int         tenkan_sen,   // period of Tenkan-sen line
  int         kijun_sen,    // period of Kijun-sen line
  int         senkou_span_b, // period of Senkou Span B line
  int         mode,         // line index
  int         shift         // shift
);

Parameters

  • **symbol**: Symbol name. NULL for current symbol.
  • **timeframe**: Timeframe. ENUM_TIMEFRAMES value. 0 for current chart timeframe.
  • **tenkan_sen**: Tenkan Sen averaging period.
  • **kijun_sen**: Kijun Sen averaging period.
  • **senkou_span_b**: Senkou Span B averaging period.
  • **mode**: Source of data. One of Ichimoku Kinko Hyo mode enumeration:
  • * MODE_TENKANSEN (1) * MODE_KIJUNSEN (2) * MODE_SENKOUSPANA (3) * MODE_SENKOUSPANB (4) * MODE_CHIKOUSPAN (5)
  • **shift**: Index of the value from the indicator buffer (shift relative to the current bar).
  • Return Value

    Numerical value of the Ichimoku Kinko Hyo indicator.

    Example

    double tenkan_sen = iIchimoku(NULL, 0, 9, 26, 52, MODE_TENKANSEN, 1);
    

    Related Indicators

  • [iGator](/indicators/igator)
  • [iBWMFI](/indicators/ibwmfi)