On this page
What this Keltner Channel draws
The indicator plots an upper band, a blue middle line and a lower band directly over price. The middle is a moving average of the selected price. The outer bands sit one average High−Low range above and below it. This is the classical range-based construction, rather than a modern EMA-plus-ATR-multiplier version.
The download is Keltner Channel FBR edition 1.02, a clearly marked derivative of EarnForex 1.01. FBR changed array alignment, history checks and calculation handling while keeping the channel formula and original attribution. The ZIP contains source code and a change log, not a compiled EX4 or EX5.
Middle line and average-range bands
At the defaults, Typical Price=(High+Low+Close)/3, Middle=SMA(Typical Price,10), Width=SMA(High−Low,10), Upper=Middle+Width and Lower=Middle−Width. Each completed 10-candle window includes the candle being evaluated. The width is a price distance, not pips, a percentage or a probability. Width is the distance from the middle to one band; the full channel span is 2×Width.
MA_Period controls both the middle-line period and the width window. Mode_MA and Price_Type change the middle line only: width remains a simple average of High−Low. There is no separate ATR period, multiplier or timeframe input. Selecting EMA does not turn the file into the common EMA20±2ATR variant.
High−Low differs from True Range. A gap from the previous close is not directly included in the width calculation. Consequently, compare the exact formula when another platform also labels an indicator Keltner Channel; matching names do not ensure matching bands.
Three inputs and original defaults
The FBR edition keeps the original three inputs. Use MA_Period≥1 and sufficient chart history. Mode_MA offers SMA, EMA, SMMA and LWMA. Price_Type offers Close, Open, High, Low, Median, Typical and Weighted prices. Our numerical comparison covers SMA; the other methods use the terminal’s native moving average.
| Input | Default | Practical meaning |
|---|---|---|
MA_Period | 10 | Number of candles for both the middle average and the simple mean of High−Low. Default 10. |
Mode_MA | MODE_SMA | Moving-average method for the middle line. It does not change how band width is averaged. |
Price_Type | PRICE_TYPICAL | Applied price for the middle line. Typical=(High+Low+Close)/3; width still uses High−Low. |
Real EUR/USD charts: bands, repeated exits and period changes
These original charts reconstruct the formula on archived Yahoo Finance EURUSD=X H1 OHLC quotes in UTC. The default examples use SMA, Typical price and period 10. They are not screenshots of a running MetaTrader terminal.



The provider does not identify these quotes as broker-specific Bid/Ask execution prices. Available terminal history and feeds can differ. Spreads, fills and trade returns were not measured. Scroll charts horizontally on narrow screens.
Download the illustrated readings (CSV) · 1Download the illustrated readings (CSV) · 2
Reading a completed-candle band crossing
For our upper-band annotation, the evaluated Close must be strictly above its own Upper and the previous Close at or below its own Upper. The lower-band annotation reverses those comparisons. Equality on the evaluated candle is not an outside close. These are transparent analytical definitions for the illustrations, not an embedded trading system.
An extended run above a band can produce many outside closes, while our crossing definition marks only a transition. A return inside is a separate observation. Price context, costs, entries and exits require an independently specified strategy.
This program has no popup, email or push alerts, no signal arrows and no order or stop-loss functions. There is no AlertCandle setting. Observe a completed chart candle if you want a fixed close-based reading; the current candle and its bands can still change.
Compile and install the appropriate source file
Choose the ZIP for your desktop platform. MT4 uses MQ4 and MT5 uses MQ5. Neither archive includes a ready EX4/EX5; compilation in that platform’s MetaEditor is required.
- Download and extract the MT4 or MT5 ZIP.
- In MetaTrader, choose File → Open Data Folder, then open MQL4 or MQL5.
- Copy the ZIP’s Indicators folder there. The separate upstream folder is a reference copy, not the file to install.
- Open Keltner_Channel_FBR.mq4 or Keltner_Channel_FBR.mq5 in the matching MetaEditor and press Compile (F7). Inspect any compiler errors.
- Refresh Navigator → Indicators, attach Keltner_Channel_FBR to a demo chart, and check inputs, history and Experts/Journal.
FBR has not compiled or executed these source files in a native terminal. The checks cover the formula, source review, file integrity and index/update models; they do not replace a desktop compilation and demo test.
Download Keltner Channel FBR edition free
Each ZIP contains the modified platform source, untouched EarnForex reference source, full Apache 2.0 license, CHANGES-FBR.txt, installation notes and SHA-256 checksums. Downloads are direct and require no registration or broker account.
EarnForex 1.01 is the upstream program; FBR edition 1.02 identifies this derivative. Original copyright and attribution remain in the source. Changes are documented, and MT4 and MT5 files are not interchangeable.
Free source ZIP · FBR 1.02 · Compile in MetaEditor
Forming candles, warm-up and verification limits
High, Low and Close can change while a candle forms, so both its centre and width can move. A temporary band crossing can disappear before close. Closed historical values are not a guarantee against later history corrections or differences between feeds.
The FBR changes set explicit array order, omit unavailable warm-up output, reject nonpositive periods and handle incremental updates. MT5 also keeps and releases its moving-average handle. They address source-level concerns; native compilation and runtime behaviour remain untested here.
Independent calculations cover the SMA construction with seven applied-price choices and model the two platforms’ indexing and update bounds. EMA, SMMA and LWMA initialization in a live terminal, tick replay, broker execution and profitability are outside that comparison. A channel alone does not define position size or a complete trading plan.
Frequently asked questions
Is this the modern ATR-multiplier Keltner Channel?
No. Width is the simple mean of High−Low. The middle average is configurable, but there is no ATR multiplier input.
Does changing Mode_MA also change band-width smoothing?
No. Mode_MA affects the middle only. Width remains a simple average of candle ranges over MA_Period.
Does this indicator send alerts or trade automatically?
No. It draws three lines. It has no popup, push, email, arrow or order functions.
Why is the download labelled FBR edition?
It is an Apache-licensed derivative of EarnForex 1.01 with marked source changes for alignment and calculation handling. The original source and change log are included.
Can I attach the downloaded source immediately?
Compile the MQ4 or MQ5 file in the matching MetaEditor first. No compiled EX4/EX5 or native runtime certification is supplied.
Sources and review scope
The original source and license were matched to a pinned EarnForex repository revision. FBR modifications are marked and recorded in the package. Historical calculations compare independent SMA implementations and index/update models; this is not a native terminal test or a strategy backtest.