I'm trying to convert an indicator I developed in pinescript.
xbars = input(90, title="Div lookback period (bars)?",group = "Dont Change")
hb = math.abs(ta.highestbars(rsi, xbars)) // Finds bar with highest value in last X bars
lb = math.abs(ta.lowestbars(rsi, xbars)) // Finds bar with lowest value in last X bars
this is the code in pinescript.
I have tried to do something similar but it throws an error...
double rsivalue = RSI(14, 3)[0];
Math.Abs(MAX(rsivalue, 90));
Anyone can provide me an insight on how to go around it?
Comment