495 questions
Best practices
0
votes
0
replies
20
views
Updating LIVE candlesticks in realtime
In realtime systems, older updates (ticks) from data providers may sometimes arrive later than newer ticks. usually within a few hundred milliseconds. Should such a tick be discarded or used to update ...
1
vote
1
answer
61
views
Disable Auto Chart Move on new data push
In AmCharts 5, when a new data is pushed into the series (Line Series or Candlestick Series whatever), the chart is moved a little bit to adjust the position for the new one. It is the default ...
1
vote
0
answers
189
views
ValueError: Invalid property specified for object of type plotly.graph_objs.layout.XAxis: 'titlefont'
import pandas as pd
import cufflinks as cf
stock = pd.read_csv('JPM.csv')
stock['Daily Return'] = stock['Adj Close'].pct_change(1) * 100
cf.go_offline()
stock.set_index(['Date'], inplace=True)
...
0
votes
0
answers
62
views
How to customize the time format shown below the price?
I'm using Lightweight Charts to draw a candlestick chart.
Right now, I display the "current candle price" in real time using the series update:
candleSeries.update({
time: timestamp,
...
0
votes
0
answers
71
views
MPAndroidChart CombinedChart load more candle data: chart jumps and zooms out when loadmore candle
I’m working with MPAndroidChart (CombinedChart) for a cryptocurrency app (Android, Kotlin). My chart is a typical Binance-like candle chart (candlestick + volume below) with “load more” support:
When ...
4
votes
1
answer
145
views
Can't make candle chart due to some error with mpf.plot
import pandas as pd
import yfinance as yf
import mplfinance as mpf
df = yf.download('AMZN', start='2020-01-01', end='2025-07-31')
print(df)
mpf.plot(df['2020-01-01':'2020-06-01'], type='candle', ...
2
votes
1
answer
88
views
How to identify price regimes / trends in Pandas
I have created the following pandas dataframe, which is an example of 26 stock prices (Open, High, Low, Close):
import pandas as pd
import numpy as np
ds = {
'Date' : ['15/06/2025','16/06/2025','17/...
2
votes
0
answers
90
views
Echarts and candlestick cropped the bars when move the graph with mouse
I'm trying to implement the movement of the candlestick chart by the mouse with echarts.
However, when I move the chart, the bars are cut off.
I would like to zoom in and move without the bars being ...
0
votes
2
answers
143
views
matplotlib candlestick chart and multiple subplots
I need candlestick chart in one subplot and another subplot which share Y axe with candlestick chart.
I have following code drawing subplots:
df = get_current_data(limit=150)
df_asks, df_bids = ...
2
votes
0
answers
52
views
How to implement a Heikin Ashi chart using amCharts 5?
I am trying to create a Heikin Ashi chart using amCharts 5, but I’m not sure how to set it up correctly. I couldn’t find direct examples in the documentation.
Here’s what I’ve done so far:
I’m able ...
-2
votes
1
answer
124
views
Candle plotted on heatmap python
currently I have a working heatmap chart, and a working candle stick chart. When I run the codes independently they work (reference the 2 pictures attached). However when i try to combine the 2 into ...
1
vote
1
answer
67
views
Can't Plot Candle and Scatter In The Same Figure
Candlestick and scatter plotCandlestick and scatter
I want to plot candlestick and scatter together to show candlestick overlay peaks and troughs. However, plots show there is an off-set on x-axis ...
0
votes
1
answer
476
views
Empty Plotly Candlestick chart with yfinance.download()
I am trying to plot a simple Candlestick chart from OHLCV data retrieved by yfinance.
This is my code:
import yfinance as yf
import pandas as pd
import plotly.graph_objects as go
from datetime import ...
0
votes
1
answer
77
views
how to check a condition for all candles between two bars in pine script?
hi in the pine script below a_index is the bar_index of a candle that already is saved with this code a_index:= bar_index and i want to check a condition for all candles between this one and the ...
0
votes
1
answer
187
views
How to remove empty dates from the x-axis? (matplotlib.pyplot)
I am trying to create a candlestick chart using some data for XAUUSD, which represents gold in the forex market.
The X-axis (time axis) has gaps due to holidays, and there are also gaps in the live ...