I would like to know how I can point to a different indicator based on the instrument in OnStartUp.
Because I need to point to different indicators based on the instrument which all share the same name except ending in the MasterInstrument.Name it would be easier to have one script that allows for each instrument instead of creating one for each instrument.
For example instead of using the indicator like so from within the code.
this.IndicatorES().Value
I guess the question is how do I combine the this.Indicator+Instrument.MasterInstrument.Name+() .Value in OnStartUp and then refer to it within the code later?
Hopefully this is clear.
Regards,
suprsnipes
Comment