So, if I understand this correctly, the three base data sizes for construction of Bars objects are the tick, minute, and day. If you add a 10-minute dataseries to a chart, then, internally it is constructing each of those 10-minute bars from ten 1-minute bars. Is it possible to do this construction by hand, in an indicator?
For instance, I'm trying to make an indicator that could be applied to a "close of 1 minute" input series, and the plot that displayed would be exactly the same as plotting a "close of 10 minutes" series (as a line, not the candlestick). I know you could just add a 10-minute dataseries to the indicator internally to achieve this, but that's not what I'm after.
It should be possible to construct the "close of 10 minutes" series by hand, by picking off the closing value of every tenth 1-minute bar, and then setting the plot value to that. I think the problem I'm running into is that the plot is synchronized to the input series, so it expects a new bar value every 1 minute, instead of every 10 minutes.
Is there anything that can be done with the timing/synchronization of the plot, and when it expects a new value?
Any help or advice would be greatly appreciated!
thanks,
FishBowl
Comment