I'm using multi-instrument strategy. I'm calling a custom made indicator MyIndicator() from the strategy, but i need to specify the instrument with will be use for the calculations. I tried to do it in the indicator with this code: (this.Instrument.MasterInstrument.Name = "TF 12-15"; ), but I'm sure this is not the right way to do that. May main instrument is (TF 12-15) and the second are ^ADV and ^DECL. When the BarsInProgress == 0 , I call MyIndicatorer(),and it gets the result for he TF 12-15, but when BarsInProgress > 0, i need to do call something like that: MyIndicator("TF 12-15") to force the indicator to make calculation for TF. My question is: is it possible to do that and how.
Thank you.
Comment