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. Image for the cookie policy date

How to plot ExponentialMovingAverage based on Open Price instead of Close Price?

Good Morning,

How can I plot ExponentialMovingAverage based on Open Price instead of Close Price or HIgh or Low, or based on a different value?

Thanks in advance for your help,
Luca

3 Replies

DA Devi Aruna Maharasi Murugan Syncfusion Team March 17, 2017 03:42 PM UTC

Hi Luca, 
  
Thanks for contacting Syncfusion Support. 
  
The ExponentialAverageIndicator will draw based on the close values which is mapped by Close property in ExponentialAverageIndicator. You can  achieve your requirement(indicator drawn based on Open value) by setting open model property value to Close property of indicator as shown in the below code snippet, 
 
<chart:SfChart.TechnicalIndicators> 
   <chart:ExponentialAverageIndicator ItemsSource="{Binding StockPriceDetails}" 
                                      XBindingPath="Date" High="High" Low="Low" 
                                      Open="Open" Close="Open" SignalLineColor="Black" 
                                      Period="5"/> 
</chart:SfChart.TechnicalIndicators> 
 
  
We have prepared a demo sample by drawing the technical indicator with Open value for your reference and it can be downloaded from below link, 
  
  
Regards, 
Devi 




LD Luca De Marco March 19, 2017 07:20 PM UTC

Thank you very much!

I tested it with MetaTrader4 and they produce the same output!


DA Devi Aruna Maharasi Murugan Syncfusion Team March 20, 2017 04:08 AM UTC

Hi Luca, 
  
Thanks for your update. 
  
Please let us know, if you need any further assistance on this. 
  
Regards, 
Devi 


Loader.
Live Chat Icon For mobile
Up arrow icon