Hi, As a part of a more complex code, this simple Bollinger Bands part is giving constantly ‘False signals’. Like for example a low within the bands instead of outside the bands.
I tried all the variantions of different codes from automated strategies, indicators and screeners from the forum, but all with the same results.
Is there anybody who can help me with the right code for a high outside the upper Bollinger band and a low outside the lower Bollinger band?
@Nicolas, Thank you for your response. Unfortunately your suggested code does not work either. The only hit I got from the screener was a candle with a low inside the bands. (see attachement) Do you know possible another code to prevent that this still happens?
It works well for me. The screener should give you a long list of stocks too. Be sure to have the same settings about the BollingerBands on your chart (20 periods and 2 standard deviation).
Yes, Thank you The settings seemed to be the problem. I changed the BollingerBand indicator from exponential moving average to simple moving average. But still I got only two hits, but at least they where right.