Hello guys,
I want to count how many times the price closed above the SMA(20) + 3*STD (=Bollinger Bands with deviation 3 instead 2). The screener-results are completely wrong. I think the syntax isn’t correct. Can someone help me please?
count=0
for i=0 to 30 do
upperBand=average[20](close)[i]+STD[3][i]
if close[i]>upperBand then
count=count+1
endif
next
SCREENER [count>0](count)
Problem solved! I wanted to delete this posting but it’s not possible.