I did not find any overload for the Add (Bar) function to do that. I noticed that the system pivot indicator does request bars for previous day (daily bars) and passes a session argument which in principle could be a specific session of interest.
Alternatively, is there a way to create a class which implements the IDataSeries interface and hold the bars related to the specific session I am interested in? I can manually filter the bars in the strategy to create the new bar series but instead of storing it in arrays, I would like to store it in a class which implements IDataSeries so existing indicators can be used.
The context here is RTH indicators (& trading) with some indicators running 24/7. The chart of course is a 24/7 chart to keep the 24/7 indicators current.
I could of course store the bar information in an array but then will have to rewrite the indicators to accept arrays. Alternatively I could replace the non-active bars with null in the data-series (.Reset ?) but the indicators will be have to be modified to skip the null data-values.
Is there a workaround possible which does not require significant recoding?

Comment