Hello,
Can somebody help me creating a code for the following
I would like to see the stocks that meet all the following requirements:
- Current price is above the 20,50 and 200 day SMA
- The average daily volume in the last week is above 500k
- The current price of the stock is above 10 usd
- In the past 1-3 months there needs to have been a price move from 30-100% within a 2 week timeframe maximal
Thanks
gr Marco
There you go:
Timeframe(Weekly)
PerCent = (close - close[10]) * 100 / close[10] //10 days = 2 weeks
c0 = summation[13]((Percent >= 30) AND (PerCent <= 100)) //13 weeks = 3 months
//
Timeframe(Daily)
Sma20 = average[20,0](close)
Sma50 = average[50,0](close)
Sma200 = average[200,0](close)
c1 = close > Sma20
c2 = close > Sma50
c3 = close > Sma200
c4 = average[5,0](volume) > 500000
c5 = close > 100
Timeframe(default)
SCREENER[c0 AND c1 AND c2 AND c3 AND c4 AND c5](PerCent AS "%")
hello @robertogozzi
C5 I think is Close > 10 not 100,
and I understand the “PerCent” it’s just a variable but I don’t understand the C0, what can be the result of C0, it’s a Boolen ?
Best Reguards
Yes, it’s 10. I used 100 just to filter the output.
C0 is the number of times the % was in the 50-100 range in a week in the last 13 weeks, you need it to be greater than 0.
tks for your answers, so the AND in the condition C0 it’s like a + (AND = +)
Thanks for all your efforts guys:-)
Hi Guys,
I would like to have an extra requirement in the above code. It is point 5 in the following requirements:
I would like to see the stocks that meet all the following requirements:
Current price is above the 20,50 and 200 day SMA
The average daily volume in the last week is above 500k
The current price of the stock is above 10 usd
In the past 1-3 months there needs to have been a price move from 30-100% within a 2 week timeframe maximal
The current price of the stock needs to be below the highest price in point 4 (but not lower then 10% of that max price)
There you go:
Timeframe(Weekly)
PerCent = (close - close[10]) * 100 / close[10] //10 days = 2 weeks
c0 = summation[13]((Percent >= 30) AND (PerCent <= 100)) //13 weeks = 3 months
HHprice = highest[13](close)
TenPerCent = HHprice * 0.90
//
Timeframe(Daily)
Sma20 = average[20,0](close)
Sma50 = average[50,0](close)
Sma200 = average[200,0](close)
c1 = close > Sma20
c2 = close > Sma50
c3 = close > Sma200
c4 = average[5,0](volume) > 500000
c5 = close > 10
c6 = (close < HHprice) AND (close >= TenPerCent)
Timeframe(default)
SCREENER[c0 AND c1 AND c2 AND c3 AND c4 AND c5 AND c6](PerCent AS "%")