It is fairly straightforward to extract price data from daily, weekly & monthly timeframes and display in intraday charts, however I want to extract price data from a 5min timeframe and display it accurately in say a 60min chart without having any other charts available.
I have played around with adding symbol name + interval after a price but it does not work because of the bar referencing issue.
Specifically what I would like to achieve is as follows:-
I want to draw the hi & lo of the first 5min cash open bar on the 60min chart, however I want it to display exactly between 9:30 and 9:35 even if there is pre market data and have it updated in real time.
Then I would like to draw the the hi & lo of the first 30min cash open bar on the 60min chart and again I want it to display exactly between 9:30 and 10:00 even if there is pre market data and updated in real time.
I do not want to change the time templates at all, I want to see all pre and post market data and of course if you have index futures it is virtually 24 hours, but I'm only interested in the lines being displayed in cash open hours.
Also if you switch time frames say to a lower one 30min or whatever, you will still be able to see all the lines correctly displayed.
I would appreciate any pointers how to code this.
Robert
I have played around with adding symbol name + interval after a price but it does not work because of the bar referencing issue.
Specifically what I would like to achieve is as follows:-
I want to draw the hi & lo of the first 5min cash open bar on the 60min chart, however I want it to display exactly between 9:30 and 9:35 even if there is pre market data and have it updated in real time.
Then I would like to draw the the hi & lo of the first 30min cash open bar on the 60min chart and again I want it to display exactly between 9:30 and 10:00 even if there is pre market data and updated in real time.
I do not want to change the time templates at all, I want to see all pre and post market data and of course if you have index futures it is virtually 24 hours, but I'm only interested in the lines being displayed in cash open hours.
Also if you switch time frames say to a lower one 30min or whatever, you will still be able to see all the lines correctly displayed.
I would appreciate any pointers how to code this.
Robert
Comment