iIchimoku
iIchimoku
Calculates the Ichimoku Kinko Hyo indicator and returns its value.
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
[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.
- tenkan_sen
[in] Tenkan Sen averaging period.
- kijun_sen
[in] Kijun Sen averaging period.
- senkou_span_b
[in] Senkou SpanB averaging period.
- mode
[in] Source of data. It can be one of the Ichimoku Kinko Hyo mode enumeration (1 - MODE_TENKANSEN, 2 - MODE_KIJUNSEN, 3 - MODE_SENKOUSPANA, 4 - MODE_SENKOUSPANB, 5 - MODE_CHIKOUSPAN).
- 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 Ichimoku Kinko Hyo indicator.
Example:
double tenkan_sen=iIchimoku(NULL,0,9,26,52,MODE_TENKANSEN,1);Last updated on