This MetaTrader 5 robot is a trend-following expert advisor converted from Pine Script, designed primarily for gold scalping on the one-minute timeframe.
GainzAlgo EA identifies entries using a triple Exponential Moving Average stack combined with Relative Strength Index filters and candle confirmation. The EA manages risk through Average True Range based stop loss and take profit levels, aiming for a consistent reward-to-risk ratio. It includes features like compounding lot sizes, margin-based position sizing, and a higher timeframe trend filter to refine trade selection while providing multiple built-in performance presets.
Read from GainzAlgo_EA.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpPreset
ENUM_PRESET
PRESET_MICRO
InpEmaFastLen
int
5
Fast EMA Length
InpEmaSlowLen
int
13
Slow EMA Length
InpEmaTrendLen
int
34
Trend EMA Length
InpRsiLen
int
7
RSI Length
InpRsiOB
int
72
RSI Overbought
InpRsiOS
int
28
RSI Oversold
InpAtrLen
int
14
ATR Length
InpSymbol
string
XAUUSDm
Symbol (XAUUSDm in MT5 for Gold, $100 setup)
InpMultiSymbol
bool
false
Trade multiple symbols
InpSymbolList
string
XAUUSDm
Symbols (comma-separated, when Multi ON)
InpInitialDeposit
double
100
Initial Deposit ($100 โ set Tester Deposit to match)
Show all 30 inputs
Name
Type
Default
Description
InpUseAtrMult
bool
true
Use ATR for SL/TP
InpTpMult
double
2.0
Take Profit (x ATR) manual
InpSlMult
double
1.0
Stop Loss (x ATR) manual
InpUseCompounding
bool
false
Enable Compounding (lot size grows with balance)
InpUseMarginBasedLot
bool
true
Auto lot to fit margin (ON = no "not enough money")
InpLotSize
double
0.01
Lot size (0.01 for EURUSDm $100; fixed when margin-based gives 0)
InpCompoundingPercent
double
0.5
Risk % per trade when compounding (0.5% = $0.50 on $100)
InpMaxPositions
int
1
Max open positions per direction (1 = 75% strategy)
InpMagic
int
123456
Magic Number
InpTimeframe
ENUM_TIMEFRAME_MODE
TF_M1
Timeframe mode (M1 for $100 scalping)
InpUseM5Trend
bool
true
M5 trend filter (75% strategy: only trade with M5 trend)
InpM5TrendBars
int
2
M5 trend confirmation (2 = require 2 bars in trend)
InpCandleConfirm
bool
true
Candle confirmation (bar close in trade direction)
InpMinSLPoints
double
0
Min SL distance (points, 0=off; e.g. 30 for XAUUSD)
InpShowSignals
bool
true
Show BUY/SELL Arrows
InpShowTPSLLabels
bool
false
Show TP/SL text labels
InpShowPositionDashboard
bool
true
Show Position Table (Entry/SL/TP/Risk:Reward) in corner
InpDebugMode
bool
true
Debug: full logs + profit per trade | OFF: live, errors only
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone saadkhan371/pinescript 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.
EA Scalper XAUUSD is an automated trading research project for MetaTrader 5 focused on gold. It employs a multifaceted entry strategy using Smart Money Concepts like order blocks and liquidity sweeps, alongside moving average crossovers and Fibonacci zones. The EA includes a self-learning module designed to adapt to di
Scalpflip EA is an automated scalping robot for MetaTrader 5 that utilizes a multi-layered technical analysis approach. It offers three entry modes: trend-following, mean-reversion, and a smart mode that selects the strategy based on current market conditions. The system filters trades using the Relative Strength Index
FG Scalping Pro is an automated trading system for MetaTrader 5 that utilizes a multi-indicator approach to identify entry points. It combines exponential moving average crossovers with RSI momentum and Bollinger Band volatility filters to execute trades. The EA manages risk through dynamic ATR-based stop loss and take
Gold Scalper is an educational MetaTrader 5 expert advisor designed for scalping XAUUSD on the one-minute timeframe. It is presented as a masterclass tutorial to demonstrate modular coding practices. The system utilizes a 200-period Exponential Moving Average for trend filtering and the Relative Strength Index for entr
Trade Pro 1Min Scalper is an automated trading robot for MetaTrader 5 that implements a strategy based on Bill Williams Fractals and a triple moving average system. It identifies market trends using fast, medium, and slow EMA periods and executes entries based on short-term price action. The expert advisor includes a f
Sentinel EA is a trend-following scalping robot developed for MetaTrader 5, specifically optimized for trading Gold (XAU/USD) on the one-minute timeframe. The strategy utilizes a fast and slow Exponential Moving Average crossover to identify trade entries. It features mandatory risk controls including fixed stop loss a
MT5Trading robotScalpingIndicator crossoverTrend following