Background Color Change based on Price Level


Category:
0
0

Hello,

Is there a simple way to have the chart background color change based on being below or above a certain price level in ThinkorSwim?

Marked as spam
Posted by (Questions: 2, Answers: 1)
Asked on July 17, 2020 10:50 am
180 views
1
Private answer

input priceLevel = 120;
AddCloud(if close > priceLevel then Double.POSITIVE_INFINITY else Double.NaN, if close > priceLevel then Double.NEGATIVE_INFINITY else Double.NaN, Color.GREEN, Color.CURRENT);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on July 17, 2020 2:13 pm