Ichimoku Kinko Hyo

ichimokutrendForge API 1

Five lines that show trend, momentum and support in one view.

Inputs

NameTypeDefaultRange
tenkan_periodint91 to 500
kijun_periodint261 to 500
senkou_b_periodint521 to 500

Outputs

NameTypeRequiredDescription
tenkanvalueOptionalcolor theme.up, style line, width 1
kijunvalueOptionalcolor theme.down, style line, width 1
senkou_avalueOptionalcolor theme.accent, shift 26, style line, width 1
senkou_bvalueOptionalcolor theme.accent, shift 26, style line, width 1
chikouvalueOptionalcolor theme.accent, shift -26, style line, width 1
Warm-up
max(tenkan_period, kijun_period, senkou_b_period) - 1 bars (51 at the defaults)
Repaints
No
Parity
MetaTrader 5, within 1e-12

Formula

mid(n) = (highest high + lowest low over the last n bars) / 2

Tenkan = mid(tenkan_period), Kijun = mid(kijun_period)

Senkou A = (Tenkan + Kijun) / 2, Senkou B = mid(senkou_b_period)

Chikou = the close

The values are not displaced. The chart draws the two spans kijun_period bars ahead and Chikou kijun_period bars back; strategies read the values as they are.