Donchian Channel IHS
- インディケータ
- バージョン: 1.11
Donchian Channel IHS
Donchian-EMA Combined is a professional breakout indicator that merges the classic Donchian Channel with a dual EMA 34 filter (applied separately to High and Low prices), wrapped in a stunning automatic dark-theme engine that transforms your entire chart appearance the moment you attach it.
The core idea is simple: Donchian Channel identifies breakout levels, while the EMA 34 filter ensures you only take breakouts that have momentum confirmation — reducing false signals in ranging or choppy markets. A buy signal fires only when price closes above the Donchian upper band AND above the EMA 34 of High. A sell signal fires only when price closes below the Donchian lower band AND below the EMA 34 of Low.
What makes this indicator truly unique is the built-in elegant theming system. With one click, your entire chart — background, candles (body and wick separately), grid, bid/ask lines, volume bars, stop levels, and all indicator lines — transforms into a cohesive, professionally designed color scheme. No more manually tweaking 20+ color settings. Just pick a theme and trade.
Key Features
-
Smart Breakout Detection — Identifies genuine breakouts when price closes beyond the Donchian Channel boundary, confirmed by comparing against the previous bar to avoid repainting or premature signals.
-
Dual EMA 34 Filter — Unlike a single EMA applied to close price, this indicator calculates EMA 34 on High prices (for buy confirmation) and EMA 34 on Low prices (for sell confirmation), providing more precise trend alignment.
-
Toggle-able EMA Filter — Need raw Donchian breakouts without filtering? Simply set "Use EMA 34 Filter" to false and the indicator reverts to pure Donchian breakout mode.
-
4 Elegant Auto-Themes — Choose from Obsidian Premium, Nordic Frost, Midnight Gold, or Aurora Borealis. Each theme is a complete, hand-crafted color palette covering every visual element on your chart.
-
Candle Body & Wick Separation — Themes apply different colors to candle bodies and wicks (shadows), creating a refined depth effect that standard MT5 themes cannot achieve.
-
Zero Repainting — Signals are generated based on confirmed closed bars only. A signal on bar i requires close[i-1] to still be inside the channel, ensuring no historical signal appears or disappears.
-
Non-Intrusive — The indicator only modifies colors when the auto-theme is enabled. It never changes your chart type, timeframe, scale, or any other setting. Remove the indicator and your previous colors return.
-
Lightweight Calculation — All computations (Donchian, dual EMA) are handled internally with efficient loop structures. No external indicators or iCustom calls required.
Input Parameters
Theme Settings
Parameter | Description |
|---|---|
| Activate Auto Theme | Enable or disable the automatic chart theming system. When disabled, the indicator uses default MT5 colors and does not modify your chart appearance. |
| Select Elegant Theme | Choose from 4 professionally designed color themes: Obsidian Premium (blue-purple on charcoal), Nordic Frost (ice-rose on navy), Midnight Gold (gold-amber on warm dark), Aurora Borealis (cyan-magenta on deep navy). |
Donchian Channel Settings
Parameter | Description |
|---|---|
| Donchian Period | Number of bars used to calculate the highest high (upper band) and lowest low (lower band). Default is 20. Lower values react faster but generate more false signals; higher values are smoother but lagging. |
EMA 34 Filter Settings
Parameter | Description |
|---|---|
| EMA Period | The period for both EMA High and EMA Low calculations. Default is 34, a widely used institutional-level moving average period. |
| Use EMA 34 Filter | When true, buy signals require close price above EMA High, and sell signals require close price below EMA Low. When false, all Donchian breakouts generate signals without EMA confirmation. |
How It Works
-
Donchian Channel calculates the highest high and lowest low over the specified period, drawing upper, lower, and middle (dashed) lines.
-
EMA 34 High is calculated by applying an exponential moving average to the High price series. EMA 34 Low does the same for the Low price series.
-
A Buy Signal (up arrow) appears below the candle when:
- Current close breaks above the previous bar's Donchian upper band
- Previous close was still at or below the upper band (confirms it's a real breakout, not a continuation)
- (If filter enabled) Current close is above EMA 34 High
-
A Sell Signal (down arrow) appears above the candle when:
- Current close breaks below the previous bar's Donchian lower band
- Previous close was still at or above the lower band
- (If filter enabled) Current close is below EMA 34 Low
-
Theme Engine applies the selected color palette to all 12 available MT5 chart color properties plus 7 indicator plot colors simultaneously on initialization.
Best Practices
-
Trend Following: This indicator works best in trending markets. Combine with a higher-timeframe trend filter (e.g., only take buy signals when H1 EMA is sloping up) for optimal results.
-
Period Selection: For scalping on M5-M15, try Donchian Period 10-15. For swing trading on H1-H4, the default 20 works well. For position trading on D1+, consider 30-55.
-
Theme Switching: You can change themes at any time by opening the indicator settings and selecting a different theme. The chart updates instantly.
-
Multiple Instances: Avoid attaching multiple copies of this indicator to the same chart, as each instance will re-apply the theme and may cause visual conflicts.
