Skip to content

Limit max leverage#

Overview#

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

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

Please note that this setting is applied to positions only. It does not apply to pending orders. Thus we do not recommend to use this setting with pending order copying enabled.

By default CopyFactory will copy trades regardless of the leverage they use. You can restrict the max leverage used on a subscriber 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
  • subscriber

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": "Subscriber",
  ...
  "subscriptions": [
    {
      ...
      "maxLeverage": 10,
      ...
    },
    ...
  ],
  ...
}

Example (subscriber)#

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