Echo Gold Scalper
- Experts
- 버전: 3.61
- 활성화: 15
Echo Gold Scalper is an Expert Advisor for XAUUSD (gold). It trades in the direction of the main trend and enters on short pullbacks on the M1 chart. Every trade is opened with a stop loss, and open trades are managed step by step: partial profit at TP1, then a stop that locks profit and follows the price.
How it works
1. Trend check. The EA compares a fast and a slow EMA (20 and 50) on five timeframes: M15, M30, H1, H4 and D1. A buy is only allowed when at least 3 of the 5 timeframes point up, and a sell only when at least 3 point down.
2. Entry. On the entry timeframe (M1 by default) it waits for a pullback candle followed by a candle that turns back in the trend direction, with RSI inside a set range and ADX showing enough trend strength.
3. Chop filter. Signals are skipped when price has moved too little over the last 20 candles (sideways market).
4. Stop loss. Each trade is sent with a stop loss of 4 x ATR, placed at the broker.
5. TP1. When price reaches TP1 (half the distance to TP2), 50% of the position is closed and the stop loss moves just past the entry price, so the rest of the trade cannot end in a loss.
6. After TP1. The stop loss follows the price (0.5 x ATR behind it) and keeps at least half of the best profit reached. TP2 is virtual and moves further away when price comes close to it, so a strong move is not cut short. The trade ends when the stop loss is hit.
Main features
- Lot size calculated from the risk percent and the stop distance.
- Skips the trade when the broker's minimum lot would risk more than allowed, or when there is not enough free margin.
- Daily loss limit, maximum trades per day, short cooldown after a loss, and a pause after several losses in a row.
- Spread filter (fixed maximum and relative to ATR).
- Trading session filter (server time).
- Connection checks: no entries when the price data is old, when the new candle is detected too late, or when the ping to the server is too high. This prevents entries at outdated prices on a slow connection.
- Works on standard and cent accounts (for example XAUUSD, XAUUSDm, XAUUSDc).
- Clear messages in the Experts tab explaining every entry, skipped entry and stop change.
Recommendations
- Symbol: XAUUSD (gold). Attach the EA to one XAUUSD chart. The chart timeframe does not matter; the EA uses its own Entry timeframe input.
- Account: hedging or netting. A low-spread account is recommended.
- A VPS is strongly recommended. The EA trades on M1, so a stable, fast connection to the broker matters.
- Start with a low risk per trade (1% or less) and test on a demo account first.
- Check the session hours against your broker's server time.
Risk warning: trading gold with leverage carries a high level of risk. Past results, including backtests, do not guarantee future results. Use only money you can afford to lose.
Input parameters
General
- MagicNumber - ID number of the EA's trades. Change it only if you run another copy on the same symbol.
- AllowBuy / AllowSell - allow buy trades / sell trades.
Risk management
- RiskPercentPerTrade - risk per trade in % of equity, if the full stop loss is hit.
- MaxDailyLossPercent - no new trades for the rest of the day after the account loses this % of equity.
- MaxTradesPerDay - maximum number of new trades per day.
- MaxRiskOverrunPercent - skip the trade if the broker's minimum lot would risk more than the set risk plus this %.
- MaxMarginUsePercent - maximum % of free margin one new trade may use.
- SizeLotOnHalfRiskStop - keep false. If true, the lot is doubled and a full stop loss costs about twice the set risk.
Trend filter
- FastEMA / SlowEMA - EMA periods used for the trend check on M15, M30, H1, H4 and D1.
- MinAlignedTimeframes - how many of the 5 timeframes must agree on the trend (default 3).
Entry
- EntryTF - timeframe used for entries (default M1).
- RSIPeriod - RSI period.
- BuyRSIMin / BuyRSIMax - RSI range allowed for buys.
- SellRSIMin / SellRSIMax - RSI range allowed for sells.
- ADXPeriod - ADX period.
- MinimumADX - minimum ADX (trend strength) for an entry.
- UseChopFilter - skip signals in a sideways market.
- ChopLookbackBars - number of candles used by the chop filter.
- MinNetMoveATR - minimum price move over those candles, in ATR.
Stop loss and targets
- ATRPeriod - ATR period.
- ATR_SL_Multiplier - stop loss distance in ATR (default 4.0).
- ATR_TP_Multiplier - distance to TP2 in ATR (default 6.4).
- MinATRPrice - no entries when ATR is below this value (in price, USD for gold).
- TP1DistanceFraction - position of TP1 between entry and TP2 (0.5 = halfway).
- TP1ClosePercent - % of the position closed at TP1.
Trade management after TP1
- UseProfitLockSL - at TP1, move the stop loss just past the entry price.
- ProfitLockBufferPrice - maximum distance past entry for this stop (price units).
- ProfitLockBufferMaxATR - distance past entry for this stop, in ATR.
- UseProfitRatchet - keep a part of the best profit reached.
- RatchetStartATR - profit (in ATR) needed before the ratchet starts.
- RatchetLockFraction - part of the best profit kept by the stop (0.5 = half).
- UseTrailingStop - stop loss follows the price after TP1.
- TrailSLATR - distance of the trailing stop behind the price, in ATR.
- TrailMinStepATR - the stop only moves when it improves by at least this many ATR.
- UseTrailingTP - TP2 moves further away when price comes close to it.
- TPTriggerATR - how close price must come to TP2 before it moves, in ATR.
- TPExtendATR - how far TP2 moves each time, in ATR.
Order handling
- MinModifyIntervalMs - minimum time between two requests on the same trade.
- ModifyBackoffMs - waiting time after a failed request on the same trade.
- SLSafetyBufferPrice - extra distance kept from the broker's minimum stop level.
- MaxDeviationPoints - maximum slippage allowed when opening a trade (points).
- EntryRetries - extra attempts after a requote or price change.
- SlowFillWarnMs - write a warning when an entry takes longer than this.
Filters
- UseSpreadFilter - skip entries when the spread is too high.
- MaxSpreadPrice - maximum spread (price units).
- MaxSpreadATRFraction - maximum spread as a part of ATR.
- UseTradingSession - trade only between StartHour and EndHour.
- StartHour / EndHour - session hours in broker server time.
Connection checks
- UseConnectionGuards - turn the connection checks on or off.
- StartupGraceSeconds - no entries for this many seconds after the EA starts.
- MaxEntryDelaySeconds - a new candle must be handled within this many seconds of its open.
- MaxTickAgeSeconds - no entries when the last price update is older than this.
- MaxPingMs - no entries when the ping to the server is higher than this.
Loss protection
- UseLossCooldown - short pause after a losing trade.
- CooldownSecondsAfterLoss - length of that pause in seconds.
- UseConsecLossPause - longer pause after several losses in a row.
- ConsecLossesForPause - number of losses in a row before the pause.
- PauseMinutesAfterConsecLosses - length of that pause in minutes.
Other
- EnableDiagnostics - write detailed messages to the Experts tab.
