candlestick-chart

Change color of candle stick graph in python Plotly

Change color of candle stick graph in python Plotly Question: I have a candle stick graph created to show monthly candles of a stock using plotly in python. I want to customize only one candle for April 2022 (see figure). Here is the complete code. fig = make_subplots(rows=1, cols=1, subplot_titles=[], specs=[[{"secondary_y": True}]], vertical_spacing=0, shared_xaxes=True, row_width=[1.0]) …

Total answers: 1

How can I detect if a value in a DataFrame crosses another value in the DataFrame

How can I detect if a value in a DataFrame crosses another value in the DataFrame Question: This is a sample of my DataFrame which is quite large. It is candlestick OHLC data with some additional columns ‘Target’ etc. Open High … Target Close Time … 2022-05-23 06:59:59.999 30301.46 30655.00 … NaN 2022-05-23 07:59:59.999 30487.77 …

Total answers: 1

Why can't I import candlestick_ohlc from mplfinance

Why can't I import candlestick_ohlc from mplfinance Question: So I have been able to successfully install mplfinance with pip and when I import it alone I receive no error. Though when I do: from mplfinance import candlestick_ohlc I get the error ImportError: cannot import name ‘candlestick_ohlc’ from ‘mplfinance’ I have checked command prompt again, and …

Total answers: 3

Wrong dates in the index plotly with a second graph I did not ask for

Wrong dates in the index plotly with a second graph I did not ask for Question: I am trying to plot some graphs with plotly and, after several times having the wrong graph, i backed to the basics and tried to plot an example from the plotly web, but the same error appears: My dates …

Total answers: 1