Here is the CCI (Commodity Channel Index) watchlist column for ThinkorSwim.
- Green = CCI crosses above the oversold level
- Red = CCI crosses below the overbought level
- Blue = CCI crosses the Zero line

thinkScript Code
Code:
#
# TD Ameritrade IP Company, Inc. (c) 2017-2020
#
declare lower;
input length = 14;
input over_sold = -100;
input over_bought = 100;
input showBreakoutSignals = no;
def price = close + low + high;
def linDev = lindev(price, length);
plot CCI = if linDev == 0 then 0 else (price - Average(price, length)) / linDev / 0.015;
def ZeroLine = 0;
def condition1 = CCI crosses above over_sold;
def condition2 = CCI crosses below over_bought;
def condition3 = CCI crosses Zeroline;
AssignBackgroundColor(if condition1 then color.dark_green else if condition2 then color.dark_red else if condition3 then color.blue else color.gray);