17BA Gold Scalper places buy and sell stop orders around the market price; once one triggers, the opposite is cancelled. To manage adverse movements, the EA initiates a Fibonacci recovery basket, adding layers at specific price gaps to reach a consolidated take profit. It includes risk management features such as a drawdown guard that closes all positions at a defined loss percentage and an ATR volatility filter. The system offers two variants for aggressive gold trading or tamer multi-instrument operation.
Pending OCO breakout entry system
Fibonacci-based recovery basket logic
ATR volatility filter for entry suppression
Equity drawdown guard with percentage-based closure
Read from 17BA_Chakka.mq5. Defaults are the author's; change them in the EA's Inputs tab.
Name
Type
Default
Description
InpTPDist
double
0.40
TP distance in price units (gold-tuned; auto-scaled if InpAutoScale)
InpRecovGap
double
1.20
Gap between recovery levels (gold-tuned; auto-scaled if InpAutoScale)
InpMaxLevels
int
12
Max recovery levels (1-12). More levels = deeper averaging but much bigger risk
InpMagic
int
171717
InpSlippage
int
30
InpEnableLogs
bool
true
InpUseGuard
bool
true
Master switch — turn the drawdown guard off completely
InpMaxLossPct
double
20.0
Emergency-close committed basket at this % of balance floating loss
InpAutoScale
bool
false
Turn ON when running on non-gold instruments
InpATRPeriod
int
14
ATR period used for scaling
InpRefATR
double
4.00
Reference ATR (price) the fixed distances are tuned at (XAUUSD M15)
InpUseVolFilter
bool
true
Don't OPEN new straddles when volatility is elevated
Show all 25 inputs
Name
Type
Default
Description
InpMaxATRMult
double
1.8
"Elevated" = current ATR > this × its recent average
InpVolLookback
int
100
Bars to average ATR over for the volatility baseline
InpEntryGap
double
0.50
Distance from price to each pending stop (price units)
InpUseSession
bool
false
InpStartHour
int
1
InpStopHour
int
23
InpUseOBLQ
bool
true
InpOBLookback
int
60
InpOBBodyRatio
double
0.55
InpOBBuffer
double
0.60
InpLQLookback
int
40
InpLQSwingLen
int
4
InpLQBuffer
double
0.50
How to install it
1Download the sourceUse "Download source (.zip)" above, or clone jmac17ba/goldscalper-ea 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.
Prem Gold Advisor is an automated MetaTrader 5 expert advisor specialized for XAUUSD (Gold) trading on the five-minute timeframe. It initiates trades using breakout levels placed at specific distances from the candle open. The strategy features a progressive scale-in mechanism, adding new orders as the price hits succe
Bakome Bitcoin EA is a trend-following robot optimized for trading BTCUSD on the MetaTrader 5 platform. It generates trade signals using an exponential moving average crossover combined with price breakouts on the H1 timeframe. The system features a grid recovery module that adds positions with a lot multiplier when tr
Straddle Grid is an automated trading robot for MetaTrader 5 that deploys bidirectional stop-order grids based on fixed price distances. The expert advisor utilizes a gates system to filter entries by ATR volatility, spread limits, and specific GMT trading sessions. It manages positions as a basket with currency-based
This MetaTrader 4 robot implements a grid-based hedging strategy triggered by inside bar price formations. It places multiple pending orders on both sides of a breakout and uses martingale lot scaling to increase position sizes for subsequent entries. The expert advisor is designed for the H4 and Daily timeframes, util
GM Remake is an automated trading robot for MetaTrader 4 that executes a multi-stage martingale strategy. It initiates trades based on price breakout logic and manages drawdowns by layering additional positions at user-defined distances. To refine entries, the EA utilizes dual exponential moving averages and MACD trend
This MetaTrader 4 expert advisor implements a counter-trend strategy based on RSI trendline breakouts and price prediction indicators. It enters trades when the RSI breaks out of support or resistance lines and manages positions using a grid-based approach. The system layers limit and stop orders at fixed intervals, em