I have the following setup:
- daily default time frame on a stock (primary time frame)
- 5 days time frame on the same stock (2nd time frame)
I compute on the 2nd time frame the Abs(Close-Open), using "BarsInProgress == 1"
As a consequence, it seems like that:
- when I am in "BarsInProgress == 0", the dataseries value is set to 0 (and not "empty").
- if I want to compute a moving average on the last x values of Abs(Close-Open), the result is obviously incorrect (it includes the "0" in the computation).
How can i solve that problem? Is there a way to define a DataSeries for a specific time frame (in my case my secondary, asking to store a value only every 5 bars)?
Thank you very much,
Best
Nicolas
Comment