Skip to content

Limit max leverage#

Overview#

In CopyFactory you can limit max leverage used on a subscriber account.

If a new trade is going to exceed maximum leverage, then the trade size will be reduces or the trade will not be placed.

By default CopyFactory will copy trades regardless of the leverage they use. You can restrict the max leverage used on a subscriber account by specifying an optional maxLeverage setting. This setting can be specified on any of the following entities:

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

This setting is overridable. This means that CopyFactory will use the last setting found in subscription chain.

Example (strategy)#

{
  "name": "Strategy",
  ...
  "maxLeverage": 10,
  ...
}

Example (member of a portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  "members": [
    {
      ...
      "maxLeverage": 10,
      ...
    },
    ...
  ],
  ...
}

Example (portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  "maxLeverage": 10,
  ...
}

Example (subscription)#

{
  "name": "Account",
  ...
  "subscriptions": [
    {
      ...
      "maxLeverage": 10,
      ...
    },
    ...
  ],
  ...
}

Example (account)#

{
  "name": "Account",
  ...
  "maxLeverage": 10,
  ...
}