Hi,
I would like to draw a line on the chart. Or rather a line segment.
After some searching I found that I could draw nice line with Object Create and OBJ_TREND. However these lines are infinite.
I would like to draw a line with a definite start and end point.
I have searched this frum for some hints, but found nothing so far.
Thanks,
Mervyn
Hello Mervyn Guest .
You also need :
- https://www.mql5.com/en/docs/objects/objectsetinteger
- https://www.mql5.com/en/docs/constants/objectconstants/enum_object_property#enum_object_property_integer (OBJPROP_RAY_LEFT / OBJPROP_RAY_RIGHT)
I imagine you have provided 2 points in time and 2 prices already in your trend object.
If so set RAY left and RAY right to false
I've now managed to do this in MT5.
Is there a way I can do something similar in MT4. It does not give access to RAY_LEFT.
I've now managed to do this in MT5.
Is there a way I can do something similar in MT4. It does not give access to RAY_LEFT.
I think in MT4 its RAY ,if im not mistaken
I think in MT4 its RAY ,if im not mistaken
Correct, just RAY, no right or left.
Thanks

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I would like to draw a line on the chart. Or rather a line segment.
After some searching I found that I could draw nice line with Object Create and OBJ_TREND. However these lines are infinite.
I would like to draw a line with a definite start and end point.
I have searched this frum for some hints, but found nothing so far.
Thanks,
Mervyn