Elliott IQ Adaptive
- Uzmanlar
- Sürüm: 1.0
- Etkinleştirmeler: 10
Elliott IQ Adaptive is an Expert Advisor that trades Elliott Wave structures with clear, mechanical rules, developed and tested on XAUUSD M10. It finds Wave 1 and Wave 2 on closed bars, gives the setup a score from 0 to 100 (the Wave IQ) and waits with a stop order exactly where Wave 3 should begin. The stop goes beyond Wave 2, the target sits at the 1.618 extension of Wave 1. A second strategy fades the end of a complete five wave impulse. A stop loss on every trade, no grid, no martingale, no averaging.
Elliott Wave counting is usually subjective: two traders look at the same chart and count it in two different ways. This EA removes the opinion. The pivots come from a zigzag on closed bars only, every rule is checked with numbers, and every setup gets the same score with the same weights. What you see in the Strategy Tester is exactly what the rules do.
HOW IT WORKS
On every new bar the EA builds the swing points of the chart with a zigzag of depth 12, using only closed bars, so pivots never repaint after a trade is placed. From the latest swings it looks for two structures.
The Wave 3 setup is the main strategy. Wave 1 must be an impulse leg long enough in pips and in bars, with volume above its average. Wave 2 must retrace between 38.2% and 78.6% of Wave 1 and must never break the start of Wave 1. When both are valid and the setup is fresh (confirmed within the last 10 bars by default), the EA calculates three levels: the entry just beyond the end of Wave 1 plus 0.1 ATR, the stop beyond the end of Wave 2 minus 0.5 ATR, and the target at the end of Wave 2 plus 1.618 times the length of Wave 1. If the reward to risk is below 1.2 the setup is skipped.
With the default Breakout entry mode the EA places a stop order at the entry level with stop and target attached, so the trade opens only if price actually breaks the end of Wave 1, which is the moment Wave 3 starts. If price has already broken the level, the EA enters at market only when price is still within 0.3 ATR of it, so it never chases a move that is already gone. The pending order is cancelled when price reaches the invalidation level, when the wave structure changes, or when 24 bars pass without a breakout. If Wave 2 extends, the order is moved to the new levels.
The Fade Wave 5 strategy looks for a complete five wave impulse that follows the Elliott rules: Wave 2 never beyond the start of Wave 1, Wave 3 longer than Wave 1 and never the shortest wave, Wave 4 retracing 23.6% to 50% without overlapping Wave 1, Wave 5 long enough. When the impulse is complete and price is still between the end of Wave 4 and the end of Wave 5, the EA enters against the impulse at market, by default only with an RSI divergence between Wave 3 and Wave 5. Stop and target of this strategy are based on ATR.
THE WAVE IQ SCORE
Every setup receives a score from 0 to 100. The Wave 3 setup is scored on the quality of the Wave 2 retracement (30 points, best near the 50% to 61.8% zone), the size and duration of Wave 1 (20), the direction of the higher timeframe trend (20), the volume of Wave 1 (15) and the market regime (15). The five wave impulse is scored on its Fibonacci proportions (35), the lengths of the waves (15), the volume profile (15), the RSI divergence (15), the time symmetry (10) and the market regime (10).
Setups below Min Score To Trade (50 by default) are skipped. With Score Modulates Size, a setup at 80 or more uses 50% more risk and a weaker setup uses 30% less, so the best structures carry the most weight. The maximum risk per trade is always respected.
MARKET REGIME
The EA reads the regime from ADX and Bollinger Band width: trending, ranging or volatile. The regime is part of the score of both strategies. With Auto Strategy By Regime turned on, the EA trades only Wave 3 setups in a trend, only Fade Wave 5 in a range, and raises the minimum score in a volatile market. This switch is off by default, because in the tests on gold it blocked too many good setups.
FILTERS
The higher timeframe filter trades only in the direction of the SMA 50 on the daily chart. The volume filter requires volume above its 50 bar average behind Wave 1. Optional filters: two trading sessions in UTC with automatic server time detection, a stochastic filter, and a correlation filter that avoids redundant exposure with a position already open on a second symbol. Sessions are off by default, because Wave 3 breakouts on gold also happen outside the classic hours.
RISK AND POSITION SIZE
Position size comes from the risk percent (1% of equity by default) and the stop distance, with spread and commission included. The risk is capped at 2% even after the Wave IQ boost, by a maximum lot and by the free margin. If the minimum lot of the symbol would risk more than allowed, the trade is skipped. Stops wider than 6 ATR are skipped. After 3 losses in a row the lot is halved until the next win. One position per direction by default, and pending orders count toward the limits.
TRADE MANAGEMENT
The stop moves to break even when the trade gains 1 ATR, and the break even level also covers commission and swap. Partial close at a percentage of the target and an ATR or pips trailing stop are available and off by default: in the tests a trailing stop closed the Wave 3 trades too early, before the extension was reached.
PROP FIRM PROTECTION
The prop module follows the daily loss, the total loss and an optional profit target. When a limit is reached the EA can block new trades or close everything and block. The daily reset hour is in UTC and the baseline is saved across restarts. The module is off by default.
DASHBOARD AND CHART
The waves found by the EA are drawn on the chart with their numbers and Wave IQ, and a star marks a pattern that can be traded. The dashboard shows equity, daily and total result, trades, win rate, losing streak, regime, ADX, ATR, higher timeframe direction, session, risk state, the Wave IQ and the age of the current setups, the pending breakout order and the last decision with its reason. At the end of every backtest the journal prints a diagnostic summary of how many setups were found and why they were skipped.
BACKTEST
Strategy Tester backtest with the default settings on XAUUSD M10, from January 2022 to May 2026, 1 minute OHLC with 99% history quality, initial deposit 10,000 USD. Result: 138 trades, net profit 3,779 USD, profit factor 2.04, recovery factor 3.09, maximum equity drawdown 8.97%, maximum balance drawdown 7.94%, 81% winning trades. Every year of the period closed with a profit. The win rate is high because most trades reach break even or the target, while a full loss is larger than an average win: expect losing streaks. These are backtest results on historical data: they do not guarantee future results, and a live account has different spread, slippage and execution.
GETTING STARTED
Attach the EA to an XAUUSD M10 chart and allow algorithmic trading. The default settings are the ones used in the backtest. Start on a demo account and check that the lot size fits your account and your broker contract size. If your broker shows gold with a different number of digits, the pip size is detected automatically; set Pip Size only if the values in the dashboard look wrong. Use one chart per symbol, or a different Magic Number on each chart.
SETTING EXAMPLES
Lower risk: Risk Per Trade Percent 0.5 and Max Risk Per Trade Percent 1. The drawdown in the backtest scales almost in proportion.
Prop firm challenge: Enable Prop Risk Management on, Max Daily Loss Percent 4, Max Total Loss Percent 8, Action Close All And Block, Risk Per Trade Percent 0.5, Score Modulates Size off.
Only Wave 3: Enable FadeWave5 Strategy off.
Other symbols: the EA is not limited to gold, but it was developed on XAUUSD M10. On another market, run your own optimization of Min Score To Trade, Max Bars Since Confirmation, Wave3 Min Reward Risk and ATR Break Even Trigger Mult before using it.
FREQUENTLY ASKED QUESTIONS
Does it repaint? No. Pivots and waves are calculated on closed bars only and every decision is taken at the open of a new bar.
Why so few trades? A clean Wave 1 and Wave 2 with a good score does not appear every day. On XAUUSD M10 the backtest averages about 30 trades a year.
Why is the win rate high while the profit factor is near 2? Break even protects many trades that turn back, so they close near zero. A full loss is about twice an average win.
Does it use grid, martingale or averaging? No. Every trade has its own stop loss and the lot never grows after a loss; it shrinks.
Can I run it on several charts? Yes, with a different Magic Number on each chart.
Which account type? Netting and hedging accounts are both supported.
Why did the backtest open no trade? Check the journal: the diagnostic summary at the end shows which filter blocked the setups. The usual reasons are the session filter, the minimum score or a symbol with too little history for the daily filter.
ALL PARAMETERS
General
Magic Number: identifies the trades of this EA.
Pip Size, 0 Auto: pip value used for the pip based settings; 0 detects it from the symbol.
Pivots
Pivot Depth: zigzag depth for the swing points, 12 by default.
Max Bars Since Confirmation: a setup older than this is not traded.
Windows To Scan For Display: how many older structures are checked for drawing.
Visuals
Draw Waves On Chart, Show Dashboard, Bars To Keep Old Drawing, Verbose Log.
Strategies
Enable FadeWave5 Strategy, Enable TradeWave3 Strategy: turn each strategy on or off.
Auto Strategy By Regime: chooses the strategy from the market regime, off by default.
Allow Opposite Positions: allows a buy and a sell at the same time.
Wave IQ
Min Score To Trade: minimum Wave IQ.
Score Modulates Size, High Score Threshold, High Score Risk Boost Percent, Low Score Risk Cut Percent: risk adjusted by the score.
Regime
Enable Regime Detection, ADX Period, ADX Trend Threshold, BB Period, BB Std Dev, BB Width Volatile Mult, BB Width Average Bars: how the regime is measured.
Correlation
Enable Correlation Filter, Correlation Symbol, Correlation Lookback Bars, Max Abs Correlation, Min Abs Correlation: avoids redundant positions with a correlated symbol.
Risk
Use Dynamic Sizing, Risk Per Trade Percent, Max Risk Per Trade Percent: size from the risk and the stop distance.
Fixed Lot Size: lot used when dynamic sizing is off.
Max Lot Size, Skip If Min Lot Exceeds Risk: size guards.
Enable Drawdown Recovery, Consecutive Losses To Reduce, Lot Reduction Percent: smaller lot after a losing streak.
Max Long Positions, Max Short Positions: limits per direction, pending orders included.
Stop And Target
Stop Mode, FadeW5: ATR based or fixed pips for the Fade Wave 5 strategy.
ATR Period, ATR SL Multiplier, ATR TP Multiplier, Min SL Pips: ATR levels.
Fixed Long SL Pips, Fixed Long TP Pips, Fixed Short SL Pips, Fixed Short TP Pips: fixed levels.
Max SL ATR Mult, 0 Off: skips trades with a wider stop.
Wave3 SL Type: Below Wave 2 (default), Automatic at the Wave 1 start, or Fixed Pips.
Wave3 SL Buffer ATR Mult, Wave3 Fixed SL Pips, Wave3 Min W1 Bars, Wave3 Target Extension, Wave3 Min Reward Risk: Wave 3 levels.
Wave3 Entry
Wave3 Entry Mode: Breakout Stop Order (default) or Market.
Breakout Buffer ATR Mult: distance of the stop order beyond Wave 1.
Max Chase ATR Mult: maximum distance for a market entry after the break.
Max Pending Bars: the stop order is cancelled after this many bars.
Position Management
Enable Partial Close, Partial Close At TP Percent, Partial Close Volume Percent: partial exit.
Trailing Mode: ATR based or fixed pips.
Trailing Stop Trigger Pips, Trailing Stop Distance Pips, Break Even Trigger Pips, Break Even Lock Pips: pip levels.
ATR Trail Trigger Mult, 0 Off, ATR Trail Distance Mult, ATR Break Even Trigger Mult, 0 Off, ATR Break Even Lock Mult: ATR levels.
Break Even Covers Costs, Break Even On Partial Close, Min SL Step Pips, ATR SL Step Mult: details of the stop updates.
Multi Timeframe
Enable MTF Filter, Higher TF, HTF MA Period: trend filter on the higher timeframe.
Filters
Enable Volume Filter, Volume SMA Period: volume behind Wave 1.
Enable Stochastic Filter, Stoch K Period, Stoch D Period, Stoch Slowing, Stoch Overbought, Stoch Oversold.
Enable RSI Divergence For FadeW5, RSI Period.
Sessions
Enable Session Filter, Session 1 Start and End UTC Hour, Enable Session 2, Session 2 Start and End UTC Hour.
Prop Firm
Enable Prop Risk Management, Action On Limit Hit, Max Daily Loss Percent, Max Total Loss Percent, Enable Profit Target, Profit Target Percent, Daily Reset UTC Hour, Persist Prop Baseline, Reset Prop Baseline.
Elliott Fibonacci
Wave 2 Retrace Min and Max Percent, Wave 3 Min Extension Of W1 Percent, Wave 4 Retrace Min and Max Percent, Min Wave 1, Wave 3 and Wave 5 Length Pips: the Elliott rules in numbers.
Server Time
Server Time Mode: Auto, NY Close GMT+2 or GMT+3, or Fixed Offset.
Fixed Server Utc Offset Hours: used with Fixed Offset.
About Algotrend: Algotrend is an independent developer of trading algorithms. Every product is designed, tested and supported by the same developer. For questions and settings, write in the comments of this page or send a private message on MQL5.
Trading involves risk. Results in the Strategy Tester do not guarantee future results.
