I have a few related questions: Can we use SetPlotValue and GetPlotValue to pass values from one strategy to another strategy?Hello orad,Hi, how is AddIndicator different from SetPlotValue/GetPlotValue? Can you please point me to some docs on them in the wikis if there is any? Thanks!
AddIndicator - allows your code to create an instance of an indicator with certain inputs and access the output values of this indicator programmatically, without physically applying this indicator to a chart.
SetPlotValue, GetPlotValue - allows sending information from an existing on chart instance of a signal or indicator to the receiving indicator applied to the same chart. Helps to avoid excessive programming and eliminate discrepancies between indicator and signal.
If I have an object of type ISeries in one strategy, is there any way to use it directly in another strategy? I'm trying to avoid using shared function here because I don't want the function instance and all calculations to be duplicated in the two strategies that use it.
I know strategies on the same chart are run in the same synchronization context. With that in mind, if using global variables such as by using a ConcurrentDictionary how would you make sure the shared ISeries is initialized with values first before being used by the other strategy?
Thanks!