Ichimoku Kinko Hyo
Five lines that show trend, momentum and support in one view.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| tenkan_period | int | 9 | 1 to 500 |
| kijun_period | int | 26 | 1 to 500 |
| senkou_b_period | int | 52 | 1 to 500 |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| tenkan | value | Optional | color theme.up, style line, width 1 |
| kijun | value | Optional | color theme.down, style line, width 1 |
| senkou_a | value | Optional | color theme.accent, shift 26, style line, width 1 |
| senkou_b | value | Optional | color theme.accent, shift 26, style line, width 1 |
| chikou | value | Optional | color 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.