Can you advise how I would reference the Master Instrument in the initialize method for the purposes of multi time period strategy testing?
This is what I have:
protectedoverridevoid Initialize()
{
MainInstrument = "$EURJPY";
Add(MainInstrument,PeriodType.Second, 1, MarketDataType.Bid);
I would prefer not to have to have to manually recode and recompile the strategy every time I want to test the strategy on a new instrument.
Thanks for your time,
Ian

Not sure what you are saying here. The Plots and any Lines are setup in the Initialize() event, and their parameters can all be changed. Why do you think that any other parameter cannot be changed just because it is called in the Initialize() method? The PropertyGrid always shows the default value, when you first open the PropertyGrid, before you change the value. That is the purpose of a default value for the backing store.
Comment