Watch how to download trading robots for free
Find us on Twitter!
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
Scripts

SpreadClock - your broker's spread by hour and weekday from real ticks - script for MetaTrader 5

PROSPRA IQ ENTERPRISES (PTY) LTD
PROSPRA IQ ENTERPRISES (PTY) LTD
  • Founder, MQL5 developer and strategy tester at  PROSPRA IQ ENTERPRISES (PTY) LTD
  • South Africa
  • 335
MQL5 developer and strategy tester, South Africa (Prospra IQ Enterprises). I build Expert Advisors, indicators, trade managers and prop-firm risk guards for MetaTrader 5 and 4, and convert MT4 code to MT5.
Views:
34
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

When is your broker's spread cheap, and when does it blow out? SpreadClock reads the real bid/ask tick history of one or more symbols for the last N days and tells you. It places no trades.XAUUSD spread by server hour

For every server hour it reports:

  • the number of ticks
  • average, median and 95th-percentile spread in points
  • the average spread as % of price (the cost of one round trip)

plus the cheapest and the most expensive hour and a weekday profile.

Use it to choose an EA's trading window, to set a realistic max-spread filter, or to check a broker before going live.

Example (Deriv XAUUSD, 20 days, 7.6 million ticks): about 15 points for most of the day, 28-35 points around the daily rollover (2.3x normal). An EA that enters at the rollover pays more than twice the normal cost.

Inputs: Symbols (comma list, "" = chart symbol), Days, MaxTicksPerHour (sample cap per hour), OutFile.

Output: Experts tab and MQL5\Files\SpreadClock.txt. Times are server time.

Daily P/L by Magic Number - per-EA profit table for today, week and month Daily P/L by Magic Number - per-EA profit table for today, week and month

On-chart table that shows how much each Expert Advisor (magic number) made or lost today, this week and this month, with closed and floating profit, number of closed trades today and the intraday drawdown. Manual trades (magic 0) get their own row and a TOTAL row sums the whole account. MT5 only shows one account-wide balance, so when several EAs trade together you cannot see which one is carrying the day or bleeding. Give your magic numbers readable names ("1001=Breakout;1002=Grid"), choose the corner and theme, and decide whether floating profit is included. Read-only: it never opens, modifies or closes a trade, and it works in the Strategy Tester too (it reads the tester's own deals), so you can try it before using it on a demo or live account. No DLLs, no web requests.

Currency Exposure and Leverage Monitor Currency Exposure and Leverage Monitor

Splits all open positions into currencies and shows the net exposure per currency in account money, the effective leverage of the account and how much a 1% currency move would change your equity.

BotWatchdog - phone alerts when your EAs silently stop working BotWatchdog - phone alerts when your EAs silently stop working

Push notifications when the connection drops, algo trading is switched off, an EA leaves its chart, the account changes, a position has no stop, equity or margin hit a limit - plus a daily heartbeat.

SessionEdgeTester - does a time-of-day rule beat spread and swap? SessionEdgeTester - does a time-of-day rule beat spread and swap?

Tests "buy at hour X, exit Y hours later" on your broker's own history after spread, commission and swap, with an out-of-sample split, weekday/year breakdown and an all-hours baseline.