Heiken Ashi Indicator Returning wrong OHLC Values
-
I am attempting to find flat tops and bottoms of heiken ashi candles across multiple time frames and the code seems to be correct. Basically I am looking for when the open == the low with the heiken ashi indicator on candle ID 1. and when the open == the high of the heiken ashi on candle ID 1.
I used alert messages and it is showing that my conditions are correct and the heiken ashi should be displaying flat tops and bottoms. But the heiken ashi candles on the chart show wicks.


I used alert messages to output the values for documentation. The link of the current state of my program is here.
https://fxdreema.com/shared/a4GOmHpgd -
Nevermind, I was getting confused with how it actually paints the heiken ashi candles. I see now that it pants over the candle behind it. I was being tricked by the "low" and "high" wicks. fxdreema's values are correct, please delete this post.