Skip to content

Symbol mapping#

Overview#

In CopyFactory you can map signals generated for one symbol to another symbol. This is commonly used to achieve compatibility between brokers with different symbol name conventions.

By default CopyFactory will deliver signals for the same symbol names as on master account. However, if you want to override this behaviour then you can specify an optional symbolMapping setting. This setting can be specified on any of the following entities:

  • strategy
  • member of a portfolio strategy
  • portfolio strategy
  • subscription

This setting is applied recursively. This means that if you specified to map EURUSDi to EURUSD in your strategy and then to map EURUSD to EURUSDm in a subsciption, then any EURUSDi signal on the master account will be copied as EURUSDm on the subscriber side.

Example (strategy)#

{
  "name": "Strategy",
  ...
  "symbolMapping": [
    {
      "from": "EURUSD.m",
      "to": "EURUSD"
    }
  ],
  ...
}

Example (member of a portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  "members": [
    {
      ...
      "symbolMapping": [
        {
          "from": "EURUSD.m",
          "to": "EURUSD"
        }
      ],
      ...
    },
    ...
  ],
  ...
}

Example (portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  "symbolMapping": [
    {
      "from": "EURUSD.m",
      "to": "EURUSD"
    }
  ],
  ...
}

Example (subscription)#

{
  "name": "Subscriber",
  ...
  "subscriptions": [
    {
      ...
      "symbolMapping": [
        {
          "from": "EURUSD.m",
          "to": "EURUSD"
        }
      ],
      ...
    },
    ...
  ],
  ...
}