public class CopyFactoryAccountUpdate extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
closeOnly
Optional setting which instructs the application not to open new positions. by-symbol means that it is still
allowed to open new positions with a symbol equal to the symbol of an existing strategy position (can be used
to gracefuly exit strategies trading in netting mode or placing a series of related trades per symbol).
|
String |
connectionId
Id of the MetaApi MetaTrader account this copy trading account is connected to
|
Double |
maxLeverage
Optional setting indicating maxumum leverage allowed when opening a new positions, or
null. |
Double |
minTradeAmount
Optional value of minimal trade size allowed, expressed in amount of account currency, or
null. |
String |
name
Account human-readable name
|
List<String> |
phoneNumbers
Optional phone numbers to send sms notifications to, or
null. |
Double |
reservedMarginFraction
Optional fraction of reserved margin to reduce a risk of margin call, or
null. |
List<CopyFactoryStrategyRiskLimit> |
riskLimits
Optional account risk limits, or
null. |
CopyFactoryStrategyStopOutRisk |
stopOutRisk
Pptional stop out setting, or
null. |
List<CopyFactoryStrategySubscription> |
subscriptions
Strategy subscriptions
|
| Constructor and Description |
|---|
CopyFactoryAccountUpdate() |
public String name
public String connectionId
public Double reservedMarginFraction
null. Default is to reserve
no margin. We recommend using maxLeverage setting instead. Specified as a fraction of balance thus the value
is usually greater than 1public List<String> phoneNumbers
null. Leave empty to receive no sms notificationspublic Double minTradeAmount
null.
Can be useful if your broker charges a fixed fee per transaction so that you can skip small trades with
high broker commission rates. Default is 100public String closeOnly
public CopyFactoryStrategyStopOutRisk stopOutRisk
null. All trading will be terminated and positions closed once equity
drawdown reaches this valuepublic List<CopyFactoryStrategyRiskLimit> riskLimits
null. You can configure trading to be stopped once total drawdown
generated during specific period is exceeded. Can be specified either for balance or equity drawdownpublic Double maxLeverage
null.
Any trade which results in a higher leverage will be discarded.public List<CopyFactoryStrategySubscription> subscriptions
Copyright © 2021. All rights reserved.