This simple stock screener test a Volume peak appearing with a bullish candlestick rebounding on a 200 periods SMA or EMA on the same period.
// Beispielcode Screener// von Markus Schulze
// found on facebook optionschein gruppe
if (volume > (1.1 * average [10](volume))) and average[10](volume) > 50000 then
volpeak =1
endif
BullRev = 0
if (close > average[200](close)) and low < average[200](close) and open < close then
BullRev = 1
elsif (close > exponentialaverage[200](close)) and low <exponentialaverage[200](close) and open < close then
BullRev = 1
else
BullRev = 0
endif
DownTrend = 0
if (low < low[1]) and (low[1]) < low[2] then
DownTrend = 1
endif
Screener[VolPeak and BullRev and DownTrend](volume as "volume")