//=================================================================
// Indicator
// Test MTF Kijun-Sen H1 + M5
//=================================================================
DEFPARAM CALCULATEONLASTBARS = 1000
//=================================================================
// Timeframe H1
//=================================================================
TIMEFRAME(1H,UPDATEONCLOSE)
KSh1 = KijunSen[9,26,52]
KSh2 = (highest[26](high) + lowest[26](low)) / 2
//=================================================================
// Timeframe Default
//=================================================================
TIMEFRAME(DEFAULT,DEFAULT)
KS1 = KijunSen[9,26,52]
KS2 = (highest[26](high) + lowest[26](low)) / 2
//// DISPLAY
IF DisplayKS THEN
DRAWPOINT(barindex,KS2) COLOURED(0,0,0,0) BORDERCOLOR(0,0,255,255)
ENDIF
IF DisplayKSH1 THEN
DRAWPOINT(barindex,KSh2) COLOURED(0,0,0,0) BORDERCOLOR(0,0,255,255)
ENDIF
RETURN KS1 COLOURED(0,0,255,100) STYLE(LINE,1) as "KS1", KSh1 COLOURED(0,0,255,100) STYLE(LINE,1) as "KSh1"