Plotting time tick labels
-
Is it possible to plot time tick labels (for intra-day data). I have loaded a file containing a single day of minute data, but no labels appear on the x-axis. The cursor is also not picking up any minute data (only the day).
I have checked that the file is being read in correctly and the hour/minute/second parameters are being updated on each bar. -
-
@backtrader Thanks for your rapid reply:
*It is not the matplotlib version problem (I was the one who sent that original post and have changed matplotlib so that it now prints out x axis)
*It is not fmt_x_ticks or fmt_x_data (your other suggestion).
I have three days of minute data. I get plots of the daily ticks and labels, but not the minute ticks and labels. I have realized that although the data is being read in for some reason time is converted to end of session time (ie 23:59) on all intraday minute bars. Hopefully the screen shot below illustrates:
I think I may be misunderstanding how to
-
- https://community.backtrader.com/topic/381/faq (timeframe/compression)
-
@backtrader once again - thanks for the rapid response. This suggestion fixed it!
timeframe=bt.TimeFrame.Minutes
...also discovered reference to this can be found in "Data Feeds"!
The documentation is excellent, the reader is flawed!!