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.

The selector syntax follows the MetaQuotes pattern conventions. Separate parameters with semicolons.

Parameters Description
sec MT4 security or symbol path. Supports comma-separated paths; masks can be * or end with \*.

sec=* — all securities selected for Bridge processing.
sec=Forex\* — paths under Forex\*.
sec=!Forex\*,* — all paths except Forex\*.
sec=!Forex-MET\*,Forex\* — paths under Forex\*, excluding Forex-MET\*.
sym MT4 symbol name or pattern. Supports comma-separated patterns. A mask cannot be only * or end with \*.

sym=EURUSD — the EURUSD symbol.
sym=*.pro — symbols with the .pro suffix.
sym=C*\Fo*x*\EUR* — symbols beginning with EUR, under paths beginning with Fo and containing x, within a path beginning with C.
g MT4 group name or pattern. Supports comma-separated patterns.

g=* — all groups.
g=ABC\* — groups matching ABC\*.
g=!ABC\*,* — all groups except those matching ABC\*.
g=!ABC-*-B,ABC\* — groups matching 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 First component (R) of the client login color displayed as R,G,B, for example color=223 for 223,0,0. 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 *.