Hello,
I would like to see all the stocks that meet this requirement:
- The first half hour volume of trading day is more than 50% of the average daily volume over last 30 days
- The average daily volume of the last 30 days needs to be at least 250000
- The stockprice needs to be above 4
Thanks
gr Marco
This is set for the 5-mn TF (you can change N for other TFs):
Timeframe(Daily)
VolAvg = average[30,0](volume)
//
Timeframe(default)
N = 6 //1=30mn-TF, 2=15mn-TF, 3=10mn-TF, 6=5mn-TF, 30=1mn-TF
FirstHalfHour = 093000
IF OpenTime = FirstHalfHour THEN
c1 = (summation[N](volume)) > (VolAvg / 2)
ENDIF
c2 = close > 4
Cond = c1 AND c2
SCREENER[Cond](VolAvg AS "Vol average")
Hi Roberto,
Thanks. Forgot to mention i need if for the nasdaq. Do i need to change something then?
gr Marco
At line 6 you must write when the first HALF HOUR ends.
edited
Also, in line 7 replace OPENTIME with TIME.
Hi Roberto,
Does not seem to work. Please have a look at screenshot. After 30 minutes this stock had more than 50% of daily average volume but was not showing up in screener.
gr Marco
Hi Roberto,
Any idea why it does not work?
Thanks
Gr Marco
There are some issues:
- to work on a 30-minute boundary, you must use a 30-minute (or lower) TF
- it’s (almost) impossible that a 30-minute VOLUME be > the average volume of the last 30 days!
Anyway, the previous code had a few bugs, this the updated code:
Timeframe(Daily)
VolAvg = average[30,0](volume)
c1 = VolAvg > 250000
//
Timeframe(default)
N = 1 //1=30mn-TF, 2=15mn-TF, 3=10mn-TF, 6=5mn-TF, 30=1mn-TF
FirstHalfHour = 153000
c2 = 0
IF OpenTime = FirstHalfHour THEN
c2 = summation[N](volume) > (VolAvg / 2)
ENDIF
c3 = close > 4
Cond = c1 AND c2 AND c3
SCREENER[Cond](VolAvg AS "Vol average")
Selecting ALL the security lists, I was returned just 2 signals.
Hi Roberto,
It is the 30 day average DAILY volume not the 30day average volume.
gr Marco
What do you mean, what average is it?
You said:
- it’s (almost) impossible that a 30-minute VOLUME be > the average volume of the last 30 days!
But it needs to be the 30 day average daily volume. Then there will be results each day
Hi Roberto,
It is the 30 day average DAILY volume not the 30day average volume.
I know what I wrote. What I can’t understand is what your quoted sentence means!
You are talking about the SAME average, how can they be different from each other?
Hi Roberto,
Seems miscommunication. I will try the code and see if it works. Thanks
gr Marco
Hi Roberto,
Unfortunately still no results while stock “IMVT” meets all the criteria.
gr Marco
Try explaining again your conditions as a list (I may have misunderstood some of them).