I'm trying to add all stocks of SP500 and NQ in an indicator for Ninjatrader8 .
I found this code but it's for NT7 and doesn't work for NT8.
NinjaTrader.Cbi.InstrumentList list1 = NinjaTrader.Cbi.InstrumentList.GetObject("FOREX"); foreach (Instrument i in list1.Instruments) { Add(i.FullName, PeriodType.Minute, 5); }
Comment