List the values generating a Break Out with a big change of volume (very high ones) compared to the last 10 units.
// 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
// 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
next
avgVol = sum / 21
c3 = avgVol > 1000
// Breakout Var%
breakoutVar = (close - maxvalue)/close*100
// Screener
SCREENER[c1 and c2 and c3](breakoutVar as "Breakout Var%")