• LIMITED TIME ONLY: Take $40 off VIP with code: BTD40.

Labels positioning - add line break

scott69

Active member
@karmic913

Code:
# spacer
input Spacer = yes;

addlabel(Spacer, "          ", color.BLACK);

# end spacer code

"color" code needs to be same as chart background....play around with it. I use it on all of my charts to control label positioning.
 

SleepyZ

Well-known member
VIP
Lifetime
Is it possible to have a set of labels placed horizontally, and another set under it (new line)?

Thank you
One workaround you might consider is to 'stack' the labels in a separate chart by hiding the price graph, loading the labels in the lower panel, and compressing the chart. Here is an example using 3 of Mobius' Dashboard scripts, with added Header Label scripts for each dashboard.

This approach would be best with many relatively same-sized or smaller labels using on either a flexible or chart grid setup. For smaller label sets, the flexible grid setup would seem to be a better choice.

Here is also the share link so you can see how it was done. http://tos.mx/Z66bXLf When you open the 'charts grids' in the shared link, resize the 'label chart' to your liking.

Capture.jpg
 
Last edited:

scott69

Active member
Yes, I do the same thing with a small chart. I keep all the labels in the upper window. Mine is similar to the above, but the labels span the entire window (perhaps 2" wide X 4" high on a 50" monitor)for a cleaner look. I adjusted both the chart window and the labels to get it to all line up and be centered. It took a little effort, but got good results. I use it as a "dashboard" also.
 

Similar threads

Top