20 lines
2.4 KiB
Markdown
20 lines
2.4 KiB
Markdown
|
|
# [Heikin Ashi Lines](https://www.mql5.com/en/code/47605)
|
|
|
|
> ***A simpler way to display Heikin Ashi***
|
|
|
|
Probably everyone has put up a _Heikin Ashi_ chart one time or another. It makes it look so much cleaner with less noise and clearer trends.
|
|
|
|
But there is one major flaw—it hides the true bar/candle values, especially the true closing prices.
|
|
|
|
The _Heikin Ashi_ close price is simply an applied price called the “total price”, and the _Heikin Ashi_ open is simply a moving average of its close prices.
|
|
|
|
So, why not just display it as two lines instead?
|
|
|
|
This is what this indicator does. That way, you can still see the true bar/candle values. The dotted line is the open and the solid is the close.
|
|
|
|
Please note that by default it will use _Gray/Grey_ as the line colour, which is dull. So use the colour that best suits you, for example _Yellow_ on a black background or _Blue_ on a white background.
|
|
|
|
The code uses conditional compilation and will compile on both MQL4 and MQL5. Please note that all my _CodeBase_ publications’ source code are also available in my public *AlgoForge* repository, named [“FMIC”](https://forge.mql5.io/fmic/FMIC).
|
|
|
|

|