Ehlers Silkstream EA
- Эксперты
-
AL MOOSAWI ABDULLAH JAFFER BAQER
To trade successfully we need to go through the proven path that others had gone and reached!
Here are 17 quotes from such successful investors:
1- Limit your size in any position so that fear does not become the prevailing instinct guiding your judgment.
Joe Vidich - Версия: 3.39
- Активации: 5
SuperSmoother grid EA for traders who want the first order placed on a line that is smooth like a slow average but does not wait like one. One job: start a grid only when a closed bar crosses John Ehlers' 2-pole SuperSmoother filter with the main trend behind it. Mechanism: a 2-pole smoothing filter that removes price swings shorter than about 20 bars, computed inside the EA from bar closes, a Range Guard and an EMA 200, then an ATR-spaced grid that banks small closures.
Ehlers Silkstream EA is a SuperSmoother filter expert advisor for MetaTrader 5, a smooth trend line grid EA. Smoothness against delay, side by side: cut-off period 20 bars; delay on a slow trend about 5 bars, where a simple moving average 20 trails by about 10 and an EMA 20 by about 9.5 with more wiggle left in.
Tested on: EURUSD H1, $10,000, default inputs, 2025.01.01 to 2026.09.30: net +1,274.34, worst equity dip 248.61 USD on 10,000 (2.30%), 456 of 660 trades closed in profit, profit factor 3.83, no stop-out, no margin refusal.
What a normal week looks like: 660 trades over about 91 weeks is roughly 7 closed trades a week on EURUSD H1, with quiet days in between. Fewer than that is the filters working, not a fault.
Minimum deposit: EURUSD H1 money drawdown in our test was 248.61 at the default 0.01 first lot, so start with at least $2,500; XAUUSD D1 drew down 9.43 on 8 trades, start with at least $1,000. These are floors from one test, not a safe zone; deposits below $10,000 were not run.
Try it free first: load Ehlers Silkstream EA in the MetaTrader 5 Strategy Tester with visual mode on, default inputs, EURUSD H1. Every cross it accepts gets an arrow; on the live chart every cross a guard refuses is shown as a grey dot.
The trade lifecycle in four verbs. It filters each close into one smooth line, waits for a closed bar to cross that line with the trend behind it, opens the first level and spaces the next ones by ATR, then banks groups of orders as soon as their joint result clears the target.
Plain risk up front. This IS a grid. It adds to losing positions and uses no stop loss by default. Defaults: 0.01 first lot, additive steps of 0.01, ATR spacing with a 50 point floor, hedge cycle off, margin-level safety off. Limits stop new levels; they never force-close the book.
A SILKIER LINE
Moving averages smooth by averaging, and averaging always leaves two problems: lag, and leftover jitter that makes the line twitch around price. In 2004 John Ehlers borrowed a fix from electrical engineering: a two-pole Butterworth-style low-pass filter fed with the average of the last two closes. Cycles longer than the period pass almost untouched; shorter wiggles are cut steeply, and the two-close average removes the fastest noise completely. The result is a line that looks drawn with one stroke, which is exactly what a grid's starting gun should be.
Five things to know first
- Entry: a closed bar finishes above the SuperSmoother line after the previous one finished at or below it (BUY), or the mirror for SELL. A slope-turn mode is included as an alternative. Accepted signals do not repaint.
- Calculated inside the EA from bar closes with Ehlers' published coefficients, period 20. A SuperSmoother indicator with the same formula and period shows the same line (tiny differences in the first bars come from seeding). No indicator file, no DLL, no web request.
- A Range Guard skips quiet boxes and an EMA 200 filter keeps entries on the side of the main trend. Side Hold, Stretch Guard, Slope Confirm and Cool Down from our earlier releases are there too, all off by default.
- New Body Guard is built in and ships switched OFF: a cross is refused when the signal candle is mostly wick (body smaller than N% of its range). We tested it on and off; the numbers are below, so you choose.
- No stop loss and no forced close-all. Limits stop new levels; the open book stays under management.
Start here (5 minutes)
1. Attach it to EURUSD H1 and leave every input at its default.
2. Set RunMode to Scan only for the first session. The panel shows each plan; no order is sent.
3. Look at the arrows and grey dots on the chart: they show which past crosses the guards would have taken or refused.
4. Check your balance against the minimum-deposit line above, then press ARMED on the panel.
5. Repeat the tester runs below on your own broker's data before any real money; spread, swap and commission differ between brokers. More than one chart? Give each copy its own EAMagicNumber and HedgeMagicNumber.
Reproduce our numbers
Screenshots: EURUSD H1, 2025-01 to 2026-09, 1 minute OHLC, netting demo account, $10,000, default inputs. Same settings, same period, and you should land close to these:
- EURUSD H1, $10,000: net +1,274.34 (gross +1,724.32 / -449.98), worst equity dip 248.61 USD (2.30%), 660 trades, 456 of them in profit (short 67.46% won, long 70.81% won), profit factor 3.83. No stop-out, no margin refusal.
- EURUSD H1, $1,000,000: net +1,274.34, worst equity dip 248.61 USD (0.02%), 660 trades. No stop-out, no margin refusal.
- XAUUSD D1, $10,000: net +21.15, worst equity dip 9.43 USD (0.09%), 8 trades, no losing closed trade. No stop-out, no margin refusal.
- XAUUSD D1, $1,000,000: net +21.15, worst equity dip 9.43 USD (0.00%), 8 trades. No stop-out, no margin refusal.
Read these as one past stretch, not a forecast. Money drawdown is the same at both deposits because lots do not grow with the balance, so it is a far bigger share of a small account. The guards and filters were set once by judgement on this same period, which flatters them. Eight gold trades in 21 months prove nothing about gold.
Body Guard: on or off, in numbers
The idea: a long-wick candle that only pokes through the line and closes near where it opened is indecision, not a breakout. Body Guard measures the candle body against its full high-low range and skips the cross when the body is too small. We tested 40% against off, same period, same settings:
- EURUSD H1, $10,000: off (the default), net +1,274.34, worst dip 248.61 USD (2.30%), 660 trades, profit factor 3.83. On, net +1,113.70, worst dip 248.61 USD (2.32%), 584 trades, profit factor 4.07.
- XAUUSD D1, $10,000: off, net +21.15, worst dip 9.43 USD, 8 trades. On, net +19.06, worst dip 9.43 USD, 8 trades.
The honest trade-off: on this period Body Guard raised the profit factor on EURUSD from 3.83 to 4.07 by removing 76 weaker entries, but it did not lower the worst dip and it cost about an eighth of the net result. We ship it off so the default keeps the full trade count; if fewer, cleaner entries matter more to you than the extra trades, set InpZLBodyPct to 40 and compare on your own broker.
Why the SuperSmoother
A grid needs one clean starting gun, then it needs the engine to work. The SuperSmoother is a good gun for three reasons. It is built from closes only, so it means the same on every broker. It removes short noise far more sharply than an average of the same length, so the line is crossed less by random twitches. And its formula is published and has one setting, so you can check every arrow yourself. The honest costs: a smooth line still trails a sharp reversal by a few bars, and a long one-way trend holds the book open. The Range Guard, the trend filter, the signal gap and the optional Body Guard are there for exactly that.
One cycle, step by step
1. Filter. On each new bar the EA averages the last two closes and runs them through the 2-pole filter (period 20).
2. Cross. In the default mode a closed bar must finish on the other side of the line from the bar before it. In slope mode the line itself must turn up (BUY) or down (SELL).
3. Body Guard. Off by default. When set, the signal candle body must be at least N% of its range.
4. Cool Down. Off by default. When set, no other cross may have happened in the N bars before.
5. Side Hold. Off by default. When set, the closes before the cross must have stayed on the old side for N bars.
6. Stretch Guard and Slope Confirm. Both off by default: largest close-to-line distance in ATR, and line movement in the signal direction over N bars.
7. Range Guard. The last 20 bars must span at least 5 ATR, so tight boxes are skipped.
8. Trend filter. By default the close must be on the matching side of the EMA 200. It can also fade that side, or be switched off.
9. Timing. Accepted signals are kept apart by a gap of bars, and a signal may wait a few bars if the level cannot be placed at once.
10. Ladder. Levels follow ATR or fixed points, with a floor, a ceiling and an optional freeze. BUY and SELL baskets can run together or alone.
11. Banking. Groups of oldest and newest orders close when their joint result, after swap and commission, clears the target. If the oldest order is too heavy, a slice of it is closed instead.
12. Safety checks. A closure that would reopen a level at once is blocked, each leg is confirmed in deal history, failed legs are retried, and a plan is dropped if the book changed before sending.
13. Hedge cycle, optional: off by default and not exercised in our tests; when on, it holds a balanced pair on a chosen symbol and retires it in equal slices, paid by a small surcharge on closures the grid already makes.
The panel
The panel sits on the left, so the right side and the price scale stay clear. It lists symbol, magic number, a status pill, grid mode, lot step, spacing, banked result, the book, each side's closing plan and the order table. Two rows belong to the signal, and every short code on them is spelled out here:
- SUPERSMOOTHER row: 20 = the period, ABOVE or BELOW = where the last closed bar finished against the line, UP or DN = whether the line is rising or falling, ev 5b = the last cross was 5 bars ago.
- SS GUARDS row: SH 4/3 = Side Hold, closes in a row on the current side out of the bars required (off when not used), GAP 0.42 = close-to-line distance in ATR with OK, HOLD or off, SL UP/DN = line slope for Slope Confirm (off when not used), R 6.3 OK = Range Guard width in ATR with its state, CD 3 = Cool Down window in bars (off when not used), BD 55 OK = body of the last closed candle as % of its range against Body Guard (off when not used), EMA UP/DN = side of the EMA 200.
On the live chart every cross of the last 150 bars is marked: a small arrow when accepted, a grey dot when a guard refused it. Buttons switch Armed / Scan only, Pause / Resume, chart marks and slicing. The Hedge Vault card docks under the main panel; with the hedge off it stays hidden. Nothing is drawn in a non-visual backtest.
Limits you control
No setting closes the book for you; limits only stop new levels.
Each order passes a free margin check with a safety buffer before it is sent.
Caps on levels per grid, orders per side and lot per order keep the ladder finite. MinMarginLevelPercent and MaxAccountRiskPercent start at off; set them for your own account.
An optional margin-level timeframe safety moves the signal and spacing to a higher timeframe as margin falls. It is off by default and was not exercised in our tests.
Copies are kept apart by symbol and magic number.
Scan only shows every decision without sending a single order.
Who this is for
Traders who like moving-average entries but hate a line that twitches; who are happy with many small closures; who prefer an EA that trades with the main trend; and who will size lots to their balance.
Who this is NOT for
- Anyone who needs a stop loss on every order. This grid has none by design.
- Anyone expecting a fixed monthly return or a fast doubling. The tested result above is modest, and it is the honest one.
- Accounts below the minimum-deposit line above.
- Small accounts running large lots unattended. A long one-way trend can hold the book open for weeks.
- Traders who want a trade on every candle. The filters keep it quiet on purpose, and on daily gold it may wait months between entries.
- Traders who want a ready-made gold system. Gold was tested only on D1.
- Traders who will not test first.
Common questions
Does it repaint? Accepted signals, chart marks and both panel rows use finished bars only.
Is it the classic SuperSmoother? Yes: a = exp(-1.414 x pi / N), b = 2a x cos(1.414 x pi / N), c2 = b, c3 = -a x a, c1 = 1 - c2 - c3, line = c1 x (close + previous close) / 2 + c2 x line[1] + c3 x line[2]. Default N 20.
What does the period do? A longer period cuts longer swings, so the line is calmer and later. Only 20 was backtested here.
Cross or slope mode? Cross mode waits for price to close through the line. Slope mode reacts when the line itself turns; it was not backtested here.
What did Body Guard change? At 40% it raised the EURUSD profit factor from 3.83 to 4.07 and cut 76 trades; the worst dip stayed the same. Details above.
Why does it sometimes not trade for days? The Range Guard, the EMA side and the gap between signals all wait for a clear move. That is by design.
Which markets were tested? EURUSD H1 and XAUUSD D1. Everything else is for you to test.
How much should I start with? At least $2,500 for EURUSD H1 at the default first lot, $1,000 for XAUUSD D1, more if you raise the lots.
What should I change first? InpZLBodyPct, then InpZLRangeMinATR, then InpZLPeriod. One change at a time, and look at drawdown next to net result.
Netting accounts? Our tests ran on a netting demo account; hedging accounts were not tested separately.
All inputs
Grid levels
TradeMode - two grids, BUY and SELL, by default, or one direction only.
GridSpacePoints - level distance in fixed spacing mode (25).
GridSpaceMultiplier - above 1.0 widens deeper levels (1.0 = even).
MaxGridLevels - most levels in one grid (1000).
UpDirectionIsBuy - which side an up move arms.
EAMagicNumber - number on grid orders (9786390).
GridOrderComment - text on grid orders (SSLK).
OneOrderPerBar - at most one new level per bar.
Lots
InitialLotSize - volume of the first level (0.01).
LotSizingMode - additive by default, multiply as the alternative.
LotMultiplier - factor per level in multiply mode (1.25).
LotAddStep - step per level in additive mode (0.01; 0 uses the starting lot).
MaxOrderVolume - largest single order (1.0).
UseAutoLot - links the starting lot to balance (off).
AutoLotBaseBalance - balance that matches the starting lot (1000).
AutoLotAllowDecrease - lets auto lot go below the starting lot (off).
ATR spacing
GridSpacingMode - ATR by default, fixed points as the alternative.
ATRTimeframe - ATR timeframe (current chart).
ATRPeriod - ATR length (14).
ATRSpacingFactor - spacing as a multiple of ATR (1.0).
ATRBarShift - ATR bar; 1 is the last finished bar.
ATRMinSpacingPts - lowest spacing in points (50; 0 none).
ATRMaxSpacingPts - highest spacing in points (5000; 0 none).
ATRFreezeOnStart - keeps one spacing for the whole cycle (off).
Profit target
DesiredProfitPerClosure - base target in account currency (2.0).
ProfitMultiplier - final scale, 1.00 to 2.00.
ProfitTargetMode - scaled by default: bigger, deeper books aim higher.
ProfitVolumePower - how closing volume lifts the target (1.0; 0 off).
ProfitDepthBonus - extra target per additional open level (0.10).
ProfitMaxMultiple - scaled target ceiling in multiples of the base (50).
ProfitMaxReachFraction - keeps the target inside this share of one grid step (0.50).
Fragment scanner
UseMultiLegScan - checks multi-order groups before the plain pair (on).
MaxOldestLegs - most old orders in one closure (3).
MaxNewestLegs - most new orders in one closure (6).
ScanPriority - ranking of qualifying groups; largest group first by default.
NeverBankLessThanPair - a group must also beat the pair target (on).
RequireCloseVolumeExceedsTarget - newest volume must be above oldest volume (on).
MinCloseVolumeRatio - required ratio of those volumes (1.5).
Target slicing
EnableTargetSlicing - allows part-closing the oldest order (on).
FragProfitWeightPower - profit weight per closing lot (1.5).
FragMinSlicePercent - smallest slice, percent of the target order (20).
FragAllowMultiCloser - several new orders may fund one slice (on).
FragPreferFullClosure - a full closure wins when both are possible (on).
Reopen guard
ReopenGuard - blocks closures that would reopen a level at once (step based).
ReopenGuardCushion - safe distance as a share of one step (0.90).
Account protection
MinMarginLevelPercent - no new levels below this margin level (0 off).
MaxAccountRiskPercent - no new levels beyond this floating loss, percent of balance (0 off).
NetMaxMarginPercent - netting only: cap on net position margin, percent of equity (5.0).
MaxTotalOrders - absolute order cap per side (1000).
Execution and checks
RunMode - Armed or Scan only.
CloseSequence - order in which legs are sent; oldest first by default.
MaxSlippagePoints - allowed slippage (30).
MaxSpreadPoints - no trading above this spread (7500).
MinSecondsBetweenClosures - pause between closures per side (5).
CloseAttemptsPerLeg - attempts before the retry queue (3).
VerifyTimeoutSeconds - how long a stuck leg is followed (90).
DeferWhenMarketClosed - waits for the session instead of halting (on).
MarketClosedRetrySeconds - retry spacing while orders are refused (30).
AutoResumeAfterSeconds - a halt clears itself after this many seconds (300; 0 waits for you).
NoPartialRetryMinutes - partial closes tried again this many minutes after a broker refusal (15; 0 never).
AbortIfBookChanged - drops a plan if a leg changed (on).
UseFullCommission - counts commission on both sides (on).
CommissionPerLot - fallback figure (0 reads history).
CloseOrderComment - text on closing deals.
Hedge cycle
EnableHedgeCycle - main switch (off).
HedgeSymbols - comma list; repeat a symbol for more turns (XAGUSD).
HedgeSymbolRotation - how the next symbol is picked (per cycle).
HedgeMaxSymbolsInTester - rotation cap in the tester only (2; 0 none).
HedgeCycleLots - lots on each side of the pair (0.01).
HedgeSliceLots - lots retired per side each slice (0.01).
HedgeFragmentBonus - bonus over the slice cost (100).
HedgeBonusIsPercent - bonus is a percent; false means money (on).
HedgeMaxSurcharge - money cap per closure (0 none).
HedgeMaxSurchargePercent - largest rise of any closure target, percent (50).
HedgeMagicNumber - number on hedge legs, must differ from the grid (9786391).
HedgeReopenOnFinish - opens a new cycle when one ends (on).
HedgeStartRequiresTrade - first cycle waits for a grid order (on).
HedgeIntegritySeconds - leg balance check interval (5).
HedgeAutoRepair - repairs a lone leg automatically (on).
HedgeNakedAction - what to do with a lone leg; re-hedge by default.
HedgeMaxSpreadPoints - hedge spread limit (0 off).
HedgeSlippagePoints - hedge slippage allowance (30).
HedgeAttemptsPerLeg - attempts per hedge leg (3).
HedgeVerifyTimeout - follow time for a stuck hedge leg (90).
HedgeCommissionPerLot - fallback hedge commission (0 reads history).
HedgeOrderComment - text on hedge deals.
Weekly cash day
WeeklyCashDay - pauses new cycles and slices around withdrawals (off).
CashDayOfWeek - 0 Sunday, 1 Monday and so on (1).
CashCutoffHour - server hour after which no new slice fires (21).
Panel and chart
ShowPanel - panel on or off.
PanelX and PanelY - distance from the chart edge (12, 15).
PanelFontSize - base text size (9).
ShowArabic - second language line (on).
ShowChartMarks - plans and levels drawn on the chart (on).
MaxTableRows - order rows per grid (13).
PanelCorner - corner the panel is anchored to.
Entry trigger
EntryTriggerMode - the SuperSmoother strategy by default.
SignalBarShift - 1 is the last finished bar.
SignalBarsDelay - bars between accepted signals (30; 0 every).
SignalValidBars - bars a signal stays usable (3).
SignalAllowBuy and SignalAllowSell - switch each side.
SignalReverse - turns the direction around (off).
Ehlers SuperSmoother
InpZLPeriod - SuperSmoother period: swings shorter than this many bars are filtered out (20).
InpZLBodyPct - Body Guard: signal candle body must be at least this % of its high-low range (0 off by default; 40 tested, see above).
InpZLMode - 0 closed bar crosses the line, 1 line slope turns (0).
InpZLPrevBars - Side Hold: closes in a row on the old side before a cross counts (0 off).
InpZLCoolBars - Cool Down: a cross is refused if another cross came within this many bars before it (0 off).
InpZLSlopeBars - Slope Confirm: the line must have moved in the signal direction over this many bars (0 off).
InpZLMaxGapATR - Stretch Guard: largest close-to-line distance on the signal bar in ATR (0 off).
InpZLRangeMinATR - Range Guard: least window width in ATR (5; 0 off).
InpZLRangeBars - Range Guard: window length in bars (20).
InpZLATRPeriod - ATR length for the Range and Stretch Guards (14).
InpZLTrendFilter - 1 with the EMA side, 2 against it, 0 off (1).
InpZLTrendMAPeriod - trend EMA length (200).
InpShowSignalArrows - arrow where a cycle armed (on).
InpShowZLOnChart - past SuperSmoother crosses on the live chart, arrow or grey dot (on).
Debug
DebugMode - extra journal detail (off).
Margin timeframe safety
UseMarginTFSafety - main switch (off).
Level1MarginPct and Level1TF - at 6000 percent the work moves to M15.
Level2MarginPct and Level2TF - at 5000 percent the work moves to H1.
MarginTFHysteresisPct - recovery needed before stepping back (500).
Risk, plainly
Grid trading is risky. It adds to losing positions, uses no stop loss, and a long trend can keep the book open for a long time or, with lots too big for the balance, end in a stop-out and a heavy loss. The SuperSmoother is built from past closes and cannot see the next bar; a smooth line is not a prediction. No result is promised. Pick lots that survive a bad run, test on your own broker, and only risk money you can afford to lose. No DLLs or extra files are needed.
Tested it in the Strategy Tester or on a live account? A short, honest review helps the next trader: tell us the symbol, the timeframe and whether you switched Body Guard on, what worked and what did not. Critical reviews are as welcome as good ones; they shape the next release.
