Skip to content

Subscriber

Jiowcl edited this page Dec 20, 2020 · 14 revisions

Subscriber Options for MT4/MT5

Properties Default Value Description
Server tcp://localhost:5559 Subscribe the Publisher server IP address
ServerDelayMilliseconds 300 Subscriber from Publisher delay milliseconds
ServerReal false Under real server
SignalAccount Subscribe the Publisher MT4/5 account
MinLots 0.00 Limit the minimum lots
MaxLots 0.00 Limit the maximum lots
PercentLots 100 Lots Percent from Publisher lots
Slippage 3 Order Slippage
AllowOpenTrade true Allow open a new order
AllowCloseTrade true Allow close a order
AllowModifyTrade true Allow modify a order
AllowSymbols Allow trading Symbols
InvertOrder false Invert original orders
MinFreeMargin 0.00 Minimum free margin to open a new order
SymbolPrefixAdjust Adjust the Symbol Name between A broker and B broker
DebugOutput true Debug Output Message

Subscriber Options for MT5

Properties Default Value Description
Deviation 10 Order Deviation
Magic 168168168 Order Magic
AllowMaxOrders Allow Max Open Orders (Default is no limit)
AllowMaxPendingOrders Allow Max Open Pending Orders (Default is no limit)

Example

Subscribe the order from Computer IP address 192.168.50.61.

Server = tcp://192.168.50.61:5559

Execute on real account.

ServerReal = true

Copy Symbol EURUSD from Publisher.

AllowSymbols = EURUSD

Copy Symbol EURUSD and USDJPY from Publisher.

AllowSymbols = EURUSD,USDJPY

Adjust Symbol Prefix from Publisher, copy the order EURUSDq as EURUSDx.

SymbolPrefixAdjust = q=x

Invert original orders, copy the order Buy EURUSD as Sell EURUSD.

InvertOrder = true

Development

Subscriber examples

Clone this wiki locally