Skip to content

Disable take profit copying#

Overview#

In CopyFactory you can disable take profit copying to a subscriber.

By default CopyFactory will copy take profits. However, if you want to disable this behaviour then you can specify a value of false for an optional copyTakeProfit 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 additive. This means that CopyFactory will skip copying take profit if the setting is set to false on any object in the subscription chain. If the setting is set to true or not specified on all objects in subscription chain, then the take profit will be copied by CopyFactory.

Example (strategy)#

{
  "name": "Strategy",
  ...
  "copyTakeProfit": false,
  ...
}

Example (member of a portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  "members": [
    {
      ...
      "copyTakeProfit": false,
      ...
    },
    ...
  ],
  ...
}

Example (portfolio strategy)#

{
  "name": "Portfolio strategy",
  ...
  "copyTakeProfit": false,
  ...
}

Example (subscription)#

{
  "name": "Subscriber",
  ...
  "subscriptions": [
    {
      ...
      "copyTakeProfit": false,
      ...
    },
    ...
  ],
  ...
}

Example (subscriber)#

{
  "name": "Subscriber",
  ...
  "copyTakeProfit": false,
  ...
}