Author
ScanTheMarket
Title
Bollinger Bands
Description
Buys if a recent bar touched the bottom Bollinger band and the current bar is within the bands, or buys if the current high has exceeded the top band by 2%.
Script
# Buy if a previous value was below the low band and is now above
SET Bottom = BBB(CLOSE, 20, 2, EXPONENTIAL)
SET Top = BBT(CLOSE, 20, 2, EXPONENTIAL)
FIND STOCKS WHERE ((REF(CLOSE, 1) < REF(Bottom, 1)) AND
CLOSE > Bottom) OR
# Also buy if the close is above the top band plus 2%
CLOSE > Top * 1.02
Script ID