Feniks2020
New member
I'm having trouble "finding/correcting the error"...won't accept the last line regardless of what I've tried.
I intend to use the script to track extreme oversold/overbought exhaustion occurrences in my watchlist
Any help would be greatly appreciated!
I intend to use the script to track extreme oversold/overbought exhaustion occurrences in my watchlist
Any help would be greatly appreciated!
Code:
plot ValueRSUD = RSI()."RSI" + StochRSI()."FullK" + StochasticFull()."FullK";
plot Avg = ValueRSUD / 3;
plot Diff = Avg * 1;
Value.SetDefaultColor(GetColor(1));
Avg.SetDefaultColor(GetColor(8));
Diff.SetDefaultColor(GetColor(5));
Diff.SetPaintingStrategy(PaintingStrategy.RSUD);
Diff.SetLineWeight(3);
Diff.DefineColor("Positive and Up", Color.GREEN);
Diff.DefineColor("Positive and Down", Color.DARK_GREEN);
Diff.DefineColor("Negative and Down", Color.RED);
Diff.DefineColor("Negative and Up", Color.DARK_RED);
Diff.DefineColor("Neutral", Color.BLACK);
Diff.AssignValueColor(if Diff >=83.34 then Diff.Color("Positive and Up")
else if Diff < 83.33 > 76.67 then Diff.Color("Positive and Down")
else if Diff > 23.34 < 76.66 then Diff.Color("Neutral")
else if Diff > 16.67 < 23.34 then Diff.Color("Negative and Down")
else if Diff > 5 < 16.67 then Diff.Color("Negative and Up"));
Last edited: