Rejoignez notre page de fans
SpreadClock - your broker's spread by hour and weekday from real ticks - script pour MetaTrader 5
- Vues:
- 27
- Publié:
-
Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur 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.
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
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
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
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?
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.