deepakgha
(Deepak Gharpure)
10 November 2021 04:21
1
Hii Sir,
Is there a way to code bars like this as shown in attached pic with crossesabove.
Infact i tried to use below code it as below but it didnt worked.
Regards,
Deepak
v1 = CLOSE() > BB(BARS=125, DEFAULT=CentreLine, STDDEV=1.000000);
v1 ChangeTo 1
Bearski79
(Matthew Humphreys)
10 November 2021 09:31
2
Hi,
You can use CrossesAbove to find bars where the close crosses above the BB Centre Line…
v1 = CLOSE() CrossesAbove BB(BARS=125, DEFAULT=CentreLine, STDDEV=1.000000);
v1
Is that what you mean?
deepakgha
(Deepak Gharpure)
10 November 2021 14:37
3
Sir since the previous bar close is not below the centre line it will not show up. Nor it is showing up with the script i shared above.
DEJHMA8
(Darren Hawkins)
10 November 2021 19:57
4
You would need to use the previous low price below the centre line and the current close (or high if you are not concerned about the close) above. Something like this:
V1 = BB(BARS=125, DEFAULT=CentreLine, STDDEV=1.000000);
LOW()[1]<V1 and HIGH()>V1