Unfortunately, this doesn't work - it gives a compiler error:
"An object reference is required for the non-static field, method or property NinjaTrader.Cbi.Instrument.MasterInstrument.get"
It looks like to get Instrument, you have to use bars.Instrument inside method OnBarUpdate.
I don't want to do this. I want to set a private const TICK_VALUE_DOLLARS at the top of my strategy class. I want it to use whatever Instrument is associated with the default data series for this strategy. So how do I do this?

Comment