identification of an ichimoku trend MQL5

 

Hello, I would like to be able to identify a trend via the ichimoku cloud SSA and SSb and I cannot. I don't have an error in my code but I don't have a visual alert on my board. I have the impression that this part of the code is where there is a problem. Can you explain to me how to do this or why it doesn't work please.

Looking forward to reading from you, thank you

       for ( int i = 0 ; i>= NomberPeriod; i++){ 
         int IchimokuDefinition = iIchimoku (symbol,TimeFrame,TenkanPeriod,KijunPeriod,SSBPeriod);

         double SSA[];
         ArraySetAsSeries (SSA, true );
         CopyBuffer (IchimokuDefinition, 2 ,- 26 , 26 ,SSA); 

         double SSB[];
         ArraySetAsSeries (SSB, true );
         CopyBuffer (IchimokuDefinition, 3 ,- 26 , 26 ,SSB);

         
         if (SSA[i] > SSB[i]){
            UpTrend++;
             if (UpTrend>= NomberPeriod){
               TrendUp = 1 ;
               break ;
            } else {
               TrendUp = 0 ;
            }
         }
         
         
         if (SSA[i] < SSB[i]){
            DownTrend++;
             if (DownTrend>= NomberPeriod ){
               TrendDown = 1 ;
               break ;
            } else {
               TrendDown = 0 ;
            }
         }          
      }
Reason: