Gold Bar Close MA50 Dynamic SL enters trades on M1 bar close when the EMA50 is trending in the direction, the bar closes beyond the previous bar high or low, and spread stays under 1.5 with no abnormal volume spike. It places one market order at a time using 0.01 lot size and an initial server-side stop loss of 10 points. The SL moves to break even at entry plus 3 when profit hits plus 4, then applies rolling stop loss based on the lowest high or highest low of the last 15 closed bars minus or plus 0.2, never moving against the trade and optionally trailing stop. No take profit is used. The bar-close logic ensures backtests match live conditions without guessing price inside bars.
Read from Gold_BarClose_MA50_DynamicSL_v6.00.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpTradeSymbol
string
XAUUSDm
InpMagicNumber
ulong
999889
differs from v5.93 (999888) on purpose
InpSignalTimeframe
ENUM_TIMEFRAMES
PERIOD_M1
InpLotSize
double
0.01
InpRequireBreakout
bool
true
BUY: close > previous high, SELL: close < previous low
InpInitialSLPrice
double
10.0
InpUseBreakEven
bool
true
InpBreakEvenStart
double
4.00
InpBreakEvenOffset
double
3.00
InpUseRollingSL
bool
true
InpSLTimeframe
ENUM_TIMEFRAMES
PERIOD_M1
InpSLBars
int
15
Show all 28 inputs
Name
Type
Default
Description
InpSLBuffer
double
0.20
InpRollingStep
double
0.30
InpUseTrailingSL
bool
false
InpTrailingStart
double
2.00
InpTrailingDistance
double
0.70
InpTrailingStep
double
0.20
InpUseVolumeFilter
bool
true
InpVolumeMA_Period
int
20
InpVolumeMultiplier
double
2.0
InpUseMAFilter
bool
true
InpMAMethod
ENUM_MA_METHOD
MODE_EMA
InpMAPeriod
int
50
InpMATimeframe
ENUM_TIMEFRAMES
PERIOD_M1
InpUseMASlope
bool
true
InpMASlopeBars
int
3
InpMaxSpread
double
1.50
How to Install It
1Download the sourceUse "Download source (.zip)" above, or clone LiinIT/Bot-EA-Trading-XAUUSD-Scaping_MA50 from GitHub, and unzip it.
2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
3Copy the filesCopy the .mq5 file into Experts.
4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.
Nyao Scalper is an automated scalping robot for MetaTrader 5 that utilizes a multi-factor weighted scoring system to identify trade opportunities. It evaluates trend alignment through EMA crossovers, momentum via RSI, and price action through wick rejection and candle body analysis. The EA manages risk with adaptive AT
Prop Firm EA Fleet is a collection of MetaTrader 5 robots designed for passing prop firm evaluations and managing funded accounts. The suite utilizes various strategies including market structure analysis, session range breakouts for London and New York sessions, and high-frequency scalping. It features strict risk man
Universal Market Hunter is an automated trading robot for MetaTrader 5 that targets Forex, gold, and cryptocurrency markets. It allows users to switch between two main strategies: a Bollinger Band volatility breakout and an engulfing price action pattern using volume confirmation. The system manages risk through ATR-ca
This MetaTrader 5 expert advisor is designed for aggressive trading on XAUUSD, focusing on the 5-minute and 15-minute timeframes. It utilizes Fibonacci retracements and swing high/low breakouts to identify entries across three selectable modes: scalp, swing, and trend following. The system manages up to three positions
Atlas EA is a multi-strategy intraday trading robot for MetaTrader 5, primarily focused on gold, silver, and USDJPY. It identifies market structure shifts using Smart Money Concepts, specifically targeting breaks of structure and fair value gaps during the London and New York sessions. The EA includes optional modules
This collection of Expert Advisors for MetaTrader 5 provides high-frequency scalping and multi-strategy automated trading across multiple currency pairs. The robots utilize a signal scoring system based on moving average crossovers, RSI momentum, Bollinger Band breakouts, and MACD signals. The suite includes a dedicate