Comments (27) on “Python candlestick chart animation”
Git – OK ๐
Gooood , but duka is error for me!
Show me the error you have, I will help
Good stuff to learn, please make a video using live data. Using alpari free data api and apply Dmd & Supply/ FTR python strategy
thanks! Sounds like a good idea for video, but the problem is that I cannot find any documentation on alpari free data api… can you send me some link please? I am currently looking for a good and free real-time tick data provider.
Excellent Mike. can we add SMA EMAs with this animation.?
Hello sir, I found much more better ways to animate / stream data to charts with plotly. This Monday I will upload a video with streaming live data to candlestick plotly charts. I love this library, matplotlib i getting outdated I think… Next one, will be the video about EMA strategy implementation. ๐
don’t do plotly they do not have enough features and support for indicators and what not. you can chart SMA/EMA with the new revived mplfinance package here https://github.com/matplotlib/mplfinance . just do pip3 (or pip) install mplfinance. documentation is on github.
@hugo boser as far as I know, mplfinance does not support chart animation
You have not defined df, so how come it is working for you? It supposed to render convert_ticks_to_ohlc not defined. Thanks.
If you can see, I am passing df as a first argument to function def convert_ticks_to_ohlc(df, df_column, timeframe):
@Mike Papinski Lab Ok, I see that. Just was getting errors as convert_to_ohlc not defined, so I taught is was due to df or something. While on your page, I used code from there, and seems to be working. Thanks.
@K2ICC thats’s cool, I’m glad you got something usefull from this video! ๐
@Mike Papinski Lab Great video. The first time ever I get to do an animated chart. Hopefully similar can be done with data from brokers where I have accounts with. The problem is, their API is controlled mostly for real trading. There are some with PaperMoney. Will research on that.
@K2ICC I already made a video on the live data. I would suggest to use plotly for live streams as it is much more responsive and easier to code ๐ https://www.youtube.com/watch?v=vncIMTwtttg
Really nice. I took your concept to create a tick data simulation ๐ So, in the simulation it is not Open/Close simulated more every tick simulated like in the Trading applications.
Really Nice Explanation. Keep it up
great video! but how do you set the x axis with hours, mins, and seconds? I’ve tried using (mdates.DateFormatter(‘%b %d %y’)) to get the month day and year
I made a self updating graph but everytime it updates it resets my zoom how can I fix it
Awesome video, thank you very much. I have searched for this for days with google, only thing I found, until this, was lame information that only produced static charts that sucked.
more Python videos pls!!!!
cool
Really good tutorial. Exactly what i needed! thanks!
Git – OK ๐
Gooood , but duka is error for me!
Show me the error you have, I will help
Good stuff to learn, please make a video using live data. Using alpari free data api and apply Dmd & Supply/ FTR python strategy
thanks! Sounds like a good idea for video, but the problem is that I cannot find any documentation on alpari free data api… can you send me some link please? I am currently looking for a good and free real-time tick data provider.
Excellent Mike. can we add SMA EMAs with this animation.?
Hello sir, I found much more better ways to animate / stream data to charts with plotly. This Monday I will upload a video with streaming live data to candlestick plotly charts. I love this library, matplotlib i getting outdated I think… Next one, will be the video about EMA strategy implementation. ๐
@Mike Papinski Lab awaiting plotly implementation Mike, please
don’t do plotly they do not have enough features and support for indicators and what not. you can chart SMA/EMA with the new revived mplfinance package here https://github.com/matplotlib/mplfinance . just do pip3 (or pip) install mplfinance. documentation is on github.
@hugo boser as far as I know, mplfinance does not support chart animation
In the piece of code:
def convert_ticks_to_ohlc(df, df_column, timeframe):
data_ohlc = df[df_column].resample(timeframe).ohlc()
return data_ohlc
You have not defined df, so how come it is working for you? It supposed to render convert_ticks_to_ohlc not defined. Thanks.
If you can see, I am passing df as a first argument to function def convert_ticks_to_ohlc(df, df_column, timeframe):
@Mike Papinski Lab Ok, I see that. Just was getting errors as convert_to_ohlc not defined, so I taught is was due to df or something. While on your page, I used code from there, and seems to be working. Thanks.
@K2ICC thats’s cool, I’m glad you got something usefull from this video! ๐
@Mike Papinski Lab Great video. The first time ever I get to do an animated chart. Hopefully similar can be done with data from brokers where I have accounts with. The problem is, their API is controlled mostly for real trading. There are some with PaperMoney. Will research on that.
@K2ICC I already made a video on the live data. I would suggest to use plotly for live streams as it is much more responsive and easier to code ๐
https://www.youtube.com/watch?v=vncIMTwtttg
Join our Discord server! [Click here]
https://discord.gg/TCt5GxY
Really nice. I took your concept to create a tick data simulation ๐ So, in the simulation it is not Open/Close simulated more every tick simulated like in the Trading applications.
Really Nice Explanation. Keep it up
great video! but how do you set the x axis with hours, mins, and seconds? I’ve tried using (mdates.DateFormatter(‘%b %d %y’)) to get the month day and year
I made a self updating graph but everytime it updates it resets my zoom how can I fix it
Awesome video, thank you very much. I have searched for this for days with google, only thing I found, until this, was lame information that only produced static charts that sucked.
more Python videos pls!!!!
cool
Really good tutorial. Exactly what i needed! thanks!
Can i get code please
Really outstanding video. Thank you