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
Grafik Tabranij is a multi-strategy Expert Advisor for MetaTrader 5 and MetaTrader 4 designed for automated trading. It features five distinct operational modes: breakout, grid averaging, zigzag bounce, signal-based entry, and an A* pathfinding algorithm for optimal price levels. The EA utilizes martingale lot-size sca
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
Tabranij Gold EA is an MT5 expert advisor that trades XAUUSD gold using multiple strategies including breakout, martingale averaging, grid layering and zigzag bounce entries. It scales lots with a multiplier up to five steps then stops. Exits use fixed stop loss and take profit distances or ATR-scaled signals. Built-in
The Gold Reaper is a multi-strategy expert advisor for MetaTrader 4 and 5. It trades gold pairs using breakout and reversal entries based on fractals and ATR. Trades enter when spread and frequency conditions are met and exit via trailing stops or time-based rules. The EA includes NFP filters to pause during economic e