We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to access data from MetaTrader to SfChart using TradePlatform.Net in WPF ?

Description:

This article describes how to access data from Metatrader to ItemsSource for chart series using TradePlatform.Net.

 

Solution:

The solution can be achieved by adding the data that fetched from the Metatrader into an ObservableCollection, and setting that collection to the ItemsSource for chart series. It has been explained in following steps.

 

Step 1: Use the following code example as Model class.

Model.cs

 

Step 2: Fetch the data from Metatrader, and add it into a collection.

MainWindow.cs

 

Step 3: Bind the corresponding collection (with data fetched from Metatrader) to series’ ItemsSource.

MainWindow.xaml

 

The demo sample is available for download in this link.

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7932 08/10/2017 03/13/2018 WPF SfChart
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon