Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Real Time Financial Chart (Read 1030 times)
YaBB Newbies

I Love MindFusion!

Posts: 1
Joined: Apr 12th, 2018
Real Time Financial Chart
Apr 12th, 2018 at 7:16pm
Print Post  
Hello - I enjoyed your Real Time Financial Chart JS video and I've been experimenting with it recently. However I'm still more of a trader than programmer - I can't manage to get it to work with currencies as there's no time series, open, high, low etc from the Alphantage Currency example.
I tried to code a function like your updateStock() for currencies but I was unsuccessful. Do you have any pointers on doing this? I'm really interested in this if I can get it to display currency charts.


I did use my own key for this, not demo.

Best regards.
Back to top
IP Logged
YaBB Moderator

MindFusion team

Posts: 484
Joined: Jun 17th, 2010
Re: Real Time Financial Chart
Reply #1 - Apr 13th, 2018 at 7:52am
Print Post  

Thank you for your interest in our product. The currency exchange rate function is not suited for the CandleStick chart control or the StockPriceSeries, because the service does not report open/close/high/low values, but only provides the exchange rate and the time. So first you should use another one of the provided chart controls, i.e. AreaChart or LineChart with DateTimeSeries. You can then set-up a timer, that will query the API that provides the data and create the series object that will be used by the chart by plotting the time on the X-axis and the exchange rate of the Y-axis.

We've modified the Real Time Financial Chart demo along the above lines, you can download it here:

You can modify it additionally to show a different time range, can use additional series, to show additional exchange rates, adjust the minimum and maximum values, etc; it should be enough to get you started.

Back to top
IP Logged
Page Index Toggle Pages: 1
Send TopicPrint