Is candlestick chart real time update possible with QCandlestickSeries in pyqt - qt

I am trying create a python widget to plot candlestick chart with real time data in trading hours. So looking for best option to do it. I found QCandlestickSeries but it is not clear if we can get the chart to update with good performance when we keep updating last candle and when we keep adding new candle every x interval. Has someone tried this? Anyone knows if this is possible?
Thanks

Related

How to check if a plot is visible under a tab panel?

I am working on data visualization with R and shiny.
It takes some time to load my visualization and be able to provide plots under tab panels.
Ex. I made 3 tabs for box plot, bar plot, and bean plot
Taking time to visualize the result is understandable, but I am not sure how to check if the plot is visible so that users do not need to wait even though incProcess function reports the program is done.
First, I recorded the time to visualize and tried to delay some time, but it is very subjective to the data input, so I do not think that is a good solution.
Would you be able to provide me solution?
Thank you
I think I need a solution NOT to check if a code is done but the visualization is done.

R Highcharter - Navigator as input

I am using the Highcharter library in my R Shiny apps to build some dashboards and I was wondering if it would be possible to use the navigator (hc_navigator) as an input.
For example: by adjusting the time window of the chart in my graph, I'd like to calculate the avg or the sum of the displayed data point in the chart. Of course, I'd like this to be dynamic (i.e. any time that I adjust the time window with the navigator, I want the calculated value to update)
Example - This is my baseline chart: Baseline chart. I want to add a box which calculates the avg of the data points displayed in it. But, whenever I adjust the navigator (pls see here: nav-adjusted chart), I want the avg to change according to the data points which remain in the chart.
Does anybody have any idea on how to achieve something like this? Hope I was clear enough :)
Thanks,
Lorenzo

How to create stock candle chart with patches in netlogo?

I want to draw a candle chart of a stock's historical data using patches, so that this candle chart is like a background where turtles can running on top of it. are patches alone capable of this task or do I have to use turtles instead of patches? I would prefer to use patches.
I am new to netlogo and I didn't find any available model example doing it. So, I wonder anyone can point out the way how I could achieve it.
Thanks a lot
Kenny

MSChart - bar graph with multiple start and stop points

I am hoping someone can help me with an issue setting points on a bar graph with multiple start and stop points along each series. Note the first and last bars each have multiple starting and ending points.
Any tutorials or sample code would be greatly appreciated. sorry the image is so small.
What you are looking for are range bar charts
chart.Series[0].ChartType = SeriesChartType.RangeBar;
as always with MSchart, I'd recommend you take a look at the samples provided HERE. It has a section that demonstrate how to use RangeBar charts to achieve what you described.

using a graph in R in Powerpoint

I have certain x and y coordinates for the position of an animal for a certain time t-max. I am using the code in R:
for (t in 1:tmax) {
plot(x[1:t],y[1:t]);
Sys.sleep(0.1);
}
to see how the animal is moving with time. So this shows me the path from each value of x to the subsequent value, till tmax. So now i have to present my findings in a Powerpoint presentation. so i was wondering if there is a method to insert this graph in a slide so that when i click a button, the graph is plotted and everybody can understand how the animal is moving.
Have a look on the Animation-Package on Cran:
http://cran.r-project.org/web/packages/animation/index.html
The animations package is cool, but i found it hard to learn. Instead of sleeping after each point is plotted, you could save the graph, and then use a video editor to merge the graphs into a movie clip. Windows movie maker will do this for you.
I'm not a big fan of animation, and in this case it doesn't seem useful. Why not just plot the graph, or if the path is seriously tangled, plot with a rainbow colormap applied to the line so you can easily follow from start to finish? See plotrix::color.scale.lines

Resources