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
45
votes
10 answers

Since matplotlib.finance has been deprecated, how can I use the new mpl_finance module?

I am trying to import matplotlib.finance module in python so that I can make a Candlestick OCHL graph. My matplotlib.pyplot version is 2.00. I've tried to import it using the following commands: import matplotlib.finance from matplotlib.finance…
Furqan Hashim
  • 1,304
  • 2
  • 15
  • 35
19
votes
4 answers

How can I customize mplfinance.plot?

I've made a python script to convert a csv file in a candlestick like this using mpl_finance, this is the script: import matplotlib.pyplot as plt from mpl_finance import candlestick_ohlc import pandas as pd import matplotlib.dates as…
Matteo_Sid
  • 252
  • 1
  • 2
  • 11
19
votes
3 answers

Fetch Candlestick/Kline data from Binance API using Python (preferably requests) to get JSON Dat

I am developing a telegram bot that fetches Candlestick Data from Binance API. I am unable to get JSON Data as a response. The following code is something that I tried. import requests import json import urllib.request `url =…
Jin Barai
  • 191
  • 1
  • 1
  • 4
14
votes
3 answers

Why can't I import candlestick_ohlc from mplfinance

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…
13
votes
3 answers

Y-axis autoscaling with x-range sliders in plotly

Afaik, y-axis cant be made to auto scale when using x-range sliders. Y range is chosen with respect to the y values of the whole x range and does not change after zooming-in. This is especially annoying with candlestick charts in volatile periods.…
TOTORO
  • 131
  • 1
  • 3
10
votes
2 answers

Overlapping Dates in Candlestick Plot from a Pandas DataFrame

I have a pandas dataframe output as follows Open High Low Close 2016-06-01 69.60 70.20 69.44 69.76 2016-06-02 70.00 70.15 69.45 69.54 2016-06-03 69.51 70.48 68.62 68.91 2016-06-04 69.51 70.48 68.62 68.91 2016-06-05 …
user7616021
10
votes
1 answer

Candlestick multiple Y values

I am on a mission to make a candlestick graph using MSChart in a windows form. I already succeeded to make a 3D bar chart with no problems. But after a long search on the internet, Microsoft's source code (WinSamples) and a lot of headscratching I…
Jens
  • 113
  • 1
  • 1
  • 6
9
votes
2 answers

Auto-Scale Y-Axis in JfreeChart

I am using JFreeChart to create candlestick charts in my Java app. However, my charts end up looking like this: http://imageshack.us/photo/my-images/69/capturebhx.png/ I would like to have the Y-axis automatically scaled so that the chart looks…
supercoder
  • 107
  • 1
  • 2
  • 7
9
votes
4 answers

Python Plotly How to remove datetime gaps in candle stick chart?

I am trying to remove the datetime gaps in my candlestick (the gaps are the time periods when the stock market is closed, hence there are not data). Can't seem to find a good solution for using plotly graph object. Is there a feasible way to do…
9
votes
2 answers

JupyterLab fig does not show. It shows blank result (but works fine on jupyternotebook)

I am new to JupyterLab trying to learn. When I try to plot a graph, it works fine on jupyter notebook, but does not show the result on jupyterlab. Can anyone help me with this? Here are the codes below: import pandas as pd import…
9
votes
3 answers

Python: Plot candlesticks with automatic Y zoom

I am looking for a Python plotting library that allows me to plot candlesticks (preferably the OHLC bars variant) with X zoom via mousewheel scrolling (or similar) and an automatically scaled Y axis when zooming. As an example of what I am looking…
Graeme
  • 2,971
  • 21
  • 26
9
votes
4 answers

Stock candlestick drawing issues with geom_boxplot (R)

I am using geom_boxplot to draw candlesticks using stock market data. The problem is that the individual boxplot's upper and lower edges as well as the upper whisker end point show up way higher on the y-axis than their corresponding values. The…
user3181905
  • 119
  • 1
  • 2
  • 5
8
votes
1 answer

quantmod::chart_Series and mapply gives error with chart parameters

How do I use MoreArgs properly with chart_Series? p.txt s,n ABBV,AbbVie BMY,Bristol LLY,EliLily MRK,Merck PFE,Pfizer sof.r # R --silent --vanilla <…
AG1
  • 6,648
  • 8
  • 40
  • 57
8
votes
1 answer

Candlestick chart on bitcoinwisdom

Im in need for good candlestick chart for my web app and chart at http://bitcoinwisdom.com/ is really what Im looking for. I like the way you can zoom and move with it. Is it possible to figure out what they are using or do you think they made it up…
user1816019
  • 101
  • 4
8
votes
1 answer

How to apply custom color on candlesticks based on OPEN/CLOSE values?

I'm working on candlesticks (highStock). Is there any function through which I can change color of individual candlesticks based on Open/close values ? by default it gives blue and white color, i.e. if opening values are greater then closing values…
Omar Bahir
  • 1,237
  • 5
  • 20
  • 48
1
2 3
31 32