Plenty of traders use the Kijun-sen and ignore the rest of Ichimoku. The kijun sen indicator gives them exactly that. One line, one setting. No cloud, no Tenkan, no lagging span, no arrows and no alerts. If you want the whole system there are other tools. This one does the single job and stops.
This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 1: Kijun-sen |
| Alerts | none |
| Inputs | 1 |
What the Kijun Sen Indicator draws on the chart
Kijun-sen is the only plot, a dodger blue line at the Ichimoku baseline.
The line is flat wherever the 26-bar high and low have not changed, which is a real feature of how Kijun behaves.
Nothing else appears. There are no markers, no zones, no labels and no shading.
The final bars of the chart carry no line, because the calculation stops short of the edge.
- Kijun-sen: line, dodger blue, width 2

How the Kijun Sen Indicator calculates its values
One call, one value
KijunBuf[i] takes iIchimoku with MODE_KIJUNSEN, passing 9 and 52 as the Tenkan and Senkou B arguments because the function requires them, while `KijunPeriod` supplies the value that actually matters. Those two extra numbers play no part in a Kijun reading, so the line matches any other Kijun at the same period.
What the baseline actually is
Kijun-sen is the midpoint between the highest high and the lowest low over its period. It is not an average of closes. That difference explains the long flat stretches. While neither extreme changes, the midpoint cannot move either. A moving average never behaves that way.
Stopping short of the edge
last_valid takes rates_total – 1 – `KijunPeriod`. The loop respects that boundary, so the oldest bars where the window has too little history stay empty rather than carrying a partial value. That keeps a false line from appearing at the left of the chart.
How to read the signals
Flat is normal, and a flat Kijun means the 26-bar range has not changed at all.
A step in the line marks the bar where a new extreme entered or left the window.
Price far above a flat baseline is a common read for a stretched move.
Many Ichimoku traders treat the baseline as a dynamic support and resistance level rather than a signal.
This build has no alert inputs at all. There is no popup, notification, email or sound option, and no on-chart marker either. It plots a level and leaves every decision about it to you, which is the point of stripping the tool back this far.
Every Kijun Sen Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
KijunPeriod |
Kijun-sen period (Ichimoku standard). The baseline period, default `26`, which is the Ichimoku standard. Shortening it to 20 makes the line step more often; lengthening it to 52 gives a far slower reference. | 26 |

Settings that fit your chart
The Kijun is timeframe agnostic and works anywhere you already use Ichimoku. A 26-period baseline covers about a day of H1 bars. Move up to H4 or daily and it becomes a slow reference that many swing traders watch as a level. Drop to M5 and the line steps often enough that its flat stretches, the informative part, mostly disappear.
When the Kijun Sen Indicator fails
One line with one input gives you no filter and no context. It is a reference, not a system.
Reading the baseline without the cloud loses the confirmation most Ichimoku methods depend on.
Because the calculation stops short of the newest bars, the line does not extend all the way to the right edge.
Copy the compiled Kijun Sen Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.
Download the Kijun Sen Indicator for MT4 and MT5
The zip holds the compiled Kijun Sen Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.
Download this indicator free
Enter your email and the file is yours. You also get the full MT4 and MT5 library.
FAQ
Why does the code pass 9 and 52 if only KijunPeriod matters?
Because MetaTrader’s iIchimoku requires all three period arguments whichever line you request. Asking for MODE_KIJUNSEN uses only the Kijun period, so the 9 and 52 are placeholders that never touch the result. The line matches any other Kijun-sen set to the same period.
Why is the Kijun-sen line flat so often?
Because it is the midpoint between the highest high and the lowest low of its window, not an average. As long as neither of those extremes changes, the midpoint stays exactly where it is. Those flat stretches are informative: they mark periods where the range has stopped expanding.
Does changing KijunPeriod break Ichimoku convention?
It departs from it. Twenty-six is the standard and most published Ichimoku work assumes it, along with 9 and 52 for the other lines. Shortening it gives a livelier baseline that steps more often. If you use the Kijun alongside a full Ichimoku, keeping them matched avoids confusion.
Why does KijunPeriod leave the oldest bars without a line?
last_valid caps the calculation at rates_total minus one minus `KijunPeriod`. Bars nearer that edge lack a full window behind them, so the code leaves them empty rather than drawing a partial value. It is deliberate, and it prevents a misleading line at the chart’s oldest end.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Kijun Sen Indicator as one input. Always backtest before trading live.
Category: this is part of our Signal and Forecast collection. Also, plainly, browse more Signal and Forecast for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- For background on this concept, see Financial services on Wikipedia.
- For broader market context, see Ask at Investopedia.
