Change colors of an indicator in the code

 
Hello, I am trying to solve a problem, but I find it difficult. For example, I want the indicator to be blue only if the current buffer is bigger than the one before or exactly the same size.
And red it should be only when the current buffer is smaller than the one before or exactly the same size.

The highlighted below in the image should be all blue.

//+------------------------------------------------------------------+ 
//|                                                   SuperTrend.mq4 | 
//|                                    SuperTrend | Copyright © 2017 | 
//|                                          http://fxprosystems.com | 
//+------------------------------------------------------------------+ 
#property copyright "SuperTrend | Copyright © 2017" 
#property link      "http://fxprosystems.com" 

#property indicator_chart_window 
#property indicator_buffers 4 
#property indicator_color1 DodgerBlue 
#property indicator_color2 Red
#property indicator_width1 3 
#property indicator_width2 3

double TrendUp[]; 
double TrendDown[]; 
int st = 0; 
//extern int SlowerEMA = 6; 

input int CCI_Period=50;
input int ATR_Period=5;

//+------------------------------------------------------------------+ 
//| Custom indicator initialization function                         | 
//+------------------------------------------------------------------+ 
int init() 
  { 
//---- indicators 

   SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 3); 
   SetIndexBuffer(0, TrendUp); 
   SetIndexStyle(1, DRAW_LINE, STYLE_SOLID, 3); 
   SetIndexBuffer(1, TrendDown); 
    
   /*SetIndexStyle(0, DRAW_ARROW, EMPTY); 
   SetIndexArrow(0, 159); 
   SetIndexBuffer(0, TrendUp); 
   SetIndexStyle(1, DRAW_ARROW, EMPTY); 
   SetIndexArrow(1, 159); 
   SetIndexBuffer(1, TrendDown);*/ 
    
   /*for(int i = 0; i < Bars; i++) { 
      TrendUp[i] = NULL; 
      TrendDown[i] = NULL; 
   }*/ 
//---- 
   return(0); 
  } 
//+------------------------------------------------------------------+ 
//| Custor indicator deinitialization function                       | 
//+------------------------------------------------------------------+ 
int deinit() 
  { 
//---- 
   /*for(int i = 0; i < Bars; i++) { 
      TrendUp[i] = NULL; 
      TrendDown[i] = NULL; 
   }*/ 
//---- 
   return(0); 
  } 
//+------------------------------------------------------------------+ 
//| Custom indicator iteration function                              | 
//+------------------------------------------------------------------+ 
int start() 
  { 
    
   int limit, i, counter; 
   double Range, AvgRange, cciTrendNow, cciTrendPrevious, var; 

   int counted_bars = IndicatorCounted(); 
//---- check for possible errors 
   if(counted_bars < 0) return(-1); 
//---- last counted bar will be recounted 
   if(counted_bars > 0) counted_bars--; 

   limit=Bars-counted_bars; 
    
   for(i = limit; i >= 0; i--) { 
      cciTrendNow = iCCI(NULL, 0, CCI_Period, PRICE_TYPICAL, i); 
      cciTrendPrevious = iCCI(NULL, 0, CCI_Period, PRICE_TYPICAL, i+1); 
      
      //st = st * 100; 
      
      
      counter = i; 
      Range = 0; 
      AvgRange = 0; 
      for (counter = i; counter >= i-9; counter--) { 
         AvgRange = AvgRange + MathAbs(High[counter]-Low[counter]); 
      } 
      Range = AvgRange/10; 
      if (cciTrendNow >= st && cciTrendPrevious < st) { 
         TrendUp[i+1] = TrendDown[i+1]; 
      } 
      
      if (cciTrendNow <= st && cciTrendPrevious > st) { 
         TrendDown[i+1] = TrendUp[i+1]; 
      } 
      
      if (cciTrendNow >= st) { 
         TrendUp[i] = Low[i] - iATR(NULL, 0, ATR_Period, i);          
         if (TrendUp[i] < TrendUp[i+1]) { 
            TrendUp[i] = TrendUp[i+1]; 
         } 
      } 
      else if (cciTrendNow <= st) { 
         TrendDown[i] = High[i] + iATR(NULL, 0, ATR_Period, i); 
         if (TrendDown[i] > TrendDown[i+1]) { 
            TrendDown[i] = TrendDown[i+1]; 
         } 
      } 
   } 
          
//---- 
    
//---- 
   return(0); 
  } 
//+------------------------------------------------------------------+