What I actually want to do is hard code my parameters in the code for each of the symbols I trade, that way I don't have to enter them in the parameters each time I run a strategy. But I'm not sure how to find out which symbol the strategy is running with.
EDIT:
I just found this:
Print("Instrument.MasterInstrument.Name=" + Instrument.MasterInstrument.Name);
I put it in initialize and I backtest a strategy. This is odd, it prints:
Instrument.MasterInstrument.Name=ES
Instrument.MasterInstrument.Name=ES
Instrument.MasterInstrument.Name=NQ
I'm running my strategy against NQ. Why would it print ES twice?

Comment