How can I create backward look bars? Here is what I am looking for:
Let's take 5 min bars. Each bar starts at 5 min intervals: 9:30, 9:35, 9:40. etc...
However, suppose it is 10:03:00 now and I want to plot the 5 min candle from 9:58:00 until now (which is 10:03:00).
The same applies to tick charts. Suppose I want to create a 500 tick chart that starts exactly 500 ticks ago and ends now.
How would this be accomplished?
Many thanks in advance!
Comment