Feniks2020
New member
Is there a way to convert this script I wrote for my custom watchlist to show as a ChartBubble on the top right hand side of my chart.....or maybe an AddLabel conversion that will change colors with the corresponding data???? When I use addlabel that turns "RED" I can't see the numbers as well. Is it possible to change Value colors on "AddLabel" scripts??? I couldn't figure it out. Any assistance would be greatly appreciated!!
Thanks in Advance
def ValueRSUD = RSI()."RSI" + StochRSI()."FullK" + StochasticFull()."FullK";
def Avg = ValueRSUD/3;
plot Diff = Avg*1;
Diff.DefineColor("RU3", Color.DARK_GREEN);
Diff.DefineColor("RU2", Color.GREEN);
Diff.DefineColor("RU1", Color.LIGHT_GREEN);
Diff.DefineColor("NRML", Color.PINK);
Diff.DefineColor("RD1", Color.RED);
Diff.DefineColor("RD2", Color.DARK_RED);
Diff.DefineColor("RD3", Color.BLACK);
Diff.DefineColor("blk", Color.BLACK);
Diff.DefineColor("wht", Color.WHITE);
Diff.AssignValueColor(if Diff >=88.35 then Diff.Color("wht")
else if Diff <= 88.34 and Diff >= 83.33 then Diff.Color("blk")
else if Diff <= 83.32 and Diff >= 76.67 then Diff.Color("blk")
else if Diff <= 76.66 and Diff >= 23.34 then Diff.Color("blk")
else if Diff <= 23.33 and Diff >= 16.67 then Diff.Color("wht")
else if Diff <= 16.66 and Diff >= 5 then Diff.Color("wht")
else if Diff <= 4.99 and Diff >= 0.1 then Diff.Color("wht")
else Color.WHITE);
AssignBackgroundColor(if Diff >88.35 then Diff.Color("RU3")
else if Diff <= 88.34 and Diff >= 83.33 then Diff.Color("RU2")
else if Diff <= 83.32 and Diff >= 76.67 then Diff.Color("RU1")
else if Diff <= 76.66 and Diff >= 23.34 then Diff.Color("NRML")
else if Diff <= 23.33 and Diff >= 16.67 then Diff.Color("RD1")
else if Diff <= 16.66 and Diff >= 5 then Diff.Color("RD2")
else if Diff <= 4.99 and Diff >= 0.1 then Diff.Color("RD3")
else Color.BLACK);
Thanks in Advance
def ValueRSUD = RSI()."RSI" + StochRSI()."FullK" + StochasticFull()."FullK";
def Avg = ValueRSUD/3;
plot Diff = Avg*1;
Diff.DefineColor("RU3", Color.DARK_GREEN);
Diff.DefineColor("RU2", Color.GREEN);
Diff.DefineColor("RU1", Color.LIGHT_GREEN);
Diff.DefineColor("NRML", Color.PINK);
Diff.DefineColor("RD1", Color.RED);
Diff.DefineColor("RD2", Color.DARK_RED);
Diff.DefineColor("RD3", Color.BLACK);
Diff.DefineColor("blk", Color.BLACK);
Diff.DefineColor("wht", Color.WHITE);
Diff.AssignValueColor(if Diff >=88.35 then Diff.Color("wht")
else if Diff <= 88.34 and Diff >= 83.33 then Diff.Color("blk")
else if Diff <= 83.32 and Diff >= 76.67 then Diff.Color("blk")
else if Diff <= 76.66 and Diff >= 23.34 then Diff.Color("blk")
else if Diff <= 23.33 and Diff >= 16.67 then Diff.Color("wht")
else if Diff <= 16.66 and Diff >= 5 then Diff.Color("wht")
else if Diff <= 4.99 and Diff >= 0.1 then Diff.Color("wht")
else Color.WHITE);
AssignBackgroundColor(if Diff >88.35 then Diff.Color("RU3")
else if Diff <= 88.34 and Diff >= 83.33 then Diff.Color("RU2")
else if Diff <= 83.32 and Diff >= 76.67 then Diff.Color("RU1")
else if Diff <= 76.66 and Diff >= 23.34 then Diff.Color("NRML")
else if Diff <= 23.33 and Diff >= 16.67 then Diff.Color("RD1")
else if Diff <= 16.66 and Diff >= 5 then Diff.Color("RD2")
else if Diff <= 4.99 and Diff >= 0.1 then Diff.Color("RD3")
else Color.BLACK);