Smart Gold Scalper I
- Experts
- Versione: 2.63
- Attivazioni: 5
SMC EA – CoreFusion Guarded is an automated trading Expert Advisor built around market structure, momentum, trend confirmation and disciplined risk management.
The EA is designed primarily for XAUUSD (Gold) on the M15 timeframe using Smart Money Concepts combined with EMA trend direction, RSI momentum, Break of Structure (BOS), displacement, Order Blocks and Fair Value Gaps.
Instead of relying on large numbers of indicators, the EA focuses on a small number of conditions that have a clear trading purpose.
Main Advantages
Smart Market Structure Entries
The EA identifies confirmed market structure and looks for a valid Break of Structure (BOS) before considering an entry.
A BOS setup remains active for a limited number of bars, allowing the EA to wait for a suitable entry rather than entering immediately on every breakout.
Trend Confirmation
The EA uses a fast and slow EMA combination to determine the current trend.
By default:
-
Fast EMA: 20
-
Slow EMA: 50
EMA slope confirmation is also used to help avoid weak or counter-trend movements.
RSI Momentum Confirmation
RSI is used as a momentum filter rather than as a standalone entry signal.
Default BUY momentum range:
RSI 50–72
Default SELL momentum range:
RSI 28–50
This helps the EA trade when momentum supports the detected market structure.
Displacement Confirmation
A breakout alone is not enough.
The EA checks for a strong displacement candle to confirm that the market has moved with sufficient momentum before entering.
This helps reduce entries caused by weak or false structure breaks.
Smart Money Concepts
The EA can identify and use:
-
Break of Structure
-
Liquidity sweeps
-
Order Blocks
-
Fair Value Gaps
-
Structural support and resistance
-
Displacement
-
Swing highs and swing lows
Order Blocks and Fair Value Gaps are primarily used as additional context rather than forcing every trade to contain all SMC conditions.
Structural Stop Loss
Stop losses are calculated from market structure and ATR rather than using one fixed number of points.
This allows the stop distance to adapt to current Gold volatility.
Minimum and maximum ATR-based stop limits are also available.
Minimum 2:1 Risk-to-Reward
The default minimum risk-to-reward target is:
1:2
For example, if the initial risk is 1R, the standard target is at least 2R.
Adaptive Percentage Risk
The EA uses percentage-based risk management.
Position size is automatically calculated according to:
-
Account balance/equity
-
Entry price
-
Stop-loss distance
-
Selected risk percentage
-
Broker lot-size restrictions
The default risk is conservative and can automatically adjust according to recent strategy performance.
Performance-Based Risk Adjustment
The EA evaluates recent closed trades separately for BUY and SELL positions.
When recent performance is strong, risk can increase slightly.
When recent performance becomes weak, risk can automatically decrease.
Importantly, this performance system controls position size only. It does not reject an otherwise valid trading setup.
Protected Pyramiding
The EA can hold up to two positions, but it does not blindly stack multiple trades in the same direction.
Before opening another position in the same direction, existing positions must first be protected at breakeven or better.
This helps prevent several full-risk positions from being exposed to the same market reversal.
Aggregate Risk Protection
The EA calculates total initial risk across open positions.
New trades can be prevented when total exposure exceeds the configured account-risk limit.
Daily and Weekly Drawdown Protection
Trading can automatically stop when the account reaches the configured:
-
Maximum daily drawdown
-
Maximum weekly drawdown
This provides an additional layer of account protection during difficult market conditions.
Consecutive-Loss Protection
After a configured number of consecutive losing trades, the EA activates a cooldown period before trading again.
The default setting is:
3 consecutive losses
followed by a:
180-minute cooldown
Break-Even Protection
When a position reaches the configured profit level, the EA can automatically move the stop loss to breakeven plus a small buffer.
Default:
1R
Partial Profit Taking
For positions large enough to support partial closing, the EA can automatically close part of the trade after reaching a selected profit level.
Default:
-
Trigger: 1.5R
-
Close: 50%
Small-Lot Profit Protection
Some brokers do not allow a 0.01-lot position to be partially closed.
In this situation, the EA automatically uses a profit-locking stop-loss method instead of attempting an invalid partial close.
ATR Trailing Stop
Profitable positions can be managed using an ATR-based trailing stop.
This allows the EA to protect profits while still giving strong trends room to continue.
Spread Protection
The EA monitors both:
-
Absolute spread
-
Recent average spread
Trading can be blocked when spread becomes unusually high.
This is particularly useful around volatile periods and poor liquidity conditions.
Trading Session Control
Users can define exactly when the EA is allowed to search for trades.
The default session is:
06:00–20:00 GMT
Monday and Friday trading can also be controlled independently.
Friday Protection
The EA includes optional Friday safeguards.
It can:
-
Stop opening new trades after a specified Friday time
-
Close remaining positions before the weekend
This helps reduce exposure to weekend gaps.
Optional Economic News Filter
An economic-news filter is included and can be enabled when required.
Users can configure:
-
Country
-
Currency
-
Minutes before news
-
Minutes after news
-
Refresh frequency
The filter is disabled by default.
On-Chart Dashboard
The EA includes an optional dashboard showing useful information about current trading conditions and strategy activity.
Recommended SetupPrimary symbol: XAUUSD
Default timeframe: M15
Trading style: Intraday / short-term trend and structure trading
The supplied default settings were designed around XAUUSD M15. Other symbols and timeframes should be independently backtested before use.
Input ParametersGeneral
InpMagicNumber – 26090201
Unique identification number used by the EA to manage its own trades.
InpTradingTimeframe – M15
Timeframe used by the trading strategy.
InpSlippagePoints – 30
Maximum allowed execution deviation.
InpLogVerbosity – INFO
Controls the amount of information written to the Expert log.
InpLogToFile – false
Enables or disables additional file logging.
InpAllowBuys – true
Allows BUY trades.
InpAllowSells – true
Allows SELL trades.
Session Filter
InpUseSessionFilter – true
Enables trading-hour restrictions.
InpBrokerToGMTOffsetHrs – 0
Offset used to convert broker time to GMT.
InpSessionStartGMT – 6
Hour when the EA may begin opening new trades.
InpSessionEndGMT – 20
Hour when the trading session ends.
InpAllowMonday – true
Enables Monday trading.
InpAllowFriday – true
Enables Friday trading.
InpFridayCutoffGMT – 17
Stops new Friday entries after this GMT hour.
InpForceFridayExit – true
Enables automatic Friday position closure.
InpFridayForceExitGMT – 19
GMT hour when remaining Friday positions are closed.
InpForceSessionExit – false
When enabled, positions can be closed when the normal trading session ends.
Spread Filter
InpMaxSpreadPoints – 80
Maximum absolute spread allowed for a new trade.
InpSpreadLookbackTicks – 100
Number of recent ticks used to calculate typical spread.
InpMaxSpreadMultiple – 2.5
Prevents entries when current spread is excessively large compared with recent spread.
EMA Trend Filter
InpEMAFastPeriod – 20
Fast EMA period.
InpEMASlowPeriod – 50
Slow EMA period.
InpMinEMASeparationPts – 25
Minimum distance required between the fast and slow EMA.
InpRequireEMASlope – true
Requires the fast EMA to slope in the trade direction.
InpEMASlopeLookbackBars – 3
Number of bars used to measure the fast EMA slope.
InpRequireSlowEMASlope – true
Requires confirmation from the slower EMA trend.
InpSlowEMASlopeLookbackBars – 5
Number of bars used to calculate the slow EMA slope.
RSI Filter
InpRSIPeriod – 14
RSI calculation period.
InpRSIBullMin – 50
Minimum RSI value for BUY setups.
InpRSIBullMax – 72
Maximum RSI value for BUY setups.
InpRSIBearMin – 28
Minimum RSI value for SELL setups.
InpRSIBearMax – 50
Maximum RSI value for SELL setups.
InpRSIAsHardFilter – true
Requires RSI to be inside the specified momentum range before entry.
Market Structure / SMC
InpEntryModel – Balanced
Selects the entry-model configuration.
InpSwingStrength – 3
Controls how swing highs and swing lows are identified.
InpStructureLookback – 120
Number of historical bars used for market-structure analysis.
InpBOSBufferPoints – 5
Additional distance required to confirm a Break of Structure.
InpBOSValidityBars – 4
Number of bars for which a confirmed BOS setup remains valid.
InpSweepLookbackBars – 10
Lookback used to detect liquidity sweeps.
InpMinSweepPoints – 5
Minimum distance required for a valid liquidity sweep.
InpDisplacementLookback – 4
Number of recent bars checked for displacement.
InpDisplacementBodyATR – 0.60
Minimum candle-body size relative to ATR for displacement.
InpMinBodyToRange – 0.55
Minimum candle-body percentage compared with the full candle range.
InpCloseLocation – 0.70
Required closing strength within the displacement candle.
Profit Hybrid Entry Engine
InpUseProfitHybridEngine – true
Activates the main CoreFusion BOS and displacement entry engine.
InpUseOBStopRefinement – false
When enabled, Order Blocks may be used to refine stop placement.
InpTagFVGRetest – true
Allows Fair Value Gap retests to be identified as additional setup context.
SMC Entry State Machine
These settings control the alternative retest-based entry logic when used.
InpRetestMaxBars – 6
Maximum number of bars allowed for a retest.
InpRetestToleranceATR – 0.35
ATR-based tolerance around the retest zone.
InpMaxRetestPenetrationATR – 0.65
Maximum permitted penetration through the retest area.
InpMinBOSBodyATR – 0.25
Minimum BOS candle-body size relative to ATR.
InpMinBOSCloseBeyondATR – 0.03
Minimum distance the BOS candle must close beyond structure.
InpMaxEntryExtensionATR – 1.35
Maximum allowed price extension before an entry is considered too stretched.
InpRetestMinScore – 70
Minimum quality score required for a retest setup.
InpRequireStrongRetestCandle – true
Requires stronger directional candle confirmation.
InpEnableMomentumFallback – false
Enables or disables momentum-based fallback entries.
InpMomentumAfterBars – 1
Number of bars before a momentum fallback may be considered.
InpMomentumHoldATR – 0.05
Minimum ATR-based price hold required.
InpMomentumMinScore – 85
Minimum quality score for a momentum fallback setup.
Order Block Confluence
InpUseOrderBlocks – true
Enables Order Block analysis.
InpOBLookbackBars – 8
Number of bars searched when locating an Order Block.
InpOBUseBodyOnly – false
Chooses whether Order Block zones use only candle bodies or the full candle.
InpOBRequireDisplacement – true
Requires displacement confirmation when identifying an Order Block.
InpOBMaxZoneATR – 1.50
Maximum permitted Order Block size relative to ATR.
InpOBInvalidationBufferATR – 0.10
Additional ATR-based buffer used around Order Block invalidation.
Structural Support / Resistance & FVG
InpUseStructuralSR – true
Enables structural support and resistance analysis.
InpSRLookbackBars – 180
Number of bars searched for structural levels.
InpMinRoomToSR_R – 1.25
Preferred minimum room between an entry and opposing structure, measured in R.
InpHardRejectNearSR – false
Determines whether nearby opposing structure automatically rejects an entry.
InpStrongRoomToSR_R – 2.50
Defines a clear structural path that can increase setup quality.
InpNearSR_ATR – 1.00
Distance used when measuring supportive nearby structure.
InpUseFVGConfluence – true
Enables Fair Value Gap analysis.
InpFVGLookbackBars – 6
Number of bars searched for FVGs.
InpMinFVGPoints – 5
Minimum size of a valid FVG.
InpFVGBonusRequiresRetest – true
Requires an FVG retest before it improves setup quality.
ATR / Stop Construction
InpATRPeriod – 14
ATR calculation period.
InpMinStopATR – 0.80
Minimum permitted stop distance relative to ATR.
InpMaxStopATR – 3.00
Maximum permitted stop distance relative to ATR.
InpStructureBufferPts – 20
Extra protection added beyond structural invalidation points.
InpMinATRPoints – 0
Optional minimum ATR volatility requirement. Zero disables it.
InpMaxATRPoints – 0
Optional maximum ATR volatility requirement. Zero disables it.
Risk Management
InpRiskPctMin – 0.10%
Minimum permitted trade-risk percentage.
InpRiskPctMax – 2.00%
Maximum risk percentage that the input system permits.
InpRiskPctPerTrade – 0.50%
Fixed risk used when adaptive risk is disabled.
InpUseAdaptiveRisk – true
Enables adaptive risk calculation.
InpAdaptiveRiskBasePct – 0.40%
Risk level for an ordinary valid setup.
InpAdaptiveRiskStrongPct – 0.60%
Risk level available for stronger setups.
InpAdaptiveRiskElitePct – 0.65%
Maximum default risk level for the highest-scoring setups.
InpStrongScoreThreshold – 85
Score required for a setup to be classified as strong.
InpEliteScoreThreshold – 98
Score required for the elite category.
InpAllowMinLotRiskOverride – true
Allows the EA to use the broker's minimum lot when calculated volume is smaller, subject to safety limits.
InpMaxRiskPctAtMinLot – 0.80%
Maximum absolute account risk permitted when the broker's minimum lot must be used.
InpMaxMinLotRiskOvershootPct – 0.30%
Maximum amount by which minimum-lot risk may exceed the requested risk percentage.
InpMaxDailyDrawdownPct – 2.50%
Maximum permitted daily drawdown before new trading is stopped.
InpMaxWeeklyDrawdownPct – 6.00%
Maximum permitted weekly drawdown.
InpMaxConcurrentPositions – 2
Maximum total number of simultaneous EA positions.
InpMaxSameDirectionPositions – 2
Maximum number of simultaneous positions in one direction.
InpRequireProtectedBeforePyramid – true
Requires existing same-direction positions to be at breakeven or in protected profit before another trade is added.
InpAllowOppositePositions – false
Controls whether BUY and SELL positions may be held simultaneously.
InpMaxAggregateOpenRiskPct – 1.50%
Maximum combined initial risk across open positions.
InpConsecutiveLossLimit – 3
Number of consecutive losses that activates the cooldown system.
InpCooldownMinutes – 180
Trading pause after reaching the consecutive-loss limit.
InpMinRiskReward – 2.00
Minimum target risk-to-reward ratio.
CoreFusion Performance Risk
InpUseRollingEdgeRisk – true
Allows recent strategy performance to adjust risk size. It does not block valid signals.
InpEdgeLookbackTrades – 10
Number of recent trades used to evaluate performance.
InpEdgeMinTrades – 6
Minimum number of trades required before performance-based adjustments begin.
InpEdgeHotWinRate – 55%
Win-rate level associated with strong recent performance.
InpEdgeColdWinRate – 40%
Win-rate level associated with weak recent performance.
InpEdgeHotProfitFactor – 1.35
Profit-factor level associated with strong recent performance.
InpEdgeColdProfitFactor – 0.85
Profit-factor level associated with weak recent performance.
InpEdgeHotRiskPct – 0.60%
Risk used when recent directional performance is strong.
InpEdgeNeutralRiskPct – 0.50%
Normal risk when recent performance is neutral.
InpEdgeColdRiskPct – 0.40%
Reduced risk during weaker recent performance.
InpSweepRiskBonusPct – 0.00%
Optional additional risk for sweep setups. Disabled by default.
InpOBRetestRiskBonusPct – 0.00%
Optional additional risk for Order Block retests. Disabled by default.
InpEdgeRiskCapPct – 0.65%
Maximum risk permitted by the rolling-performance system.
Trade Management
InpBreakevenAtR – 1.00R
Moves the stop to breakeven after the trade reaches this profit level.
InpBreakevenBufferPts – 2
Small profit buffer added to the breakeven stop.
InpPartialCloseAtR – 1.50R
Profit level where partial closing is attempted.
InpPartialClosePct – 50%
Percentage of the position to close.
InpTrailingATRMultiple – 1.50
ATR multiplier used for the trailing stop.
InpTrailingStepPoints – 50
Minimum stop-loss improvement before another trailing modification is sent.
InpTrailingMinSeconds – 10
Minimum delay between trailing-stop modifications.
InpTrailingStartR – 1.20R
Profit level where ATR trailing may begin.
InpSmallLotLockR – 0.75R
Profit-locking level used when the position is too small to partially close.
InpEnablePartialClose – true
Enables partial profit taking.
InpEnableATRTrailing – true
Enables ATR-based trailing stops.
Economic News Filter
InpEnableNewsFilter – false
Enables or disables the economic-news filter.
InpNewsMinutesBefore – 30
Stops new entries for this number of minutes before selected news.
InpNewsMinutesAfter – 15
Waiting period after selected news.
InpNewsCountryCode – US
Country used when filtering economic events.
InpNewsCurrency – USD
Currency used when filtering news events.
InpNewsRefreshSeconds – 60
Frequency at which the news information is refreshed.
InpNewsFailOpen – true
Determines how the EA behaves when news information cannot be obtained.
Dashboard
InpShowDashboard – true
Shows the EA information dashboard directly on the chart.
SMC EA – CoreFusion Guarded is an automated trading tool and does not guarantee profits.
Financial markets can change and historical backtesting does not guarantee future results.
Users should test the EA using the MetaTrader 5 Strategy Tester and a demo account before using it on a live trading account.
The default configuration is primarily intended for XAUUSD M15. Different brokers may have different spreads, contract sizes, minimum lot sizes and trading conditions, so results can vary.
