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.
Heikin-Ashi bar color Multicharts.NET
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Heikin-Ashi bar color Multicharts.NET
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.
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.