Heikin-Ashi bar color Multicharts.NET

Questions about MultiCharts .NET and user contributed studies.
mccoder
Posts: 1
Joined: 19 Oct 2014

Heikin-Ashi bar color Multicharts.NET

Postby mccoder » 19 Oct 2014

I have created a simple chart to display Heikin-Ashi type of bars under C# /MC.NET.
That is blue color for an UP bar and Red color for a DOWN bar.

The chart is plotted by Multicharts, not but my own strategy or indicator.
On the top of the chart I have build a custom Strategy.

The question is :
How to get the Bar color of any Heikin-Ashi bar already plotted on the chart from within a Strategy.

Thanks in advance.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Heikin-Ashi bar color Multicharts.NET

Postby Henry MultiСharts » 20 Oct 2014

Hello mccoder,

You need to compare the Open and Close price of the bar.
If haOpen <= haClose then it is an Up bar, if otherwise - it is a Down bar.


Return to “MultiCharts .NET”