Line segments

 

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

 
Mervyn Guest:

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 :

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

 
Thanks, I'll give that a go.
 

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.

 
Mervyn Guest:

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

 
Lorentzos Roussos:

I think in MT4 its RAY ,if im not mistaken

Correct, just RAY, no right or left.

 

Thanks

Reason: