Changing color of text in a chart Label (AddLabel)


Category:
0
0

Hi Pete, I have searched a lot and scratched my head on this one although I thought it should have been very easy.

I know how to use AddLabel on a chart and also how to change the color of the actual label using conditional statements (thanks to your awesome tutorials)

Example below I made a label below turns the label green if RSI is above 60 and turns it red if below 60 which is pretty straightforward.

AddLabel(showDiv, RSI , if RSI > 60 then Color.GREEN else Color.RED ) ;

Now what I am trying to do is change the color of the actual text value inside of the label to make the text easier to read.

Any thoughts or help you can offer will be appreciated.

 

Marked as spam
Posted by (Questions: 3, Answers: 4)
Asked on December 17, 2020 9:28 am
1461 views
0
Ooops I tried to edit the original post but it wouldn't let me. The script was supposed to be: AddLabel(yes, RSI , if RSI > 60 then Color.GREEN else Color.RED ) ;
( at December 17, 2020 9:32 am)
0
Private answer

Sorry but that is not possible on Thinkorswim. The following section from the Thinkorswim language reference explains everything that is possible when adding chart labels to a chart:

https://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Look---Feel/AddLabel

 

Marked as spam
Posted by (Questions: 37, Answers: 4087)
Answered on December 17, 2020 9:32 am