ScanTheMarket.com HomeAdd ScanTheMarket.com to your favoritesMake ScanTheMarket.com your homepageScanTheMarket.com
  • Scan The Market
  • Set Market Alerts
  • Back Test Trading Stragegies
  • Download Stock Data
  • Discussion Forums
  • About ScanTheMarket.com
Sign In or Register for FreeClick here for help signing in
Sign In
New? Start Here! Most Popular Scripts Advanced Features Search Scripts Help & Tutorials In The News Online Gift Shop

Run Scan - Back Test - Download Data - Get E-Mail Alerts

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


Run Scan - Back Test - Download Data - Get E-Mail Alerts


Copyright © ScanTheMarket.com, 2010. All Rights Reserved.