Chart backround color based on indicator possible?


Category:
0
0

Not sure how deep in the code this goes and if its possible, but I just had a thought about if I have large grid of FX pairs like so https://i.imgur.com/AP8c8eQ.png  if it would be possible to have the background color  of the chart change based on a indicator so it stands out of the crowd. Thank you for everything you do. I’m a big fan.

RESOLVED
Marked as spam
Posted by (Questions: 1, Answers: 1)
Asked on April 14, 2019 8:20 am
159 views
0
Private answer

AssignBackgroundColor(if 0 == 1 then Color.RED else Color.CURRENT);

Details here: http://tlc.thinkorswim.com/center/reference/thinkScript/Functions/Look—Feel/AssignBackgroundColor.html

Whatever logic you place inside the parenthesis will dictate how and when the first color listed will be applied to the chart. For the example given, it does not change the background color. If you change the “0 = 1” to “0 == 0” the chart background will change to red.

Marked as spam
Posted by (Questions: 37, Answers: 4079)
Answered on April 17, 2019 10:33 am
0

Thank you Mr. Hahn

( at April 21, 2019 6:14 am)