I am using a Bollinger Band indicator with SMA5 and 1,8 deviation.
I was trying to implement a screener to show occurrencies of closed Bars with Low < Boll- or High > Boll+.
I tried to use the automatic code builder, then adjusted it a bit, but t seems not to work as expected.
How should it be modified to work properly?
Suggestion for an anwser:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
p=5//time period calculation of bollinger
s=1.8//standard deviation
REM Calculate the moving average of Bollinger and the standard deviation
moyenneBollinger=AVERAGE[p](CLOSE)
REM Define standard deviation (can also be done using the STD fonction)
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue