Skip to content

Publisher

Jiowcl edited this page Jul 8, 2021 · 8 revisions

Publisher Optins for MT4/MT5

Properties Default Value Description
Server tcp://*:5559 Bind the Publisher server IP address
ServerDelayMilliseconds 300 Push the order to subscriber delay milliseconds
ServerReal false Under real server
AllowSymbols Allow trading Symbols
OnlyInMarketWatch true Only push symbols in market watch
DebugOutput true Debug Output Message

Publisher Response

Properties Type Description
Login Integer Login
Symbol String Symbol name
Ask Double Ask price
Bid Double Bid price
Spread Integer Spread value in points

Example

Bind a IP address for MT4/MT5 login under Cloud Computer IP address 172.6.50.1.

Server = tcp://172.6.50.1:5559

Push a Symbol EURUSD.

AllowSymbols = EURUSD

Push a Symbol EURUSD and USDJPY.

AllowSymbols = EURUSD,USDJPY

Push a Symbol by MarketWatch window.

OnlyInMarketWatch = true

If the MarketWatch window displays the Symbol EURUSD, USDJPY, USDCHF, EURJPY, the equivalent is as follows:

AllowSymbols = EURUSD,USDJPY,USDCHF,EURJPY

Clone this wiki locally