Feniks2020
New member
can someone show how to add a vertical line to my chart based on this script?????
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 < 83.33 and Diff > 88.34 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 <= 83.33 and Diff >= 88.34 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);
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 < 83.33 and Diff > 88.34 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 <= 83.33 and Diff >= 88.34 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);