I need support to get highs and lows from previous days session (up to 5 days).
I'm trying to get the info through code Bars.GetDayBar() but I'm constantly receiving the error "You are accessing an index with a value that is invalid since it is out-of-range" even with filter: if (Bars.GetDayBar(5) != null) that should avoid this error and also 30 days of loaded bar data.
Is there another alternative?
Comment