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.
Unfortunately, activation email could not send to your email. Please try again.

Can Indicators be used standalone?

Thread ID:

Created:

Updated:

Platform:

Replies:

129386 Mar 15,2017 08:03 AM Mar 17,2017 05:56 AM WPF 3
loading
Tags: SfChart
Luca De Marco
Asked On March 15, 2017 08:03 AM

Good morning,

Can Indicators be used standalone?

I mean... if I need the values, but I am not interested in the charts?

Thanks in advance for your help.

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On March 16, 2017 08:53 AM

Hi Luca, 
  
Thanks for contacting Syncfusion Support. 
  
We have achieved your requirement (calculated plot values of the technical indicator) by using CustomTechnicalIndicator. We have prepared a demo sample based on this requirement and it can be downloaded from below link, 
  
  
If this does not meet your requirement, kindly provide more information regarding your requirement. It would be more helpful for us to serve you better. 
  
Regards, 
Devi 
 





Luca De Marco
Replied On March 16, 2017 09:30 AM

I cannot try it at the moment because I am at work, but I need it because I want to use your indicators as part of a trading strategy, and therefore I need the values to take decisions but without plotting them anywhere.

I hope I've been clear.

Thank you very much for your fast response,
Luca

Devi Aruna Maharasi Murugan [Syncfusion]
Replied On March 17, 2017 05:56 AM

Hi Luca, 
  
Thanks for your update. 
  
As we mentioned in earlier update, we have achieved this requirement in workaround by using CustomTechnicalIndicator for getting the calculated indicator plot values as well as indicator Y-values as like in below code snippet 
 
private void chart_Loaded(object sender, RoutedEventArgs e) 
{ 
    var points = indicator.Points;// TechnicalIndicator screen points 
    XValues = new List<DateTime>(); 
    YValues = new List<double>(); 
     
    for (int i = 0; i < points.Count; i++) 
     { 
      //TechnicalIndicator screen points are converted to corresponding  
           values by using PointToValue() 
        XValues.Add((this.chart.PointToValue(chart.PrimaryAxis as DateTimeAxis,  
                           points[i]).FromOADate())); 
        YValues.Add(this.chart.PointToValue(indicatorYAxis as NumericalAxis,      
                                       points[i])); 
     } 
} 
 
  
Please find the demo sample, 
  
Regards, 
Devi 





CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

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.

;