Donchian Trend Engine

Donchian Trend Engine 

Donchian Trend Engine is an institutional-grade dual-clock trend-following and channel breakout suite engineered for MetaTrader 5, combining Richard Donchian's breakthrough channels with the complete tactical rules of the legendary Turtle Trading experiment.

The Two-Clock Architecture

Unlike standard Donchian channel indicators that merely compute static highest highs and lowest lows, Donchian Trend Engine is built on a mathematically rigorous two-clock foundation:

  • The Price Clock: Detects when live price breaks outside historical boundaries and records authentic new extremes.
  • The Calendar Clock: Calculates channel tightening and line step movements caused purely by the expiration of older bars leaving the lookback window.
  • The Calendar Ahead: Dynamically projects where channel lines and exits will step if price continues inside the channel without printing new extremes.
  • Dynamic Run Lock & Profit Trailing (Stitch 9): Protects open trade gains once price reaches +1.5N, immediately locking breakeven and ratcheting stops dynamically behind trend moves.

Dual Turtle Trading Systems

System 1 (S1) — Short-Term Momentum:

  • Entry: 20-bar channel breakout.
  • Exit: 10-bar counter-trend channel breakout.
  • Filter: Optional strict Turtle rule skipping an entry breakout if the previous breakout resulted in a winning trade.
  • Initial Risk Stop: Placed at Fill ± 2N (or user-defined multiple of ATR 20).

System 2 (S2) — Long-Term Trend:

  • Entry: 55-bar channel breakout.
  • Exit: 20-bar counter-trend channel breakout.
  • Filter: Trades every valid breakout without skip conditions.
  • Initial Risk Stop: Placed at Fill ± 2N.

The Trader's Suite (Stitch 9 Enhancements)

  • Multi-Timeframe Ladder Matrix: Real-time panel display showing channel structural alignment (+2 strong bull, +1 weak bull, -1 weak bear, -2 strong bear) across M15, H1, H4, and D1.
  • Dynamic Run-Lock & Trailing: Protects accrued profits by moving stops to breakeven at +1.5N profit and trailing price smoothly.
  • On-Chart Performance HUD: Instant summary of closed trades, historical win rate, and total profit in N directly on the draggable dashboard.
  • Tri-Channel Alert Engine: Instant notifications for S1/S2 entries, trade exits, and scheduled calendar crossings via MT5 popup, smartphone push, and sound alerts.

Input Parameters Reference

1. Channels
InpFastPeriod : Fast channel lookback bars (System 1 entry / System 2 exit) [default: 20].
InpSlowPeriod : Slow channel lookback bars (System 2 entry) [default: 55].
InpExitPeriod : Exit channel lookback bars (System 1 exit) [default: 10].

2. View
InpView : Reading view — Focus, Story, All, or Classic [default: Focus].
InpFollow : System followed by view and panel [default: System 1].
InpColSlow : Slow channel color [default: C'70,150,255'].
InpColFast : Fast channel color [default: C'255,215,0'].
InpColExit : System 1 exit channel color [default: C'255,60,220'].
InpDimPct : Fade percentage for inactive lines [default: 62%].
InpGlow : Ambient glow beneath lit lines [default: false].

3. Trend Colors
InpColUp : Upward / bullish event color [default: C'38,166,91'].
InpColDown : Downward / bearish event color [default: C'214,69,65'].
InpColFlat : Neutral / flat market color [default: C'140,140,140'].
InpColUpWeak : Weak bullish ladder color (+1) [default: C'86,156,214'].
InpColDownWeak : Weak bearish ladder color (-1) [default: C'222,150,78'].
InpFadePct : Calendar fade percentage [default: 55%].

4. The Calendar Ahead
InpShowAhead : Project future line steps right of live bar [default: true].

5. Volatility
InpVolUnit : Dead zone measurement unit — Off, ATR (N), or StdDev [default: Off].
InpVolZone : Dead zone threshold multiplier [default: 0.5].
InpVolAt : Apply dead zone to breakouts, crossings, or both [default: Both].

6. Turtle Rules
InpStopN : Initial risk stop in multiples of N (0 = off) [default: 0.0].
InpS1Filter : Skip System 1 breakout if prior trade was profitable [default: false].
InpTrailTriggerN : Profit lock trigger in N (0 = off; e.g. 1.5 locks profit) [default: 0.0].
InpTrailDistanceN : Trailing stop distance in N once triggered [default: 1.5].

7. Cloud
InpCloudPct : Cloud opacity percentage over background [default: 28%].

8. Panel and Tags
InpPanel : Display interactive reading HUD [default: true].
InpPanelX : Panel X offset in pixels [default: 12].
InpPanelY : Panel Y offset in pixels [default: 28].
InpPanelFont : Panel base font size [default: 9].
InpShowMTF : Display multi-timeframe ladder matrix on panel [default: false].
InpShowStats : Display win rate and trade statistics on panel [default: false].
InpTags : Descriptive text labels at right end of lines [default: true].
InpTagFont : Tag font size [default: 8].

9. Chart
InpChart : Apply dark-theme chart palette on attach [default: The product's].

10. Alerts
InpAlertBreakout : Alert on system entry breakout [default: false].
InpAlertExit : Alert on trade exit [default: false].
InpAlertCalendar : Alert on calendar scheduled crossing [default: false].
InpAlertPopup : MT5 popup dialog alert [default: true].
InpAlertPush : Smartphone push notifications [default: false].
InpAlertSound : Sound alert [default: false].

Expert Advisor Integration (iCustom)

All 78 indicator plots and 127 buffers are indexed for programmatic trading:

  • Buffer 40: Real-time Ladder Step ( +2.0 Strong Bull, +1.0 Weak Bull, -1.0 Weak Bear, -2.0 Strong Bear).
  • Buffer 50: System 1 State ( 1.0 Long, -1.0 Short, 0.0 Flat).
  • Buffer 51: System 2 State ( 1.0 Long, -1.0 Short, 0.0 Flat).
  • Buffer 99-102: Active System 1 and System 2 stop loss price levels.
  • Buffer 106-108: Followed system signals (Entry Long, Entry Short, Exit).

algoteknik

Support, updates and every other product: mql5.com/en/users/bugraky123

Donchian Trend Engine version 1.0


Altri dall’autore
Smart Chandelier Exit EA Smart Chandelier Exit EA is the Expert Advisor for the Smart Chandelier Exit indicator. It runs the indicator's chandelier engine by itself, with the same formula, the same default settings and the same fake-flip confirmation, and turns the confirmed flips into trades. A flip is traded only when it agrees with the higher timeframe, and every position carries a stop on the broker's server that follows the chandelier line and is never loosened. By default there is no fixed
Smart Chandelier Exit
Bugra Kaan Yildirim
5 (3)
Smart Chandelier Exit  Smart Chandelier Exit is an adaptive trailing-stop and trend-direction indicator. It plots a multi-layer ratchet stop line that follows price: green below price in an uptrend, red above price in a downtrend. The line only ever ratchets in the trend's favor, never against it, so it doubles as a mechanical trailing stop and a clear trend-state signal. What makes it smart is the built-in Pearson R trend-quality filter. A raw stop line tells you where the stop is; the Pearson
FREE
Elder Force Zones
Bugra Kaan Yildirim
MetaTrader's built-in Force Index is not the formula Dr. Alexander Elder published. It multiplies the volume of a bar by the change of a 13-bar moving average of price. Elder defined the force of a bar as its volume times the change of its close, and smoothed that with an exponential moving average. Measured on gold over the last year, the two disagree about which side of zero the market is on roughly one bar in six (M15, H1 and H4). Elder Force Zones computes Elder's own definition and builds h
FREE
Smart Exit EA
Bugra Kaan Yildirim
Smart Exit EA — Ride the Trend, Skip the Chop Smart Exit EA follows a trend with an adaptive ATR trailing line and stays in the move until the trend really turns. It is built for two problems every trend trader knows: getting shaken out of a good trade too early, and getting chopped up in a sideways market. Release notes, chart examples and new product announcements are posted on the TrendTower channel:   https://www.mql5.com/en/channels/trendtower What It Does Rides trends longer.   The trailin
FREE
Refine OBV
Bugra Kaan Yildirim
Refine OBV  Refine OBV measures cumulative volume flow read against its own adaptive signal line with a color-coded spread and non-repainting divergence detection. Raw On Balance Volume answers one question: is volume being credited to the buyers or the sellers? While useful, raw OBV is a single wandering line with no reference point. Refine OBV adds an adaptive EMA of the flow itself as a reference line. The distance between the flow and its signal line (the spread) is rendered as a color-coded
FREE
Quant Trend Cloud
Bugra Kaan Yildirim
Quant Trend Cloud A cloud that is a regime, not a thread: the band between two slow adaptive lines. No arrows and no dots - the colour says which way the regime stands, and the brightness says whether the candle and the fast line stand clear of the band on that bar. Version 1.0. Release notes, chart examples and new product announcements are posted on the TrendTower channel: https://www.mql5.com/en/channels/trendtower What It Is The cloud is the band between Kaufman's adaptive average and VIDYA.
FREE
Trix Trend
Bugra Kaan Yildirim
Trix Trend algoteknik · MetaTrader 5 Indicator Manual Overview Trix Trend is a momentum oscillator based on TRIX — the rate of change of a triple-smoothed exponential moving average of price. Triple smoothing removes most of the short-term noise, so the oscillator reacts to the underlying momentum of the move rather than to every small wiggle, while staying more responsive than a simple long moving average. The indicator draws a slope-colored TRIX line, a weighted signal line, a zero line, and t
FREE
SVS Assistant
Bugra Kaan Yildirim
SVS Assistant SVS Assistant is the execution half of Smart Volatility Squeeze MT5. It carries out the orders you request from that indicator's 1-Click Trading Desk, applies your risk rules to them, and manages the resulting positions. It is published free of charge. Please read this before downloading: it does not analyse the market and it produces no signals of its own. Without the Smart Volatility Squeeze indicator running on the same chart there is nothing for it to listen to, and it will do
FREE
Smart Volatility Squeeze MT5 Smart Volatility Squeeze MT5 is a volatility compression and momentum expansion indicator for MetaTrader 5. It builds on John Carter's Volatility Squeeze framework and extends the usual single-tier squeeze into three compression tiers, so you can see not only whether the market is compressed but how tightly it is compressed before it expands. The indicator opens in a separate window and draws two elements: a linear regression momentum histogram and a row of coloured
Quant Desk Pro
Bugra Kaan Yildirim
Quant Desk Pro An R-native trade manager for MetaTrader 5.   It manages the trades you have already opened: it measures what each one is really risking, protects it, scales out of it on a plan you set, trails what is left, and stops the whole book when the day has gone far enough wrong. Read this first.   Quant Desk Pro does not open trades and has no signal. And it ships in   VIEW ONLY : it will not send a single order until you set   I understand the risks   to true in the inputs. Until you do
Quant Key Levels
Bugra Kaan Yildirim
Quant Key Levels, version 1.0. The reference levels a discretionary trader actually works from, on one chart and in one visual language. Eleven families, each on its own switch, and nothing on the chart that a level does not earn. What separates it from a pivot pack is not the number of families. It is that the things most level tools assume, this one measures. How far your broker's clock sits from UTC, measured out of your own terminal rather than typed into a box. Where an exchange actually op
Trend Regime Line
Bugra Kaan Yildirim
Trend Regime Line Version 1.1 · algoteknik What This Indicator Is Trend Regime Line reads the trend through a triad: three Larry Williams tools that each answer their own question, and one line on the price chart that is coloured only when the answers fit together. Williams %R says which side price is thrusting to, the Ultimate Oscillator whether momentum confirms that side, and Williams Accumulation/Distribution whether buying or selling pressure still backs it. Green means the triad agrees on
Filtro:
Nessuna recensione
Rispondi alla recensione