Move thinkscript label from left to right?

Rojo Grande

Rojo Grande

Member
VIP
Can the label be placed in the upper right corner vs the upper left? If so, h
 
Rojo Grande

Rojo Grande

Member
VIP
I cheated. Because I am a noob to writing code, I edited the study "simple_price", by adding a black label. Then I added it to my chart until I had the other label in the correct position I wanted. I then went and unchecked the show study boxes. I gave it a title of Label_spacer. The reason I used the simple_price study was it was small, and wouldn't slow my computer down noticeably. I'm sure someone could write a code to just add a blank label as a filler.
 
marketstreet

marketstreet

New member
Just an idea - I've only plotted labels in the top left corner, BUT to preserve chart screen real estate I sometimes plot labels in the top left corner of the volume or lower subgraphs. Just make sure that the initial declaration (usually first line of the study) allows for the correct subgraph placement location.

Code:
declare upper;
#or
declare on_volume;
#or
declare lower;

 
mc01439

mc01439

Well-known member
2019 Donor
VIP
@marketstreet - Mind sharing the code for your labels?
 
D

diazlaz

Well-known member
2019 Donor
VIP
@marketstreet very cool of using ASCII and extended UNICODE characters in the labels. very creative!
 
marketstreet

marketstreet

New member
@marketstreet very cool of using ASCII and extended UNICODE characters in the labels. very creative!
Thank you. I use ToS on Mac OS and could simply copy-and-paste the subscript/superscript numbers & arrows into the AddLabel() text strings in my script, but unfortunately they do not render on Windows or if I unselect ToS' system font.

If anyone reading this has come across this issue and found a solution, I previously posed this question in the forum:
https://usethinkscript.com/threads/...al-characters-into-a-thinkscript-string.2025/
 
mc01439

mc01439

Well-known member
2019 Donor
VIP
Thank you. I use ToS on Mac OS and could simply copy-and-paste the subscript/superscript numbers & arrows into the AddLabel() text strings in my script, but unfortunately they do not render on Windows or if I unselect ToS' system font.

If anyone reading this has come across this issue and found a solution, I previously posed this question in the forum:
https://usethinkscript.com/threads/...al-characters-into-a-thinkscript-string.2025/
Thank you for the reply - to bad your method does not work with Windows.
 

Similar threads

Top