TradeMUX SDK Documentation  1.0
TradeMUX SDK Documentation
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 indicator and returns its value

Parameters
symbolSymbol name on the data of which the indicator will be calculated. NULL means the current symbol
timeframeTimeframe. It can be any of following values:
PERIOD_CURRENT0Current timeframe
PERIOD_M111 minute
PERIOD_M555 minutes
PERIOD_M151515 minutes
PERIOD_M303030 minutes
PERIOD_H1601 hour
PERIOD_H42404 hours
PERIOD_D114401 day
PERIOD_W1100801 week
PERIOD_MN1432001 month
PERIOD_M222 minutes
PERIOD_M333 minutes
PERIOD_M444 minutes
PERIOD_M666 minutes
PERIOD_M101010 minutes
PERIOD_M121212 minutes
PERIOD_M202020 minutes
PERIOD_H21202 hours
PERIOD_H31803 hours
PERIOD_H63606 hours
PERIOD_H84808 hours
PERIOD_H1272012 hours
tenkan_senTenkan Sen averaging period
kijun_senKijun Sen averaging period
senkou_span_bSenkou SpanB averaging period
modeSource of data. It can be one of the Ichimoku Kinko Hyo mode values (1 - MODE_TENKANSEN, 2 - MODE_KIJUNSEN, 3 - MODE_SENKOUSPANA, 4 - MODE_SENKOUSPANB, 5 - MODE_CHIKOUSPAN)
shiftIndex of the value taken from the indicator buffer (shift relative to the current bar the given amount of periods ago)
Returns
Numerical value of the Ichimoku Kinko Hyo indicator