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.
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.