How to code bars with crossesabove

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

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?

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.

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