A channel drawn to the current bar includes that bar’s own extreme, which quietly guarantees price never breaks it. The ict donchian smart money structure indicator offsets its anchor by one bar, so the rails describe what came before and a close outside them becomes a real event.
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 | 5: Donchian Upper, Donchian Lower, Donchian Mid, BOS / CHoCH Up, BOS / CHoCH Down |
| Alerts | popup, push notification, email, sound |
| Inputs | 13 |
What the ICT Donchian Smart Money Structure Indicator draws on the chart
Three lines and two marks.
`Donchian Upper` runs dodger blue at width 2.
`Donchian Lower` runs crimson beneath.
`Donchian Mid` runs gold between them.
`BOS / CHoCH Up` uses arrow 233 in lime.
`BOS / CHoCH Down` uses arrow 234 in orange red.
- Donchian Upper: line, dodger blue, width 2
- Donchian Lower: line, crimson, width 2
- Donchian Mid: line, gold, width 1
- BOS / CHoCH Up: arrow, lime, width 3, arrow code 233
- BOS / CHoCH Down: arrow, orange red, width 3, arrow code 234

How the ICT Donchian Smart Money Structure Indicator calculates its values
The channel
Two searches build it. `InpDonchianLen` `20` bars give the highest high and lowest low, and the midpoint sits between them.
The anchor offset
This is the important part. `InpAnchorOffset` `1` starts the search one bar back, so the current bar cannot set the rail it is being tested against.
Naming the break
The label depends on context. A break continuing the previous direction reads as a structure break. One against it reads as a character change instead.
How to read the signals
The rails describe the twenty bars before this one.
A close outside a rail is the event.
The gold midline is a reference, not a signal.
Labels separate continuation from reversal.
`InpShowMid` can hide the middle line.
Marks sit `InpArrowOffsetPt` `30` points clear.
Alert channels in this build: popup, push notification, email and sound.
Four routes answer to `EnableAlerts`, true from the start beside `EnablePopup`. Flip `EnablePushNotify` for a handset, `EnableEmail` to post mail, or `EnableSound` to play `SoundFile`. Breaks go out once a bar.
Every ICT Donchian Smart Money Structure Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
InpDonchianLen |
Donchian length (bars). Bars in the channel, `20`. | 20 |
InpAnchorOffset |
Channel anchor offset (avoid look-ahead). Bars back the search starts, `1`. | 1 |
Display settings
| Setting | What it does | Default |
|---|---|---|
InpShowMid |
Show mid-channel line. Draw the middle line, `true`. | on |
InpDrawStructure |
Draw BOS / CHoCH labels. Print the text labels, `true`. | on |
InpBosColor |
BOS label color. Continuation label, `clrLime`. | lime |
InpChochColor |
CHoCH label color. Reversal label, `clrOrangeRed`. | orange red |
InpArrowOffsetPt |
Arrow vertical offset (points). Points from mark to bar, `30`. | 30 |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
Master switch, `true`. | on |
EnablePopup |
(see inputs panel) | on |
EnablePushNotify |
(see inputs panel) | off |
EnableEmail |
Mail on a break, `false`. | off |
EnableSound |
(see inputs panel) | off |
SoundFile |
Which clip plays, `”alert.wav”`. | alert.wav |

Settings that fit your chart
Twenty bars of channel is short enough to react and long enough to mean something. EURUSD H1 is the reference chart. Breaks come a few times a week there. On M5 they arrive hourly. On H4 the channel spans three weeks.
When the ICT Donchian Smart Money Structure Indicator fails
Twenty bars of channel is a crude structure map.
Rails jump when an old extreme falls out of the window.
An early break has no previous one to take its label from.
Price can close back inside the rails on the next bar.
Copy the compiled ICT Donchian Smart Money Structure 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.
Related on forexmt4systems.com: Smart Money Concepts Strategy.
Background reading on the method behind the ICT Donchian Smart Money Structure Indicator: Donchian channel on Wikipedia, Donchian Trading Guidelines at StockCharts ChartSchool.
Download the ICT Donchian Smart Money Structure Indicator for MT4 and MT5
The zip holds the compiled ICT Donchian Smart Money Structure 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
What breaks if InpAnchorOffset is set to zero?
Every break signal. With no offset the channel includes the current bar’s own high in its upper rail, so price cannot close above it by definition and the arrows quietly stop appearing altogether.
What decides InpBosColor over InpChochColor?
What came before. A break in the same direction as the previous one continues the structure and takes the lime label. A break the other way is a change of character and takes the orange red one.
What does the Donchian Mid line represent?
The exact midpoint between the two rails, which is the middle of the last twenty bars of range. It is drawn as a reference for where price sits within that range, not as a signal in itself.
Is InpDonchianLen 20 long enough for structure?
It is a compromise. Twenty bars reacts fast enough to stay current but is a crude map of structure compared with pivot-based tools, which is the trade you make for a channel that never needs confirming.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the ICT Donchian Smart Money Structure Indicator as one input. Always backtest before trading live.
Category: this is part of our Smart Money collection. Also, truly, browse more Smart Money for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- The core method is documented in Central counterparty clearing on Wikipedia.
- Additional market context is at Stochasticoscillator at Investopedia.
