Class CopyFactoryStrategySubscription
- java.lang.Object
-
- cloud.metaapi.sdk.clients.copy_factory.models.CopyFactoryStrategySubscription
-
public class CopyFactoryStrategySubscription extends Object
CopyFactory strategy subscriptions
-
-
Field Summary
Fields Modifier and Type Field Description StringcloseOnlyOptional setting wich instructs the application not to open new positions, ornull. 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).DoublemaxLeverageOptional setting indicating maximum leverage allowed when opening a new positions, ornull.CopyFactoryStrategyMaxStopLossmaxStopLossOptional stop loss value restriction, ornullDoublemaxTradeRiskOptional max risk per trade, expressed as a fraction of 1, ornull.DoublemultiplierOptional subscription multiplier ornull, default is 1xCopyFactoryStrategyNewsFilternewsFilterOptional news risk filter configuration, ornullStringreduceCorrelationsOptional 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.StringstrategyIdId of the strategy to subscribe toCopyFactoryStrategySymbolFiltersymbolFilterOptional symbol filter, ornull.
-
Constructor Summary
Constructors Constructor Description CopyFactoryStrategySubscription()
-
-
-
Field Detail
-
strategyId
public String strategyId
Id of the strategy to subscribe to
-
multiplier
public Double multiplier
Optional subscription multiplier ornull, default is 1x
-
skipPendingOrders
public Boolean skipPendingOrders
Optional flag indicating that pending orders should not be copied, ornull. Default is to copy pending orders
-
closeOnly
public String closeOnly
Optional setting wich instructs the application not to open new positions, ornull. 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). One of by-position, by-symbol or leave empty to disable this setting.
-
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
Optional symbol filter, ornull. Can be used to copy only specific symbols or exclude some symbols from copying
-
newsFilter
public CopyFactoryStrategyNewsFilter newsFilter
Optional 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 setting indicating maximum leverage allowed when opening a new positions, ornull. Any trade which results in a higher leverage will be discarded
-
-