Hi everybody.
I'm trying to implement the calculation of Heikin-Ashi Candle in a Indicator/EA i'm working on.
The Heikin-Ashi Candle formula is simple to implement, from Wikipedia:
The problem is the calculation of the Open because it require that you know the previous candle but if you are calculating the first Candle which value you take?
So I'm curios to know if someone know which of the follow value would be correct:
I'm trying to implement the calculation of Heikin-Ashi Candle in a Indicator/EA i'm working on.
The Heikin-Ashi Candle formula is simple to implement, from Wikipedia:
QuoteDislikedHeikin-Ashi (平均足, Japanese for 'average bar') candlesticks are a weighted version of candlesticks calculated with the following formula:
Open = (open of previous bar+close of previous bar)/2
Close = (open+high+low+close)/4
High = maximum of high, open, or close (whichever is highest)
Low = minimum of low, open, or close (whichever is lowest)
So I'm curios to know if someone know which of the follow value would be correct:
- The Mid Point of Previous "Normal Candle"
- The High / Low of the Previous Candle
- The Open of the Previous Candle
Thanks in advance!
gspe