vertical lines

To add comments, please log in or register
paul selvan
486
paul selvan  

hi

these codes draw verticale lines (where  datetime t and string p are known)

ObjectCreate(0, p, OBJ_VLINE, 0, t, 0);
ObjectSetInteger(0, p, OBJPROP_COLOR, clrYellow);
ObjectSetInteger(0, p, OBJPROP_STYLE, STYLE_SOLID);
ObjectSetInteger(0, p, OBJPROP_SELECTABLE, false); 

Here are the lines drawn 

gold

I want to to hide yellow labels  drawn automatically with the lines  (see circled in the screenshot)

Which instruction to use for this purpose ?

thanks  

Mike Tanton
464
Mike Tanton  

Hi Paul...

Try using a Trend Line instead...  then set your Time1 and Time2 to the same value (ie. vertical).... and then set your Price1 and Price2 to something ridiculous... like Price1 = Bid + 1000 and Price2 = Bid -1000....

Should work...

(maybe don't over do it like that - Price1 = Bid + 10... and Price2 = 0).... if you know what I mean

...or InputRayRight = True... might work

Naguisa Unada
346
Naguisa Unada  

Add the following one line.

ObjectSetInteger(0, p, OBJPROP_BACK, true);

Of course, using "OBJ_TREND" is also effective.

Mike Tanton
464
Mike Tanton  
Naguisa Unada:

Add the following one line.

Of course, using "OBJ_TREND" is also effective.

Never thought of that...

OBJPROP_RAY_RIGHT = True would do it.... if you are using a TREND_LINE that is...

paul selvan
486
paul selvan  
ObjectSetInteger(0, p, OBJPROP_BACK, true);


works fine with vetical lines

thank you to all

To add comments, please log in or register