Hi,
I have tried to code the settings recomended by John Bollinger for the Bollinger bands around the 50 SMA with the standard deviation of 2.1.
The intention for the simple screener is to scan for stocks which are crossing, or trading above, the upper or lower band .
Unfortunately the screener does not work. (circle on attachement)
Does anybody have an idea how to fix this?
//Bollinger Bands (John Bollinger 50/2.1 settings)
//Marcel van Vliet
//Date: 05/01/2018
//Bollinger Bands
BBUp = Average[50](close) + (2.1 * STD[50](close))
BBDown = Average[50](close) - (2.1 * STD[50](close))
//Raken BBbandUp
C1= High crosses over BBUp or High > BBUp
//Raken BBbandDown
C2= low crosses under BBDown or low < BBDown
SCREENER [ (C1) or (C2) ]
Thank you ………..
Please, @Nicolas, @Despair, @Juanj, @Lolo, @Somatolysis, @Bolsatrilera, will you take a look at my coding problem and respond to me?
Your code is working perfectly on my platform.
Be sure to add the same settings on the Bollinger bands indicator attached on your price chart than the ones from the code.