Hello
How can I scan for the volume for a specific barindex (time 3.30 pm) bar? I tried the following code? But it is not working.
if time >= 152900 then
startbar = barindex
endif
if time >= 154600 then
startbar = 0
endif
myvolume = volume
v1 = Average[20](myvolume)
if volume > v1[1] and startbar = 1 then
c1=1
else
c1=0
endif
criterium = volume
screener [c1] (criterium as "volume")
I would like to screens for stocks that meet the following criterias:
After the first 15 minutes open range bar (3.30 pm) in Switzerland. I would like to see stocks that 15 minutes open range bar volume is bigger than the average[20](volume) in the 15 minutes timeframe.
Thanks for your help and support.
Onar Snow
Try this:
c1 = 0
if OpenTime = 153000 then
c1 = volume > Average[20](volume)
endif
screener[c1](volume as "volume")
@robertogozzi
Thanks for your help. I tested the code today at 3.30 pm. But the screener is empty 🙁
c1= 0
if OpenTime = 153000 then
c1 = volume > Average[20](volume)
endif
screener[c1](volume as "volume")
Please do not use the leading ”@“ with usernames unless you are posting in a huge thread and want to refer one specific user among many.
It’s just the two of us!
My fault, I forgot that ProScreener only supports TIME, not OpenTime:
c1 = 0
if Time = 154500 then
c1 = volume > Average[20](volume)
endif
screener[c1](volume as "volume")
so you have to use the time the candle clises, not when it opens.
Of course the condition will be true only at that time, unless you remove line 1.
I tested your suggestion with 1 minute timeframe. Screener is empty -:)
c1 = 0
if Time = 101800 then
c1 = close > close[1]
endif
screener[c1](time as "volume")
Thanks for your support.
It works for me, but there must be a candle at that exact time (the signal only lasts one bar, so at 101900 it will be lost, unless you remove line 1) and that candle must meet conditions.
Are you using V10.3 or V11?
I am using Prorealtime V11. It do not work.
v10.3 with IG.
I only have v11 with eod data (not intraday).