A script the terminal starts at boot reads EURUSD tick value 0.00 until terminal synchronized, then 1.00 USD

2 December 2026, 23:27
Jevon Naldo Yoshield
0
6

On 3 December one portable MetaTrader 5 build 6331 started eight times in an open market. Seven starts ran a probe script launched with the chart, each printing tick value 0.00 USD for EURUSD. The eighth waited for the connection and printed 1.00000.

The install is a MetaQuotes-Demo demo, EURUSD H1, 04:45 to 04:58 WIB. I timed each print against the terminal's journal, which stamps authorized and terminal synchronized to the millisecond.

Six prints landed 0.23 to 0.65 s before the authorized line. Heavier charts moved print and authorization together, one-for-one, from 2.3 to 3.8 s after the build line. One start printed 0.164 s after the authorized line and 0.50 s before terminal synchronized, still reading 0.00. Until then the install reports no tick value for EURUSD.

Poll before you read money. In OnInit or OnStart, loop up to 120 times on TerminalInfoInteger(TERMINAL_CONNECTED), SymbolInfoTick and SymbolInfoDouble(sym, SYMBOL_TRADE_TICK_VALUE) above zero, Sleep(500) between tries. The wait read 1.00000, 0.461 s after synchronization; five starts with the loop printed 1.00 USD, 0.07 to 0.35 s later.

One portable install, one demo server, EURUSD, build 6331, and journal milliseconds. Not another build, broker or symbol that quotes nothing.