mulambi22:
Handling Gold’s Extreme Volatility: Gold often spikes wildly during news events (e.g., FOMC or geopolitical news), leading to false signals or slippage. My backtests show great results in calm markets but huge losses during volatile periods. How do you implement effective news filters or pause trading during high-impact events? I’ve tried using Economic Calendar APIs, but integration in MQL5 is tricky for me.
Handling Gold’s Extreme Volatility: Gold often spikes wildly during news events (e.g., FOMC or geopolitical news), leading to false signals or slippage. My backtests show great results in calm markets but huge losses during volatile periods. How do you implement effective news filters or pause trading during high-impact events? I’ve tried using Economic Calendar APIs, but integration in MQL5 is tricky for me.
See this preexisting thread:
Forum on trading, automated trading systems and testing trading strategies
How to better filter false entries in trend-following strategies on XAUUSD during volatile periods?
Wei Xin Sun, 2026.02.08 14:18
Hello everyone in the Trading Systems section! I'm trying to improve a simple trend-following approach specifically for XAUUSD (Gold), and one big issue I'm facing is too many false signals/entries during high volatility (news events, sudden spikes, choppy ranges).
What I've tried so far:
Using a higher timeframe filter (like D1 to confirm overall trend direction).
Adding some basic volatility check to skip entries when market is too wild.
Strict risk rules (fixed SL/TP, daily drawdown cap).
But in backtests (using Every tick based on real ticks where possible), false breakouts still cause unnecessary losses or whipsaws.
Questions for the community:
What additional filters or conditions do you find most effective to reduce false entries on gold in volatile times? (e.g., ATR-based, time-of-day restrictions, news avoidance logic, or something else?)
How do you balance "not missing good trends" vs "avoiding bad trades"? Any favorite indicators or code ideas?
In Strategy Tester, do you always trust "Every tick based on real ticks" results for gold, or do you cross-check with different modes/brokers?
I'm open to any suggestions, code snippets, or experiences you've had with similar setups. No promotion here — just trying to learn and make better decisions in automated trading.
Thanks a lot for any input! Looking forward to your thoughts.
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Subject: Gold BOT on MT5
Hi everyone in the MQL5 community,
I’m currently developing an Expert Advisor (EA) called ConvexCap GoldBot for MetaTrader 5 (MT5), specifically tailored for trading XAUUSD (gold). The goal is to create an automated scalping strategy that capitalizes on gold’s high volatility, focusing on short-term price movements around key psychological levels (like round numbers such as $2,000 or $2,500) and incorporating basic trend-following elements with indicators like Moving Averages or RSI for entry/exit signals. I’m building it in MQL5, aiming for compatibility with low-spread brokers and small accounts to minimize drawdowns.
So far, I’ve got a basic framework set up: it scans for breakouts or reversals on M5 or M15 timeframes, places trades with predefined lot sizes, and includes simple risk management like stop-loss based on ATR. However, I’m running into several challenges and could use some advice or code snippets from experienced devs here:
Handling Gold’s Extreme Volatility: Gold often spikes wildly during news events (e.g., FOMC or geopolitical news), leading to false signals or slippage. My backtests show great results in calm markets but huge losses during volatile periods. How do you implement effective news filters or pause trading during high-impact events? I’ve tried using Economic Calendar APIs, but integration in MQL5 is tricky for me.
Psychological Level Detection: I’m trying to code logic for trading around round numbers, but the bot sometimes gets caught in fakeouts. Any tips on improving detection of support/resistance or adding confirmation with volume/price action?
Optimization and Overfitting: In the Strategy Tester, I get curve-fitted results that don’t hold up in forward testing. What’s the best way to optimize parameters (e.g., MA periods, RSI thresholds) without overfitting? Should I use Walk-Forward Optimization or genetic algorithms more effectively?
Slippage and Execution Issues: On live/demo accounts, orders aren’t filling as expected due to gold’s fast moves. Suggestions for better order management, like using ECN mode or adjusting deviation settings?
Small Account Compatibility: Targeting accounts under $1,000, but lot sizing and margin requirements are causing issues. How to make it more conservative while still profitable?
If anyone has open-source gold EAs or similar projects on GitHub/CodeBase that I can learn from, that’d be awesome. Happy to share my current code if needed (it’s about 200 lines so far). Thanks in advance for any help—excited to iterate on this!
Best,
mulambi from Johannesburg