MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Technical indicators  iIchimoku

 
double iIchimoku( string symbol, int timeframe, int tenkan_sen, int kijun_sen, int senkou_span_b, int mode, int shift)
Calculates the Ichimoku Kinko Hyo 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 any of Timeframe enumeration values. 0 means the current chart timeframe.
tenkan_sen   -   Tenkan Sen averaging period.
kijun_sen   -   Kijun Sen averaging period.
senkou_span_b   -   Senkou SpanB averaging period.
mode   -   Source of data. It can be one of the Ichimoku Kinko Hyo mode enumeration.
shift   -   Index of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago).
Sample:
  double tenkan_sen=iIchimoku(NULL, 0, 9, 26, 52, MODE_TENKANSEN, 1);