At the start of an indicator what is the best way to determine 2 trading days back? I want to pre-process the bar data before the indicator starts receiving bar data.
I tried Bars.GetDayBar(2) but if the chart has not already built that past data I get a null. Right now I am using calendar days back from current date time to know when to start but this method is not perfect.
Comment