Module 01 · How an EA works · Lesson 05
Brokers, spreads, server time and VPS
The same EA behaves differently at different brokers. Here is what changes, and why EAs usually live on a VPS.
5 minute read
Your broker is part of your strategy
Symbol names (EURUSD vs EURUSD.m), contract sizes, minimum lot and lot step, spreads, commissions, swap and the stop level (how close a stop may sit to price) all vary by broker and account type. Read them from SymbolInfoDouble / SymbolInfoInteger instead of hard-coding them.
Server time is not your time
TimeCurrent() returns the broker's server time, which is often UTC+2 or UTC+3 and shifts with daylight saving. A session filter of "08:00–17:00" means server hours. Check your broker's offset before trusting any time rule.
Spreads widen exactly when it matters
Around rollover and major releases, spreads can be many times their normal size. A spread filter (skip new entries above N points) is cheap protection, and your backtest should use realistic costs, not the minimum quoted spread.
Why a VPS
An EA only runs while its MetaTrader terminal is open and connected. A virtual private server keeps it running when your laptop sleeps or your internet drops, ideally close to the broker's servers for lower latency. A VPS is plumbing, not an edge; it costs money, so it belongs after a strategy has survived forward testing, not before.
Takeaways
- Read symbol properties from the broker; never hard-code them.
- Time rules use server time.
- A VPS keeps the terminal running; it does not improve the rules.
Primary references
Your rules, our teaching. MarketPanda provides no strategy, no settings that “work” and no signals. Everything here is education; nothing is a recommendation to trade.
Content source: Bundled MarketPanda content.