JJJJJJ11111
Member
hi please help with a code :
i'm looking to scan stock on 1 minute time scale has RSI more than 70 more than 0 time within today.
i'm looking to scan stock on 1 minute time scale has RSI more than 70 more than 0 time within today.
Code:
#
input length = 14;
input over_Bought = 70;
input over_Sold = 30;
input price = close;
input averageType = AverageType.WILDERS;
input showBreakoutSignals = no;
def NetChgAvg = MovingAverage(averageType, price - price[1], length);
def TotChgAvg = MovingAverage(averageType, AbsValue(price - price[1]), length);
def ChgRatio = if TotChgAvg != 0 then NetChgAvg / TotChgAvg else 0;
def RSI = 50 * (ChgRatio + 1);
def OverSold = over_Sold;
def OverBought = over_Bought;
plot scan = overbought >= 1 ;