ICHIMOKUEA waiting condtion?

 

Currently i'm working on a EA based on ichimoku. The order must open when ever there is a kumo breakout and wait for the tenkan line and kijun line to cross over the kumo cloud. The order is opened whenever there is a kumobreakout. How to make it wait?

{

    // BUY SIGNAL

    if (close1>kt1 && close2<kt2 && close1>high_chikou &&

        close1>ssA_chikou && close1>ssB_chikou &&

        CheckChikouObstacle(aux_tenkan_sen, aux_kijun_sen, aux_senkou_span, aux_shift)==TRUE)

    {

      aux=1;

    }  

    // SELL SIGNAL

    if (close1<kb1 && close2>kb2 && close1<low_chikou &&

        close1<ssA_chikou && close1<ssB_chikou &&

        CheckChikouObstacle(aux_tenkan_sen, aux_kijun_sen, aux_senkou_span, aux_shift)==TRUE)

    {

      aux=2;

    }     

  }