Chart text Fontcolor change in MQL4

 
hello guys i created a function to print on chart specific text , but the color is default even if i set it differently.
void Info(string NAME , double CORNER , int Y , int X ,string TEXT , int FONTSIZE , string Font ,color FONTCOLOR ){
ObjectCreate(NAME,OBJ_LABEL,0,0,0);
ObjectSetText(NAME , TEXT ,FONTSIZE,FONTCOLOR);
ObjectSet(NAME,OBJPROP_CORNER,CORNER);
ObjectSet(NAME,OBJPROP_XDISTANCE,X);
ObjectSet(NAME,OBJPROP_YDISTANCE,Y);
}
void onTick(){
if (SProfit()> 0 ){Color_Profits = ProfitColor;}else{Color_Profit = LossColor;}
if (BProfit()> 0 ){Color_Profitb = ProfitColor;}else{Color_Profit = LossColor;}
if (EAprofit()> 0 ){Color_Profite = ProfitColor;}else{Color_Profit = LossColor;}
if (ProfitFactor()> 1 ){Color_Profitf = ProfitColor;}else{Color_Profit = LossColor;}




Info ("A" , 0 , 25 ,20 , "Sell trades Profit : ", 10 ,"Agency FB", clrGold ); 
Info ("A1" , 0 , 25 ,200 , DoubleToStr(SProfit(),2), 10 ,"Agency FB",Color_Profits); 
}

and the color is still grey , the font size changes as i change it in the code but the fontcolor is not changing

 
nidalzd:
hello guys i created a function to print on chart specific text , but the color is default even if i set it differently.

and the color is still grey , the font size changes as i change it in the code but the fontcolor is not changing

Solved by adding 

ObjectSet(NAME,OBJPROP_COLOR,clrRed);