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
4
votes
2 answers

Python ta-lib with pandas.io.data: candlestick not plotting but other charts are ok

iPython 2.3.1, OS-X Yosemite 10.10.2 Python print (sys.version): 2.7.6 (default, Sep 9 2014, 15:04:36) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)] The following code works for data pulled for US stock data e.g. make the security id…
Quantatia
  • 91
  • 1
  • 2
  • 5
4
votes
1 answer

How do we create an OHLC chart with moving average using google chart API

I am using google API to create charts. I am able to create OHLC(Candlestick) charts. But I want to add an overlay of Moving Average to it. Can anyone please guide me as to how I can do it? Thanks in advance.
4
votes
1 answer

How to create a candlestick chart with Matplotlib (Python 2.7) and your own data

I would like to create a candlestick chart on Matplotlib. I have found many examples on the web but so far they are all using connections to yahoo finance or other kind of data, while not explaining well how to get the same result when you have a…
Matteo NNZ
  • 11,930
  • 12
  • 52
  • 89
4
votes
1 answer

JFreechart candlestick chart weird behaviour on drag

This is a follow up question from this question. What happens is the following: When I launch the graph and I drag the graph around, something weird happens: at a certain interval, it seems every 7 periods, the candlesticks get smaller and smaller…
Jean-Paul
  • 19,910
  • 9
  • 62
  • 88
4
votes
0 answers

JavaFX 2.x : Plotting two different types of charts on the same graph

I have a financial data serie I plot as Candlestick chart: I would like to add other serie(s) as LineChart(s). The example from javafx example - samples - Adv candlestick chart, shows a LineChart added as average as last column in data array. I…
Alberto acepsut
  • 1,972
  • 10
  • 41
  • 87
3
votes
3 answers

Plotting candlesticks with intraday data and adding moving averages, chartSeries or geom_candlestick

I am trying to plot candlesticks in R overlaid with moving averages, from my downloaded data for 30' SPY. I eventually want to plot one candlestick chart per day, with 14 day moving average overlaid, using a for-loop. Currently, I am not able to…
3
votes
1 answer

Julia add indicator to candlestick chart

I'm new to Julia and I'm trying to add a technical indicator (let it be a simple moving average) to my candlestick chart. How should I do that? using Plots, MarketData, TimeSeries gr() ta = yahoo(:GOOG, YahooOpt(period1 = now() -…
Fatafim
  • 287
  • 2
  • 13
3
votes
2 answers

Candlestick chart add_trace(mode="markers") gives wrong output

I'm currently building a financial dashboard with dash and plotly. I added the following candlestick chart to my dashboard: candlestick_chart = go.Figure(data=[go.Candlestick(x=financial_data["Date"], …
Ph.lpp
  • 484
  • 1
  • 4
  • 17
3
votes
2 answers

Overlaying data in a candlestick chart

My very 1st need is to overlay a curve over a candlestick chart. To draw this candlestick chart, mplfinance appears very nice. Unfortunately, I have found no way to overlay additional curve to the candlestick. Considering example below, if anyone of…
pierre_j
  • 895
  • 2
  • 11
  • 26
3
votes
1 answer

Candlestick chart does not show with plotly

Probably something really simple. I use an example to plot a Candlestick chart using plotly, but the plot never show up!? This is the code from https://plot.ly/python/candlestick-charts/ import plotly.graph_objects as go import pandas as pd from…
Jonathan Roy
  • 405
  • 1
  • 6
  • 18
3
votes
1 answer

Candlestick Charts with Matplotlib v2.2.2?

I have noticed in the Matplotlib API version 2.2.2, matplotlib.finance is no longer available. In the past that was what I used to create Candlestick Charts. With matplotlib.finance gone, I am reading that the recommended way is to use…
khorn06
  • 53
  • 1
  • 5
3
votes
2 answers

mongodb candlestick query

I need to query financial data from mongo and generate a daily Candle Stick graph. collection schema is something like: { symbol: 'GOOG', amount: 1000, rate: 123, created_at: ISODate('some point in time') } Each entry in the graph (i.e per…
shaharsol
  • 991
  • 2
  • 10
  • 31
3
votes
0 answers

Line connecting two points on a bar chart / candlestick chart

I have some code that produces a candlestick chart for stocks (below). Input: #import modules import pandas as pd from matplotlib.finance import candlestick2_ohlc import matplotlib.ticker as ticker import matplotlib.pyplot as plt build the…
pmillerhk
  • 171
  • 1
  • 2
  • 12
3
votes
1 answer

plot candlestick and 5-days average line on a same qtchart but give two x axis plot

I want to plot candlestick and 5-days average line on the same qchart, it should show one x axis, but gives two x axis. here is the code and the plot. import sys from PyQt5.QtChart import (QCandlestickSeries, QChart, QChartView) from PyQt5.QtWidgets…
doityth777
  • 93
  • 1
  • 9
3
votes
1 answer

get values of single candlestick in mouseover in candlestick chart in d3

I am trying to get the values like high low close and open of a single candlestick in candlestick chart in d3. On mouseover I want these values. For that I need to uniquely identify each candlestick so that on mouseover I can get values for that…