Break out Screener with High Volume to the Down Side
Forums › ProRealTime English forum › ProScreener support › Break out Screener with High Volume to the Down Side
- This topic has 6 replies, 2 voices, and was last updated 2 years ago by Mary.
-
-
09/18/2022 at 11:35 PM #200986
Hello, the Breakout screener with high volume below only shows stocks for the Upside Breakout.
How can this Screener below be modified to do the same thing for the Downside please? Breakout candle with high volume to the Down side? Thank you.
// today variation
tdVar = (close[0] – open[0]) / open[0] * 100// Var condition
avgVar = 0
for i = 1 to 10 do
if (close[i] > open[i]) then
avgVar = avgVar + (close[i] – open[i]) / open[i]
else
avgVar = avgVar + (open[i] – close[i]) / close[i]
endif
next
avgVar = avgVar / 10 * 100c1 = tdVar > avgVar
// highest break condition
maxValue = highest[10](high)[1]
c2 = maxvalue < close and open < maxvalue// Volume condition
avgVol = average[20](volume)
sum = 0
for i=0 to 20
if (volume[i] < avgVol*10) then
sum = sum + volume[i]
else
sum = sum + avgVol
endif
nextavgVol = sum / 21
c3 = avgVol > 1000// Breakout Var%
breakoutVar = (close – maxvalue)/close*100// Screener
SCREENER[c1 and c2 and c3](breakoutVar as “Breakout Var%”)09/19/2022 at 6:54 AM #200988Try this one (not tested):
12345678910111213141516171819202122232425262728293031// today variationtdVar = (close[0] – open[0]) / open[0] * 100// Var conditionavgVar = 0for i = 1 to 10 doif (close[i] > open[i]) thenavgVar = avgVar + (close[i] – open[i]) / open[i]elseavgVar = avgVar + (open[i] – close[i]) / close[i]endifnextavgVar = avgVar / 10 * 100c1 = tdVar > avgVar// lowest break condition minValue = lowest[10](low)[1]c2 = minValue > close and open > minValue// Volume conditionavgVol = average[20](volume)sum = 0for i=0 to 20if (volume[i] < avgVol*10) thensum = sum + volume[i]elsesum = sum + avgVolendifnextavgVol = sum / 21c3 = avgVol > 1000// Breakout Var%breakoutVar = abs(close – minValue)/close*100// ScreenerSCREENER[c1 and c2 and c3](breakoutVar as “Breakout Var%”)09/19/2022 at 7:33 AM #20099209/19/2022 at 8:36 AM #200995Sorry, it’s due to line 14 having mistakingly joined two lines.
Replace it with these lines:
12// lowest break conditionminValue = lowest[10](low)[1]09/19/2022 at 10:31 PM #201061Hi Robert,
I fixed it as you suggested but now the code is not showing error but returning nothing at all not on nasdaq, not on nyc not, not on any georaphic zone.
this is the code I have fixed as you suggested:
// today variation
tdVar = (close[0] – open[0]) / open[0] * 100
// Var condition
avgVar = 0
for i = 1 to 10 do
if (close[i] > open[i]) then
avgVar = avgVar + (close[i] – open[i]) / open[i]
else
avgVar = avgVar + (open[i] – close[i]) / close[i]
endif
next
avgVar = avgVar / 10 * 100
c1 = tdVar > avgVar
// lowest break condition
minValue = lowest[10](low)[1]
c2 = minValue > close and open > minValue
// Volume condition
avgVol = average[20](volume)
sum = 0
for i=0 to 20
if (volume[i] < avgVol*10) then
sum = sum + volume[i]
else
sum = sum + avgVol
endif
next
avgVol = sum / 21
c3 = avgVol > 1000
// Breakout Var%
breakoutVar = abs(close – minValue)/close*100
// Screener
SCREENER[c1 and c2 and c3](breakoutVar as “Breakout Var%”)09/20/2022 at 7:50 AM #201068Sorry, I missed changing a line. Replace the line just below the line FOR…. with this one:
1if (close[i] < open[i]) then09/20/2022 at 9:31 PM #201110 -
AuthorPosts
Find exclusive trading pro-tools on