It uses the double bands with the Bollinger correlated indicator. (width)
I don’t have a lot to say, everything is visual and we know the usefulness of bollinger bands.
I am quite satisfied with this indicator that I have the pleasure to present it to you.
I find this indicator very relevant!
However, let’s not forget that the Graal doesn’t exist, it’s nevertheless a visual pleasure for me!
Yours sincerely
IV
//
//============================== Indicateur
BW = BollingerBandWidth[20](close)
MM = average[20](close)
Bolup = MM+STD[20]*1.0
Boldw = MM-STD[20]*1.0
Bol1 = MM+STD[20]*1.0
Bol2 = MM-STD[20]*1.0
Bol3 = MM+STD[20]*2.0
Bol4 = MM-STD[20]*2.0
//============================== Trend Bullsih
CA1 = close > MM
CA2 = BW > BW[1]
Bullsih = CA1 and CA2
if Bullsih then
A = 1
else
A = 0
endif
if A = 1 then
drawcandle(boldw,bolup,boldw,bolup)coloured(28,144,194,50)
R = 28
G = 144
B = 194
T = 250
endif
//============================== Trend Bearish
CV1 = close < MM
CV2 = BW > BW[1]
Bearish = CV1 and CV2
if Bearish then
V = 1
else
V = 0
endif
if V = 1 then
drawcandle(bolup,boldw,bolup,boldw)coloured(100,100,100,50)
R = 100
G = 100
B = 100
T = 250
endif
//============================== No Trend
if A = 0 and V = 0 then
R = 158
G = 158
B = 158
T = 90
endif
//============================== Bande Bolliger
return MM coloured(R,G,B,T) style (line,2) as "Middle", bol1 coloured(R,G,B,T) style (line,2) as "bol1", bol2 coloured(R,G,B,T) style (line,2) as "bol2", bol3 coloured(R,G,B,T) style (line,2) as "bol3", bol4 coloured(R,G,B,T) style (line,2) as "bol4"