Heiken ashi candles versus regular mt4 candles

 
Hello. Let me start by being a newbie to EA.
I am creating a scalping robot, I am currently in the buy position.
In short, the position is supposed to open if the candle closes above the EMA 12.
The problem is that EA reads the price from ordinary candles and not from Heiken Ashi. The picture shows the moments of entries. How to make the robot open a position based on Heiken Ashi?
Files:
Bezhtytucu.png  56 kb
Reason: