martyrjohn
Member
Is it possible to create a scanner with the following conditons. Any help would be greatly apperciated.
1.The stock price must be above $5 per share.
2. The stock’s average daily volume over the past 21 days (one trading month) must be at least 250,000 shares per day.
3. The stock’s 10‐day Average Directional Index (ADX) is above 30.
4. Today the stock’s lowest price is at least 8% below the previous day’s close.
5. Today’s close is in the bottom 25% of the day’s range.
6. The ConnorsRSI(3,2,100) value of the stock is below 5
Here is the connorsrsi indicator for the scan:
Thank you for the Help!
1.The stock price must be above $5 per share.
2. The stock’s average daily volume over the past 21 days (one trading month) must be at least 250,000 shares per day.
3. The stock’s 10‐day Average Directional Index (ADX) is above 30.
4. Today the stock’s lowest price is at least 8% below the previous day’s close.
5. Today’s close is in the bottom 25% of the day’s range.
6. The ConnorsRSI(3,2,100) value of the stock is below 5
Here is the connorsrsi indicator for the scan:
Code:
# ConnorsRSI Indicator
declare lower;
input Price_RSI_Period = 3;
input Streak_RSI_Period = 2;
input Rank_Lookback = 100;
# Component 1: the RSI of closing price
def priceRSI = reference RSI("price" = close, "length" = Price_RSI_Period);
# Component 2: the RSI of the streak
def upDay = if close > close[1] then 1 else 0;
def downDay = if close < close[1] then -1 else 0;
def upStreak = if upDay != 0 then upStreak[1] + upDay else 0;
def downStreak = if downDay != 0 then downStreak[1] + downDay else 0;
def streak = upStreak + downStreak;
def streakRSI = reference RSI("price" = streak, "length" = Streak_RSI_Period);
# Component 3: The percent rank of the current return
def ROC1 = close / close[1] - 1;
def rank = fold i = 1 to Rank_Lookback + 1 with r = 0 do
r + (GetValue(ROC1, i, Rank_Lookback) < ROC1) ;
def pctRank = (rank / Rank_Lookback) * 100 ;
# The final ConnorsRSI calculation, combining the three components
plot ConnorsRSI = (priceRSI + streakRSI + pctRank) / 3;
Thank you for the Help!