Download MetaTrader 5
To add comments, please log in or register
Order the development and track its status via your mobile phone.
Carl Schreiber
5938
Carl Schreiber 2014.09.19 10:04 

Hi,

I want to place the volume of a bar as a (text-)number at the bottom of the chart, below the bar and always 5 ticks off the bottom.

That means

1) if the next bar appears this volume-number should shift 1 bar to the left and

2) it should not move up or down if the chart is shifted acc. to new highs or lows.

Is that possible without redrawing all the text-objects at a new bar or at a new high or low?

It should not be a too exotic wish, but a lable sticks at its corner :( and a normal object is moving up and down :(

Regards,

Gooly

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.09.19 11:17  
What you want is possible.
Keith Watford
Moderator
7891
Keith Watford 2014.09.19 12:05  

Although this can be done with labels, it is better to use OBJ_TEXT as they will always remain anchored to time.

It is still relatively complicated to keep moving them so that they are positioned nicely on the chart.

Maybe you could consider coding an indicator in a separate window with the  OBJ_TEXT at a 90 degree angle. That way, they would always be in line and it is easy to do. Also no chance of it obscuring any bars and it only uses a small amount of space.

SYED NAUFAL GADDAFI
1401
SYED NAUFAL GADDAFI 2014.09.19 12:11  
Yeah. I think it is more practical that way.
Carl Schreiber
5938
Carl Schreiber 2014.09.20 08:25  
GumRai:

Although this can be done with labels, it is better to use OBJ_TEXT as they will always remain anchored to time.

It is still relatively complicated to keep moving them so that they are positioned nicely on the chart.

Maybe you could consider coding an indicator in a separate window with the  OBJ_TEXT at a 90 degree angle. That way, they would always be in line and it is easy to do. Also no chance of it obscuring any bars and it only uses a small amount of space.

I agree that's probably the best way, thanks!
Keith Watford
Moderator
7891
Keith Watford 2014.09.20 09:39  

EURJPY


 This is an indicator I did a while back, I think it looks much better than trying to get the text placed nicely on the chart and without obscuring the candles

/
To add comments, please log in or register