Skip to content

Learn how to create a Heikin-Ashi Chart using the Syncfusion WPF Chart.Understand its smoothing technique that filters market noise for better trend analysis. Compare it with the traditional Candlestick Chart to see the key differences.

Notifications You must be signed in to change notification settings

SyncfusionExamples/Create-a-Heikin-Ashi-Chart-in-Syncfusion-WPF-and-compare-it-with-a-Candlestick-Chart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Create-a-Heikin-Ashi-Chart-in-Syncfusion-WPF-and-compare-it-with-a-Candlestick-Chart

Overview

This project demonstrates how to create a Heikin-Ashi Chart using Syncfusion WPF SfChart and compare it with a traditional Candlestick Chart. The implementation includes Heikin-Ashi formula calculations, custom rendering, and additional features like trackball labels, theme customization, and axis formatting.

Heikin-Ashi charts help traders smooth out market trends by reducing noise, making them useful for identifying potential reversals and trend continuations. This project also includes trackball interaction for better data analysis.

Features

Custom Heikin-Ashi Series: Built by extending the CandleSeries, the Heikin-Ashi chart calculates its own data using a separate ItemsSource.

Comparison with Candlestick Chart: A direct visual comparison between Heikin-Ashi and traditional candlestick charts.

Trackball with Custom Labeling: Displays Open, High, Low, and Close prices for better data insight.

Axis Customization: Customize DateTimeCategory Axis and Numerical Axis with formatted labels.

Heikin-Ashi Calculation

The Heikin-Ashi chart calculates new OHLC values using the following formulas.The formula smooths out volatility using the following calculations:

Open = (Previous Open + Previous Close) / 2

Close = (Open + High + Low + Close) / 4

High = Max(High, Open, Close)

Low = Min(Low, Open, Close)

With these implementations, we will get the output that resembles the following gif.

BlogFinalOutput

Troubleshooting

Path too long exception

If you encounter a Path Too Long Exception while building the project:

  1. Close Visual Studio.
  2. Rename the repository to a shorter name.
  3. Rebuild the project.

For a step-by-step procedure

Refer to the blog, Heikin-Ashi vs. Candlestick Charts: Which Is Better for Market Trend Analysis in WPF for detailed instructions and code examples.

About

Learn how to create a Heikin-Ashi Chart using the Syncfusion WPF Chart.Understand its smoothing technique that filters market noise for better trend analysis. Compare it with the traditional Candlestick Chart to see the key differences.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages