We produce an interactive candlestick chart in python from scratch with Plotly. We also add on a technical indicator and show how further additions could be made.
Your Insight to the Stock Market & Finances
We produce an interactive candlestick chart in python from scratch with Plotly. We also add on a technical indicator and show how further additions could be made.
Comments are closed.
What is the second best time range?
Hi, if I want to show 5m data then …? What to do
If you’ve got access to a data set with 5 minute OHLC data, then it’s pretty much the same thing. If not you’ll have to make it yourself. There’s a nice set of 1 minute candle data on kaggle, so you should be able to figure out a function to convert that to 5 min candles
How would you add other indicator panes – for example if you wanted RSI below and MACD above?
That’s a topic for a future video! Try this link though if you want to get started now https://matplotlib.org/devdocs/gallery/subplots_axes_and_figures/subplots_demo.html
@Chad Thackray thanks, i was able to figure it out after a bit
What if we want real time data from broker, and animate the candlestick as price updating ? Is it possible using plotly ? Thank you, great tutorial and subscribed!
another great video! thanks for sharing!
It is Supergood !!! Thanks o lot!
Hello teacher, when I try to import pandas it shows me this error “ModuleNotFoundError: No module named ‘pandas'”. Can you help me?
You’ll need to install the pandas module. Using pip or through your IDE
previous problem solved teacher, thanks
When I run this comand “df[‘date’]=pd.to_datetime(df[‘date’])”, it shows me this error
” Traceback (most recent call last):
File “c:Userslmathcandlesticks.py”, line 5, in
df[‘date’]=pd.to_datetime(df[‘date’])
File “C:UserslmathAppDataLocalProgramsPythonPython39libsite-packagespandascoreframe.py”, line 3458, in __getitem__
indexer = self.columns.get_loc(key)
File “C:UserslmathAppDataLocalProgramsPythonPython39libsite-packagespandascoreindexesbase.py”, line 3363, in get_loc
raise KeyError(key) from err
KeyError: ‘date’ ”
I dont know what to do
remove the cryptodatadownload address from the csv file and the code should run with no error.
@Endrius Sartor can you explain a bit more please? what address? i have the same problem
Awesome !!!!!!!!!!
can you please share your code or git link.
how your graph is opened in new tab ? I am using google colab and graph is open in same page. pls help
hi, is there a way to get live data through api? I want for a django project.
Very Good. How to add and arrow to indicate an opened position in chart? Thanks!