candlestick-chart

Stock candlestick drawing issues with geom_boxplot (R)

主宰稳场 提交于 2019-12-04 07:53:48
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 relative height (difference between upper and lower edges) and the end point of the lower whisker of each boxplot are fine though. Here's my code : candlestickPlot <- function(x){ library("ggplot2") # x is a data.frame with columns 'date','open','high','low','close' x$candleLower <- pmin(x$open, x$close) x$candleUpper <- pmax(x$open, x$close) x

Candlestick charts component for android

与世无争的帅哥 提交于 2019-12-03 10:05:43
问题 I was looking for a candlestick lib chart solution for android, and couldnt find one for a couple of months now. Im looking for a smooth scrolling, zomming, tooltip, option to polt in a new candle without the need to render the entire chart. i did come across all the normal options for native code charting: DriodCharts, AchartEngine, ChartDroid, none of which support candlesticks. I also used 5 free Javascript and html solutions, all of which are very very slow, and most dont support adding a

Candlestick charts component for android

喜欢而已 提交于 2019-12-03 00:41:22
I was looking for a candlestick lib chart solution for android, and couldnt find one for a couple of months now. Im looking for a smooth scrolling, zomming, tooltip, option to polt in a new candle without the need to render the entire chart. i did come across all the normal options for native code charting: DriodCharts, AchartEngine, ChartDroid, none of which support candlesticks. I also used 5 free Javascript and html solutions, all of which are very very slow, and most dont support adding a data tick after the chart has been plotted. I have seen many free android applications with decent

mpl_finance cannot convert -100000 to a date

自闭症网瘾萝莉.ら 提交于 2019-12-02 11:52:51
I am trying to make a simple candlestick ohlc chart with mpl_finance. On their website, it says that the first element in the quotes argument of the candlestick_ohlc method is the dates. It says that they must be formatted in the float date format. When i use date2num however, it gives me an error that says"Cannot convert -100000 to a date. This often happens if non-datetime values are passed to an axis that expects datetime objects." When i use my original list without the date2num method, it gives me an error that points to a line of code- xy=(t-OFFFSET, lower) and a message -"unsupported

How to display tooltips with various data in MS charts

十年热恋 提交于 2019-12-02 05:44:52
问题 I am developing a candle chart in C #. I've been working on creating candle charts using data from the current datagridview. Additionally, when I place the cursor over the candle point of the chart, I want to show the information (open, close, high, low) of the datagridview. (See image) Currently developed source. DataTable table_ChartData = new DataTable(); table_ChartData.Columns.Add("Id"); table_ChartData.Columns.Add("Open"); table_ChartData.Columns.Add("Close"); table_ChartData.Columns

Using a css in javafx is causing a huge memory usage for real time candle stick chart

别来无恙 提交于 2019-12-02 04:38:10
问题 I have followed ensemble sample of javafx and tried to create a candle stick chart. It loads a css file ensemble2.css using this line of code getStylesheets().add((CandleStickChart.class.getResource( "ensemble2.css") .toExternalForm())); but when I profile my application (which is adding one candle every 100 ms ) it is using around 2 GigaBits of memory but when I removed CSS it is using only half this memory. What could be possible reason and how can it be improved. Thanks 来源: https:/

How to display tooltips with various data in MS charts

本小妞迷上赌 提交于 2019-12-02 03:35:33
I am developing a candle chart in C #. I've been working on creating candle charts using data from the current datagridview. Additionally, when I place the cursor over the candle point of the chart, I want to show the information (open, close, high, low) of the datagridview. (See image) Currently developed source. DataTable table_ChartData = new DataTable(); table_ChartData.Columns.Add("Id"); table_ChartData.Columns.Add("Open"); table_ChartData.Columns.Add("Close"); table_ChartData.Columns.Add("High"); table_ChartData.Columns.Add("Low"); table_ChartData.Columns.Add("Day"); dataGridView1

Remove weekend gaps in gnuplot for candlestick chart

大城市里の小女人 提交于 2019-12-01 23:01:17
I am trying to plot some financial candlestick charts with gnuplot. The problem is that there is no data during the weekends, and I don't want these gaps to be showed. Picture and code included below. set datafile separator "," set xdata time set timefmt"%Y-%m-%d" set xrange ["2015-10-22":"2016-02-06"] set yrange [*:*] set format x plot 'head.dat' using 1:2:4:3:5 notitle with candlesticks Joce As you have one entry per working day, instead of using the dates as abscissae you can use the line number: plot 'head.dat' using 0:2:4:3:5 notitle with candlesticks Then I guess you'll ask how to

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

巧了我就是萌 提交于 2019-12-01 09:25:47
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 import QApplication, QMainWindow from PyQt5.QtCore import Qt from PyQt5 import QtChart as qc """ data to be load just like the following: num, open, high, low, close, ma5 1 7380 7520 7380 7510 7324 2 7520 7580 7410 7440 7372 3 7440 7650 7310 7520 7434 4 7450 7640 7450 7550 7480 5 7510 7590 7460 7490 7502 6 7500 7590 7480 7560 7512 7 7560 7830 7540

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

只愿长相守 提交于 2019-12-01 07:07:56
问题 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 import QApplication, QMainWindow from PyQt5.QtCore import Qt from PyQt5 import QtChart as qc """ data to be load just like the following: num, open, high, low, close, ma5 1 7380 7520 7380 7510 7324 2 7520 7580 7410 7440 7372 3 7440 7650 7310 7520