Heiken ashi EA

Hello, first of all I have no idea of ​​programming, that's why I tried to make an EA in pages that facilitate programming, but it does not work as I want to open operation anywhere and not at closing. the EA is very simple, buy when there is a second bullish heiken ashi candle (at the close) and for sale the same but in reverse. someone gives me a hand with this a piece I decode something. is appreciated !!
Razón de la queja: