Package velox.api.layer1.annotations
Annotation Interface Layer1DuplicateInstrumentsAware
The annotation is currently used only in embedded, where
RunModeHelper.isDuplicatedInstruments() is on.
Indicates that the marked strategy supports data from duplicated aliases in duplicated mode
RunModeHelper.isDuplicatedInstruments()
Without this annotation, the strategy will receive data only for the original aliases, and the settings, GUI,
indicators etc. will be the same for each duplicated alias. In this case, the strategy will not be able to effectively
interact with specific charts (sending shortcuts, change selected account etc.), or see cross-trading orders.
With this annotation, the strategy will receive data for each duplicated alias, so it can distinguish between them
and have different settings, indicators, GUI etc. for each duplicated alias.
It makes sense to use this annotation if the strategy needs to interact with specific charts or see cross-trading
orders, or distinguish between duplicated aliases and have different settings, indicators, GUI etc. for each duplicated alias.