Class CopyFactoryStrategyUpdate
- java.lang.Object
-
- cloud.metaapi.sdk.clients.copy_factory.models.CopyFactoryStrategyUpdate
-
- Direct Known Subclasses:
CopyFactoryStrategy
public class CopyFactoryStrategyUpdate extends Object
CopyFactory strategy update
-
-
Field Summary
Fields Modifier and Type Field Description CopyFactoryStrategyComissionSchemecommissionSchemeCommission scheme allowed by this strategy, ornullStringconnectionIdId of the MetaApi account providing the strategyStringdescriptionLonger strategy human-readable descriptionCopyFactoryStrategyMagicFiltermagicFilterOptional magic (expert id) filter, ornullDoublemaxLeverageOptional max leverage risk restriction.CopyFactoryStrategyMaxStopLossmaxStopLossOptional stop loss value restriction, ornullDoublemaxTradeRiskOptional max risk per trade, expressed as a fraction of 1, ornull.StringnameStrategy human-readable nameCopyFactoryStrategyNewsFilternewsFilterNews risk filter configuration, ornulldoubleplatformCommissionRateCommission rate the platform charges for strategy copying, applied to commissions charged by provider.StringpositionLifecyclePosition detection mode.StringreduceCorrelationsOptional setting indicating whether to enable automatic trade correlation reduction, ornull.List<CopyFactoryStrategyRiskLimit>riskLimitsOptional strategy risk limits, ornull.BooleanskipPendingOrdersOptional flag indicating that pending orders should not be copied, ornull.CopyFactoryStrategyStopOutRiskstopOutRiskOptional stop out setting, ornull.CopyFactoryStrategySymbolFiltersymbolFilterSymbol filters which can be used to copy only specific symbols or exclude some symbols from copying, ornullCopyFactoryStrategyTimeSettingstimeSettingsSettings to manage copying timeframe and position lifetime, ornull.
-
Constructor Summary
Constructors Constructor Description CopyFactoryStrategyUpdate()
-
-
-
Field Detail
-
name
public String name
Strategy human-readable name
-
description
public String description
Longer strategy human-readable description
-
positionLifecycle
public String positionLifecycle
Position detection mode. Allowed values are netting (single position per strategy per symbol), hedging (multiple positions per strategy per symbol)
-
connectionId
public String connectionId
Id of the MetaApi account providing the strategy
-
skipPendingOrders
public Boolean skipPendingOrders
Optional flag indicating that pending orders should not be copied, ornull. Default is to copy pending orders
-
commissionScheme
public CopyFactoryStrategyComissionScheme commissionScheme
Commission scheme allowed by this strategy, ornull
-
platformCommissionRate
public double platformCommissionRate
Commission rate the platform charges for strategy copying, applied to commissions charged by provider. This commission applies only to accounts not managed directly by provider. Should be fraction of 1
-
maxTradeRisk
public Double maxTradeRisk
Optional max risk per trade, expressed as a fraction of 1, ornull. If trade has a SL, the trade size will be adjusted to match the risk limit. If not, the trade SL will be applied according to the risk limit
-
reduceCorrelations
public String reduceCorrelations
Optional setting indicating whether to enable automatic trade correlation reduction, ornull. Possible settings are not specified (disable correlation risk restrictions), by-strategy (limit correlations on strategy level) or by-symbol (limit correlations on symbol level)
-
stopOutRisk
public CopyFactoryStrategyStopOutRisk stopOutRisk
Optional stop out setting, ornull. All trading will be terminated and positions closed once equity drawdown reaches this value
-
symbolFilter
public CopyFactoryStrategySymbolFilter symbolFilter
Symbol filters which can be used to copy only specific symbols or exclude some symbols from copying, ornull
-
newsFilter
public CopyFactoryStrategyNewsFilter newsFilter
News risk filter configuration, ornull
-
riskLimits
public List<CopyFactoryStrategyRiskLimit> riskLimits
Optional strategy risk limits, ornull. You can configure trading to be stopped once total drawdown generated during specific period is exceeded. Can be specified either for balance or equity drawdown
-
maxStopLoss
public CopyFactoryStrategyMaxStopLoss maxStopLoss
Optional stop loss value restriction, ornull
-
maxLeverage
public Double maxLeverage
Optional max leverage risk restriction. All trades resulting in a leverage value higher than specified will be skipped
-
magicFilter
public CopyFactoryStrategyMagicFilter magicFilter
Optional magic (expert id) filter, ornull
-
timeSettings
public CopyFactoryStrategyTimeSettings timeSettings
Settings to manage copying timeframe and position lifetime, ornull. Default is to copy position within 1 minute from being opened at source and let the position to live for up to 90 days
-
-