Skip to content

Strategy trade size scaling#

About#

Using this setting you can configure how the trade signal volume is transformed to match the subscriber account.

Fields#

Name Type Required Description
mode string Yes If set to balance, the trade size on strategy subscriber will be scaled according to balance to preserve risk. If value is none, then trade size will be preserved irregardless of the subscriber balance. If value is contractSize, then trade size will be scaled according to contract size. If fixedVolume is set, then trade will be copied with a fixed volume of tradeVolume setting. If fixedRisk is set, then each trade will be copied with a trade volume set to risk specific fraction of balance as configured by riskFraction setting. Note, that in fixedRisk mode trades without a SL are not copied. Default is balance. Allowed values: none, contractSize, balance, fixedVolume, fixedRisk
tradeVolume number Fixed trade volume for use with fixedVolume trade size scaling mode
riskFraction number Fixed risk fraction for use with fixedRisk trade size scaling mode

Please note that for any of the above modes, after applying trade size scaling mode you can further adjust trade size by slave using subscription multiplier setting.

Examples#

Scale trade size by balance. E.g. if the master has balance of $10K and trading 0.01 lot the trade will be scaled to 0.1 lot for a slave with $100K balace.

{
  "mode": "balance"
}

Preserve trade size regardless of the balance or symbol contract size.

{
  "mode": "none"
}

Scale trade size by contract size. E.g. if master account has contract size of 10K for a symbol traded with 0.1 lot and slave has contract size of 100K, then slave will trade 0.01 lot.

{
  "mode": "contractSize"
}

Set fixed trade size of 0.05 lots regardless of the master trade size.

{
  "mode": "fixedVolume",
  "tradeVolume": 0.05
}

Scale trade size so that each trade of slave takes a fixed risk of 2% of available balance.

{
  "mode": "fixedRisk",
  "riskFraction": 0.02
}

Usages#