OBJECTARROW - How to fill in the Arrow?

To add comments, please log in or register
MacGiamma
85
MacGiamma  

Hi All,


I have the following code to insert a down pointing arrow in my chart


   string fibo_max=StringConcatenate("FiboMax");
   bool high_value_arrow=ObjectCreate(0,fibo_max,OBJ_ARROW,0,date2,highest_value);
   if (high_value_arrow)
   {
   ObjectSetInteger(0,fibo_max,OBJPROP_ARROWCODE,SYMBOL_ARROWDOWN);
   ObjectSetInteger(0,fibo_max,OBJPROP_COLOR,clrViolet);
   ObjectSetInteger(0,fibo_max,OBJPROP_ANCHOR,ANCHOR_BOTTOM);
   ObjectSetInteger(0,fibo_max,OBJPROP_WIDTH,2);
   ObjectSetInteger(0,fibo_max,OBJPROP_BACK,true);
   }
   

The output is the following:


I'd like the body of the arrow also to be violet and not black, what OBJPROP should I use and how? I have tried OBJPROP_BACK but it's not working.


Thanks,

MG

Seng Joo Thio
1209
Seng Joo Thio  
MacGiamma:

Hi All,


I have the following code to insert a down pointing arrow in my chart


The output is the following:


I'd like the body of the arrow also to be violet and not black, what OBJPROP should I use and how? I have tried OBJPROP_BACK but it's not working.


Thanks,

MG

Instead of SYMBOL_ARROWDOWN, try 234.
Keith Watford
Moderator
20378
Keith Watford  
MacGiamma:

I'd like the body of the arrow also to be violet and not black, what OBJPROP should I use and how? I have tried OBJPROP_BACK but it's not working.

Not quite the same arrow, but you can replace SYMBOL_ARROWDOWN with 234 (Up arrow 233)

ObjectSetInteger(0,fibo_max,OBJPROP_ARROWCODE,234);
In the documentation, look up wingdings and you will find all the codes
MacGiamma
85
MacGiamma  
Great, thanks Keith for the super quick answer and the tip
William Roeder
20208
William Roeder  
To add comments, please log in or register