Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

Trading Conditions Monitor - Gold, Forex and Synthetics - indicator for MetaTrader 5

Blessing Samuel Olasunkanmi
Blessing Samuel Olasunkanmi
Forex trader, MQL5 developer and founder of OlaDigital Nexus Framework, a registered Nigerian business focused on programming, trading and e-learning.
Views:
16
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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.
News Guard — news filter and slippage log for your existing EA News Guard — news filter and slippage log for your existing EA

A bolt-on module (.mqh) plus a ready integration example: a news filter that keeps your EA out of new entries around economic releases — using only the built-in MT5 calendar, no DLL and no WebRequest — and a slippage log that records, for every fill, the difference between the price you asked for and the price you got.

Tester Memo Helper — Strategy Tester report to verification memo Tester Memo Helper — Strategy Tester report to verification memo

A script that reads an MT5 Strategy Tester report (HTML) — and, if you give it one, the tester log — and writes a short verification memo: the key figures in one place, each compared against pass/check criteria that you set yourself, plus a count of problem-like lines in the log with samples.

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

MACD Signals MACD Signals

Indicator edition for new platform.