OBJPROP_RAY property not working

 

Hi, I don't know why I'm having an issue with something so easy. 

I draw vertical lines and I don't want them so appear on subwindows.

The solution should be simple: 

ObjectSet("My object name",OBJPROP_RAY,false);

All the other object properties work but not this one. I'm definitely using the updated version of the code, not a profile where the old one is used.

What am I missing?

Thank you.

Documentation on MQL5: Working with DirectX / DXDraw
Documentation on MQL5: Working with DirectX / DXDraw
  • www.mql5.com
DXDraw - Working with DirectX - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 
mt4ski: Hi, I don't know why I'm having an issue with something so easy. I draw vertical lines and I don't want them so appear on subwindows. The solution should be simple: 

All the other object properties work but not this one. I'm definitely using the updated version of the code, not a profile where the old one is used. What am I missing?

Did you read the MQL4 documentation (not MQL5)?

Where in the MQL4 documentation does it say that a Vertical Line graphic object supports the "OBJPROP_RAY" property?

Only in the MQL5 documentation does it state that it supports that property.

EDIT: I tried to add the links to the MQL4 and MQL5 documentation, but for some reason this site is again buggy and removing the links.

OBJ_VLINE - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
OBJ_VLINE - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
  • docs.mql4.com
OBJ_VLINE - Object Types - Objects Constants - Constants, Enumerations and Structures - MQL4 Reference
 
Draw a vertical trend line.
 
Okay thanks guys.