Gold Sparrow
- Experts
- Version: 1.0
Important Note: In actual trading, drawdowns may be significant. Please only trade with money you can afford to lose and avoid setting the LotFactor too high (recommended 0.1-0.2).
The price movement on a chart changes over time, and even an excellent trading logic will eventually stop working as market conditions shift. This issue has long troubled many traders and EA developers.
One approach to addressing this problem is to continuously optimize the trading logic based on recent market behavior.
Gold Sparrow is also a personal experimental project created to explore this challenge, and it has not yet passed a sufficiently long forward-testing period.
By setting the parameter “UseRecentModel” to true, the EA can automatically download a newly trained model based on recent market data.
Gold Sparrow is built by training LightGBM on 15 years of XAUUSD H1 data.
By incorporating many channel‑based features, the EA is designed to better understand the current price position within the market’s waves.
It trades the same way regardless of the chart timeframe used.
Recommended broker: A broker like IC Markets that uses GMT+3 during summer time and GMT+2 during winter time.
■ How to install the new model
In MT5, go to Tools → Options → Expert Advisors and add
"https://greentrailns-stack.github.io/MetaTrader/gold_sparrow_model.json"
to the list of allowed URLs for WebRequest.
After that, attach the EA to a chart, and the file gold_sparrow_model.json will be downloaded into the Files folder inside the Common directory.
When the parameter UseRecentModel is set to true, the EA will use the downloaded model for trading.(You cannot run a backtest unless the model has been downloaded.)
While Gold Sparrow is running, it will also automatically update the model at 1:30 MT5 time each day if a new version is available.
■ Parameter Description
OrderIntervalMinutes — This filter prevents the EA from placing a new order unless the number of minutes specified here has passed since the previous order was sent.
■This EA is programmed to close a position if it has made a profit 4 hours and 55 minutes after the order is placed.
If the profit/loss remains negative after 4 hours and 55 minutes, the position will be closed the moment a profit equal to the number of lots multiplied by the MinProfit parameter is reached.
If your order is 0.01 lots and your MinProfit is 100, the order will be closed with a profit of 100 yen if your account is a yen account, and 100 cents if your account is a dollar account. For Micro accounts, please adjust your MinProfit as needed.
If 8 hours have passed since the order was placed, the transaction will be closed even if the profit/loss is negative.
