public class CopyFactoryStrategySubscription extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
closeOnly
Optional setting wich instructs the application not to open new positions, or
null. |
Boolean |
copyStopLoss
Flag indicating whether stop loss should be copied.
|
Boolean |
copyTakeProfit
Flag indicating whether take profit should be copied.
|
Double |
maxLeverage
Optional setting indicating maximum leverage allowed when opening a new positions, or
null. |
CopyFactoryStrategyMaxStopLoss |
maxStopLoss
Optional stop loss value restriction, or
null |
Double |
maxTradeRisk
Optional max risk per trade, expressed as a fraction of 1, or
null. |
Double |
maxTradeVolume
Maximum trade volume to copy, or
null. |
Double |
minTradeVolume
Minimum trade volume to copy, or
null. |
Double |
multiplier
Optional subscription multiplier or
null, default is 1x |
CopyFactoryStrategyNewsFilter |
newsFilter
Optional news risk filter configuration, or
null |
String |
reduceCorrelations
Optional setting indicating whether to enable automatic trade correlation reduction, or
null. |
Boolean |
reverse
Flag indicating that the strategy should be copied in a reverse direction, or
null |
List<CopyFactoryStrategyRiskLimit> |
riskLimits
Optional strategy risk limits, or
null. |
Boolean |
skipPendingOrders
Optional flag indicating that pending orders should not be copied, or
null. |
CopyFactoryStrategyStopOutRisk |
stopOutRisk
Optional stop out setting, or
null. |
String |
strategyId
Id of the strategy to subscribe to
|
CopyFactoryStrategySymbolFilter |
symbolFilter
Optional symbol filter, or
null. |
List<CopyFactoryStrategySymbolMapping> |
symbolMapping
Defines how symbol name should be changed when trading (e.g.
|
CopyFactoryStrategyTradeSizeScaling |
tradeSizeScaling
Trade size scaling settings, or
null. |
| Constructor and Description |
|---|
CopyFactoryStrategySubscription() |
public String strategyId
public Double multiplier
null, default is 1xpublic Boolean skipPendingOrders
null.
Default is to copy pending orderspublic String closeOnly
null. 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.public Double maxTradeRisk
null. 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 limitpublic Boolean reverse
nullpublic String reduceCorrelations
null. Possible
settings are not specified (disable correlation risk restrictions), by-strategy (limit correlations on strategy
level) or by-symbol (limit correlations on symbol level).public CopyFactoryStrategyStopOutRisk stopOutRisk
null. All trading will be terminated and positions closed once equity
drawdown reaches this valuepublic CopyFactoryStrategySymbolFilter symbolFilter
null. Can be used to copy only specific symbols or exclude some symbols
from copyingpublic CopyFactoryStrategyNewsFilter newsFilter
nullpublic 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 CopyFactoryStrategyMaxStopLoss maxStopLoss
nullpublic Double maxLeverage
null.
Any trade which results in a higher leverage will be discardedpublic List<CopyFactoryStrategySymbolMapping> symbolMapping
null) and the trades are copied using signal
source symbol namepublic CopyFactoryStrategyTradeSizeScaling tradeSizeScaling
null. By default the trade size on strategy
subscriber side will be scaled according to balance to preserve risk.public Boolean copyStopLoss
null) is to copy stop losspublic Boolean copyTakeProfit
null) is to copy take profitpublic Double minTradeVolume
null.
Trade signals with a smaller volume will not be copiedpublic Double maxTradeVolume
null.
Trade signals with a larger volume will be copied with maximum volume insteadCopyright © 2023. All rights reserved.