why can't change the color

 

i want to draw some vertical line displayed on k line.

the first time i write the code and use the color clrRed.

Then now matter how i change the color like"clrBlue,clrGreen,clrYellow" ,the line always diaplayed in red. how to slove this problem?

 here is my code

 void OnStart()
  {
  
   ObjectCreate(1,"object_name",OBJ_VLINE,Time[0],Open[0]);
   ObjectSetInteger(1,"object_name",OBJPROP_COLOR,clrBlue);
  
  }
 

Forum on trading, automated trading systems and testing trading strategies


Hello,

Please use the SRC button when you post code. Thank you.


This time, I edited it for you.

https://www.mql5.com/en/forum/23522
Reason: