Topic: could you help me change this file to mql4

i used forex streatergy builder for created streatergy and want to make EA
i used heiken ashi --> black HA bar


                   

case "Black H.A. bar":
                        for (int iBar = iFirstBar; iBar < Bars; iBar++)
                        {
                            Component[4].Value[iBar] = adHaClose[iBar - iPrvs] < adHaOpen[iBar - iPrvs] ? 1 : 0;
                            Component[5].Value[iBar] = adHaClose[iBar - iPrvs] > adHaOpen[iBar - iPrvs] ? 1 : 0;
                        }

please help me change to code for mql4 please.