Directional Movement Example for Blazor

Nevron NOV Chart for Blazor ships with hundreds of examples with full source code, as part of the Nevron Open Vision Suite. All Blazor Chart examples are also available as a stand-alone Visual Studio solution in C#, which you can download from the links below.

Directional Movement Example for Blazor Description

The Directional Movement System consists of three lines:
The Positive Direction Indicator (+DI) summarizes upward trend movement;
The Negative Direction Indicator (-DI) summarizes downward trend movement;
The Average Directional Movement Index (ADX) indicates whether the market is trending or ranging.
Directional Movement Example

C# Directional Movement Example Code for Nevron Chart for Blazor
Language: C#

using Nevron.Nov;
using Nevron.Nov.Chart;
using Nevron.Nov.Dom;
using Nevron.Nov.Formulas;
using Nevron.Nov.Graphics;
using Nevron.Nov.Layout;
using Nevron.Nov.UI;
using Nevron.Nov.Windows.Forms;
using System;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace NovWinFormsProject
{
	public partial class Form1 : Form
	{
		#region Constructors

		public Form1()
		{
			InitializeComponent();

			// Set form title
			Text = "NOV WinForms - NDirectionalMovementExample";

			// Create the NOV example and its controls
			NWidget exampleContent = CreateExampleContent();
			NWidget exampleControls = CreateExampleControls();
			if (exampleControls != null)
			{
				exampleControls.PreferredWidth = 300;
			}

			// Place the example and its controls in a pair box
			NPairBox pairBox = new NPairBox(exampleContent, exampleControls);
			pairBox.FillMode = ENStackFillMode.First;
			pairBox.FitMode = ENStackFitMode.First;
			pairBox.Margins = new NMargins(NDesign.HorizontalSpacing, NDesign.VerticalSpacing);

			// Host the example in the form
			NNovWidgetHost host = new NNovWidgetHost(pairBox);
			host.Dock = DockStyle.Fill;
			Controls.Add(host);
		}

		#endregion

		#region Example

		private NWidget CreateExampleContent()
		{
			return null;
		}
		private NWidget CreateExampleControls()
		{
			return null;
		}

		#endregion

		#region Implementation
		#endregion

		#region Event Handlers
		#endregion

        #region Fields

        private NCartesianChart m_Chart;
        private NStockSeries m_Stock;
        private NLineSeries m_LineDIPos;
        private NLineSeries m_LineDINeg;
        private NLineSeries m_LineADX;
        private NLabel label1;
        private NTextBox m_DIPosLabel;
        private NTextBox m_DINegLabel;
        private NTextBox m_ADXLabel;
        private NTextBox m_PeriodLabel;
        private NHScrollBar m_PeriodScroll;
        private NButton m_NewDataBtn;
        private NCheckBox m_ShowPosCheck;
        private NCheckBox m_ShowNegCheck;
        private NCheckBox m_ShowADXCheck;

        #endregion

		#region Static Methods
		#endregion

		#region Constants
		#endregion

		#region Nested Types
		#endregion
	}
}

Download a fully functional C# (.cs) Directional Movement Example for Blazor Solution