Percent below the lower BB

I am trying to write a scan that would select from my list, stocks that close at least 1% below the lower BB(20,2). {Close < Lower BB(20,2) * .01] doesnt work but maybe SC has an article about it?

Comments

  • lmkwin
    lmkwin ✭✭
    edited October 2019
    Think of the Lower BB as have a value of 1.00 or 100%

    If you want to get a value to be 10% higher than the Lower BB you would multiply the value of the Lower BB by 1.1 or 100% plus 10%

    If you want to get a value that is 10% lower than the Lower BB you would multiply it by 0.90 or 100% minus 10%

    If you multiply it by .01 you are asking for a value of the Lower BB filter to be 99.99% lower than the current value. Try 0.99 for 1% lower and 1.01 for 1% higher

    The link covers the concept:
    https://support.stockcharts.com/doku.php?id=scans:advanced_scan_syntax:consolidation_breakouts



  • Got it, it works fine. Thank you. It's so obvious when someone smart shows you what to look for.