Skip to content

Routing Rules

Bridge routing rules select the MT4 orders to process and the XCore Connector Account used for execution. Use sec, sym, g, c, and color to match MT4 instruments or accounts, and acc to select the XCore Connector Account.

Separate parameters with semicolons. In patterns, * matches any characters and a leading ! excludes the names it matches. MT4 securities and groups are plain names, not paths, so masks do not use \.

Parameters Description
sec MT4 security name or pattern. Supports comma-separated patterns.

sec=* — all securities selected for Bridge processing.
sec=Forex* — securities whose names begin with Forex.
sec=!Forex*,* — all securities except those beginning with Forex.
sec=!Forex-MET*,Forex* — securities beginning with Forex, excluding those beginning with Forex-MET.
sym MT4 symbol name or pattern. Supports comma-separated patterns.

sym=EURUSD — the EURUSD symbol.
sym=*.pro — symbols with the .pro suffix.
g MT4 group name or pattern. Supports comma-separated patterns.

g=* — all groups.
g=ABC* — groups whose names begin with ABC.
g=!ABC*,* — all groups except those beginning with ABC.
g=!ABC-*-B,ABC* — groups beginning with ABC, excluding names beginning with ABC- and ending with -B.
c MT4 client login. Supports one login or comma-separated logins.

c=10000 — login 10000.
c=10000,20000 — logins 10000 and 20000.
color MT4 client login color as a numeric code from 0 to 255 (Bridge versions above 9.22), for example color=223 for a login whose color is 223,0,0. Supports a trailing * mask: color=22* selects colors 220–229. See the account color example.
acc XCore Connector Account used for execution, for example acc=Account1.

Note: Each rule's Value field is limited to 127 characters.

Note: For group matching, the MT4 Bridge first compares the part of the pattern before * with the group name. If that part matches the complete group name, the Bridge accepts the match and ignores the remaining pattern after *.