How to write in Heikin Ashi candle

1st candle Red and 2nd candle is Green
And 3rd candle crosses above the high of 1st Or 2nd candle both

You can refer to the below conditions based on your requirement-