RSI watchlist can someone check if this code is correct?

O

otmane

New member
I wrote this code but i dont know if is correct or not sound like not give me good result

def ab =RSI()."RSI" is greater than RSI()."OverBought";
def bb = RSI()."RSI" is less than RSI()."OverSold";
plot value = if ab then 1 else if bb then -1 else 0;
AssignBackgroundColor(if value == 1 then color.YELLOW else if value == -1 then color.CYAN else color.red);
value.AssignValueColor(if value == 1 then color.BLACK else if value == -1 then color.BLACK else color.CURRENT);
 
Last edited by a moderator:
BenTen

BenTen

Administrative
Staff
VIP
There is already an RSI watchlist column built into ToS. Did you check that one yet?
 
O

otmane

New member
There is already an RSI watchlist column built into ToS. Did you check that one yet?
yes ben but the one that i writ is simple 1 or -1 or 0 with color , can you plz cheek if you dont mind if the code if correct thanks
 
Thread starter Similar threads Forum Replies Date
P Watchlist showing the RSI values? Questions 3
I Play sound for RSI on watchlist Questions 4
S RSI watchlist column Questions 4
R Previous day's RSI Questions 0
C Help me write a trend script with RSI and DMI Questions 15

Similar threads

Top