I want to be able to control how many bars to load on secondary data series.
I only found one syntax that allows for "barToLoad":
AddDataSeries(string instrumentName, BarsPeriod barsPeriod, int barsToLoad, string tradingHoursName, bool? isResetOnNewTradingDay)
I want it to copy the chart's instrumentName and tradingHoursName.
I've used Instrument.MasterInstrument.Name for string instrumentName.
Is there a similar code to grab the chart's currently selected tradingHoursName?
p.s. question, the isResetOnNewTradingDay code, how exactly does that opperate?
Thanks!
Comment