Live candlestick plot from historical source python matplotlib

preview_player
Показать описание
Channel where I learned how to do it
Without screen recording it plays at 2.1fps
To remove premarket gaps I define a reversed queue in which I store pos on the plot and datetime at day's beginning(premarket end). Also I implemented custom xticker formatter to wich i fed my queue. Inside it I computed label by finding nearest premarket and multiplied interval(5min) by difference between pos and premarket pos and adding it to premarket time.
xtick_formatter
Рекомендации по теме
Комментарии
Автор

Please..add code!! I am looking for something like this...how u are updating the data and iterate thru the subplot object?

JOG
Автор

Hi How did you manage to get the time on X axis. I am trying to convert from unix timestamp to date and time but i can not get it to work. can you share this part of code with me? Thanks a lot

paulv
join shbcf.ru