RSI label and value


Category:
0
0

I see a post from 3 months ago shows how to do the RSI label. https://www.hahn-tech.com/ans/create-labels-for-rsi-dmi-smi/

I am wondering can you do a code where the RSI shows up next to the label. For example RSI 72.30 or whatever it actually is. I hope this makes sense. Thanks. 

Marked as spam
Posted by (Questions: 2, Answers: 0)
Asked on September 16, 2019 7:17 pm
135 views
0
Private answer

Yep. We can do that using two lines from the previous post you referenced:

def rsi = reference RSI(length = 14).”RSI”;
AddLabel(yes, Concat("RSI: ", rsi), if rsi >= 50 then Color.GREEN else Color.RED);

Marked as spam
Posted by (Questions: 37, Answers: 4118)
Answered on September 17, 2019 1:30 pm