Trading Conditions Monitor for Gold, Forex, and Synthetics
Info
The Trading Conditions Monitor for Gold, Forex, and Synthetics is a Indicator for MetaTrader 5 that many losing trades are not caused by a bad entry, but by bad conditions: a wide spread at rollover, a news spike, a dead market, or a day that has already moved its full range. Trading Conditions Monitor checks these conditions every second and shows the result in one clear status, with the reason.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Trading Conditions Monitor for Gold, Forex, and Synthetics
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
Many losing trades are not caused by a bad entry, but by bad conditions: a wide spread at rollover, a news spike, a dead market, or a day that has already moved its full range.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.
Description & Settings
Related: Seasonality Heatmap with T-Statistics: Identifying Optimal Trading Hours and Days - another powerful indicator for MetaTrader 5 traders.
Many losing trades are not caused by a bad entry, but by bad conditions: a wide spread at rollover, a news spike, a dead market, or a day that has already moved its full range. Trading Conditions Monitor checks these conditions every second and shows the result in one clear status, with the reason.Also recommended: Pantos Algo Session Boxes: Visualizing Key Trading Sessions - similar indicator with strong performance on MetaTrader 5.
It works on every symbol and is tuned especially for gold (XAUUSD), where spread, sessions and news matter the most.
The indicator gives information only. It does not trade and it does not give buy or sell signals.
STATUS
- GOOD CONDITIONS - spread, session, volatility and news are OK
- CAUTION - outside London / New York, very quiet market, or the average daily range is already reached
- AVOID TRADING - spread too high, rollover window, volatility spike, high-impact news, or market closed
The reason is always shown under the status. An optional alert tells you when the status changes.
SPREAD
- Spread now, today's average and today's maximum
- Gold: the limit is in PRICE (for example 0.50), so it means the same on brokers with 2 or 3 digits
- Forex: the limit is in points
SESSION AND ROLLOVER
- Current session: London, New York, the London + New York overlap, or Asia / off hours (GMT hours, adjustable)
- Countdown to the next London or New York open (weekends are skipped)
- Rollover warning around the broker's server midnight, when spreads are usually widest
VOLATILITY
- Current ATR compared with its average: QUIET / NORMAL / HIGH / SPIKE, with a bar
- Today's range compared with the average daily range (last 14 days), with a bar - useful to avoid chasing a move that has already happened
HIGH-IMPACT NEWS
- Next high-impact news from the MQL5 economic calendar, with a countdown
- AVOID status a set number of minutes before and after the release
- Currencies are chosen automatically: USD for gold, both currencies for forex pairs (for example EUR and USD on EURUSD), or set your own list
WORKS ON ALL SYMBOLS
- Gold (XAUUSD): full check - spread in price, sessions, rollover, volatility, daily range, USD news. Best use.
- Forex pairs: full check with news for both currencies of the pair.
- 24/7 synthetic indices and crypto: detected automatically. Sessions, rollover, weekend and news are switched off, and the status uses volatility and spread spikes (above 2x today's average spread).
INPUTS
- Spread: gold max spread in price, forex max spread in points
- Session: London and New York open/close (GMT hours), rollover window in minutes
- Volatility: ATR period, bars for average ATR, spike and quiet ratios, days for average daily range
- News: on/off, currencies (empty = automatic), minutes before and after
- Panel: position, width, alert on status change
NOTES
- The economic calendar is not available in the Strategy Tester, so the news section works on live charts only.
- Session hours are in GMT; change them if you use different session times.
HOW TO USE
1. Copy the file to MQL5\Indicators and compile it.
2. Attach it to any chart (gold M5 or M15 recommended).
3. Check the status before you trade.
You may also like: Symbol Trading Hours: Broker Sessions, Countdown, and Off-Hours Bars - excellent alternative for indicator users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.10"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 0
#property indicator_plots 0
input group "=== Spread ==="
input double InpGoldMaxSpread = 0.50;
input int InpMaxSpreadPts = 30;
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.