I am trying to create a custom data series containing only specific bars from the primary series. Indicator analysis and sync to the primary would be needed. This is in effect a custom time scale.
How can the mybars data be put in a data series to be usable in indicator and sync operations? The commented out section fails as is. It was run on SPY 5 min bars.
CODE:
Please log in to see this code.