Questions tagged [candlestick-chart]

A candlestick-chart is a type of bar-chart which is primarily used to indicate change in price of security, currency etc.

Each bar in candlestick-chart represent variation of price over a given interval.

Example :- A Bar of Candlestick chart represent High, Low, Open & Close of a security, currency etc.

For more info: https://en.wikipedia.org/wiki/Candlestick_chart

473 questions
5
votes
1 answer

How to get a graph for stock market analysis?

I updated the code and it now provides the graph, however after giving me the graph it produces the following error messages. Warning (from warnings module): File "C:\Python27\lib\site-packages\matplotlib\collections.py", line 590 if…
4
votes
2 answers

Plotly Candlestick updated and shown dynamically in a loop

I would like to dynamically update a Candlestick chart from plotly: import time import plotly.graph_objects as go while True: candle_df = candle_handler.get_dataframe() candlestick = go.Candlestick(x=candle_df['Time'], open=candle_df['Open'],…
Newbie
  • 121
  • 9
4
votes
1 answer

How to add a string comment above every single candle using mplfinance.plot() or any similar package?

i want to add a string Comment above every single candle using mplfinance package . is there a way to do it using mplfinance or any other package ? here is the code i used : import pandas as pd import mplfinance as mpf import matplotlib.animation…
Mr Dream
  • 134
  • 1
  • 10
4
votes
2 answers

lightweight-charts Uncaught Error: Value is null

Lightweight Charts Version: 3.1.3 I am using your chart for the cryptocurrency trade application in Vue project but no matter what I get this error below is a sample code There is no duplicated or null data. import {createChart} from…
Milad
  • 719
  • 1
  • 10
  • 28
4
votes
0 answers

Live updating candlestick chart?

How can I update the chart in real-time instead of reprinting it again and again? I have used plotly and dash. import ibapi import pandas import plotly.graph_objects as go from ibapi.client import EClient from ibapi.wrapper import EWrapper from…
spartan
  • 41
  • 1
4
votes
1 answer

Dynamically updating a QChart

I have a class that plots a candlestick for given data. I am trying to dynamically update the plot as soon a new data is received. Data is received at irregular intervals. What mechanism can I use in order to let the class know it's time to update…
afp_2008
  • 1,940
  • 1
  • 19
  • 46
4
votes
3 answers

Is Redis TimeSeries the right tool to capture candle sticks in stock prices

I am currently trying to do a simple implementation for stock price candle sticks. Let's say we have a stock called XYZ. This stock receives a stream of prices (in no particular frequency), which (for example) looks like: XYZ: [10.2, 10.7, 12, 11…
alt-f4
  • 2,112
  • 17
  • 49
4
votes
1 answer

How do I draw the support and resistance lines on a candlestick graph using mplfinance?

I need to draw two horizontal lines to show support and resistance. Here is my code: from alpha_vantage.timeseries import TimeSeries import mplfinance as mpf ts = TimeSeries(key='', output_format='pandas', indexing_type='date') data, meta_data =…
4
votes
2 answers

Stock candleStick chart in iOS?

I need to create Stock CandleStick chart from scratch, Because we have some complex customization about Buy, Sell and Hold signal. I have prepared all data now looking forward to see some sort of starting point, I know Object C well but not too much…
Nafiz
  • 462
  • 4
  • 17
4
votes
0 answers

High/low detection in candlestick price chart

I am looking for an algorithm for detecting swing highs and lows from a candlestick price chart with as little lagging as possible. What's observed as a high/low is slightly subjective, but the following figure gives an example (the green bow…
Hyndrix
  • 4,282
  • 7
  • 41
  • 82
4
votes
1 answer

Plotly: How to draw vertical lines between dates in a candlestick chart?

Take a look at the third example here (in the section Adding Customized Text and Annotations). If you zoom in in the chart, you can see that the example inserted a vertical line on the date '2007-12-01'. If the date were a trading day (e.g.…
Roy
  • 880
  • 1
  • 12
  • 27
4
votes
1 answer

xytext details in Matplotlibs Annotate

With the following code I am plotting a candlestick graph and also make use of annotations. I have played arround until I found the right positions for the text, but I still don't understand what the figures xytext=(-15, -27) and xytext=(-17, 20)…
sunwarr10r
  • 4,420
  • 8
  • 54
  • 109
4
votes
4 answers

How to Remove Weekends in Matplotlib Candlestick Chart?

When plotting a candlestick chart in matplotlib, the plot leaves unsightly gaps over weekends. This happens because of breaks in the data due to markets being closed on weekends. How can the gaps over weekends be removed? Below is a simple example…
lanery
  • 5,222
  • 3
  • 29
  • 43
4
votes
3 answers

Matplotlib remove space of candlestick for missing data

I create a program that generate the candlestick chart and I have a problem with it. my data type is stock so it only have a data in weekdays. So after I plotted it, it has spaces between the candlesticks. How can I remove these? Here is my plotter…
YONG BAGJNS
  • 501
  • 2
  • 8
  • 21
4
votes
2 answers

How can you draw candlestick charts on iOS?

I am new to Quartz, and I would like to draw a candlestick chart in iOS, but I don't know how. How can I draw charts like this? Are there any good examples for iOS?
hsiun
  • 43
  • 4
1 2
3
31 32