I need to write trade script for Heikin-Ashi chart. p/l help

I need to write trade script for Heikin-Ashi chart. p/l help .

Buy Signal: when first GREEN bar created on Heikin-Ashi chart.
sell Signal: when first red bar created on Heikin-Ashi chart.

I need to write trade script for Heikin-Ashi chart. p/l help .

you can check the sample code of heiken ashi from the expert advisor page from this Link