4 Colors

Too tired to talk today, so I’ll just let the music play…


   ////strength sellable
      
   if (i>0 && RSI2[i]-RSI2[ArrayMinimum(RSI2,5,i)]>80 && iHigh(symbol,0,iHighest(symbol,0,MODE_HIGH,30,i-1))>iHigh(symbol,0,iHighest(symbol,0,MODE_HIGH,44,i+31))
         && RSI2[ArrayMinimum(RSI2,12,i)]>1){     
             
        ObjectCreate(0,"Eightyyy"+i,OBJ_TREND,1,Time[i],RSI2[i],Time[ArrayMinimum(RSI2,4,i)],RSI2[ArrayMinimum(RSI2,4,i)]);
            ObjectSetInteger(0,"Eightyyy"+i,OBJPROP_RAY_RIGHT,false);
            ObjectSet("Eightyyy"+i,OBJPROP_COLOR,clrOrange);
             ObjectSet("Eightyyy"+i,OBJPROP_WIDTH,12); 
             ObjectSet("Eightyyy"+i,OBJPROP_BACK,1);   
   }
   
   
      ////strength not sellable
      
   else if (RSI2[i]-RSI2[ArrayMinimum(RSI2,4,i)]>79 && RSI2[ArrayMinimum(RSI2,24,i)]>1){     
             
        ObjectCreate(0,"Eightyyy"+i,OBJ_TREND,1,Time[i],RSI2[i],Time[ArrayMinimum(RSI2,4,i)],RSI2[ArrayMinimum(RSI2,4,i)]);
            ObjectSetInteger(0,"Eightyyy"+i,OBJPROP_RAY_RIGHT,false);
            ObjectSet("Eightyyy"+i,OBJPROP_COLOR,clrCyan);
             ObjectSet("Eightyyy"+i,OBJPROP_WIDTH,12); 
             ObjectSet("Eightyyy"+i,OBJPROP_BACK,1);   
   }
   
   
   
   ////weakness buyable
   
     if (i>0 && RSI2[ArrayMaximum(RSI2,4,i)]-RSI2[i]>78 && iLow(symbol,0,iLowest(symbol,0,MODE_LOW,30,i-1))<iLow(symbol,0,iLowest(symbol,0,MODE_LOW,30,i+31))
         && RSI2[ArrayMaximum(RSI2,12,i)]<99){     
        ObjectCreate(0,"Eightyyy"+i,OBJ_TREND,1,Time[i],RSI2[i],Time[ArrayMaximum(RSI2,4,i)],RSI2[ArrayMaximum(RSI2,4,i)]);
            ObjectSetInteger(0,"Eightyyy"+i,OBJPROP_RAY_RIGHT,false);
            ObjectSet("Eightyyy"+i,OBJPROP_COLOR,clrChartreuse);
             ObjectSet("Eightyyy"+i,OBJPROP_WIDTH,12); 
             ObjectSet("Eightyyy"+i,OBJPROP_BACK,1); 
        
     }
     
     
       ////weakness not buyable
   
    else if (RSI2[ArrayMaximum(RSI2,4,i)]-RSI2[i]>78){     
        ObjectCreate(0,"Eightyyy"+i,OBJ_TREND,1,Time[i],RSI2[i],Time[ArrayMaximum(RSI2,4,i)],RSI2[ArrayMaximum(RSI2,4,i)]);
            ObjectSetInteger(0,"Eightyyy"+i,OBJPROP_RAY_RIGHT,false);
            ObjectSet("Eightyyy"+i,OBJPROP_COLOR,clrCrimson);
             ObjectSet("Eightyyy"+i,OBJPROP_WIDTH,12); 
             ObjectSet("Eightyyy"+i,OBJPROP_BACK,1); 
        
     }