Another extraordinary thought I have is to code the standard deviation channels based upon an ema, perhaps the 20 at first thought. Just thinkin out loud here, but the right ema for the SD would probably result in the e62 at the lower channel if uptrend or the upper channel if in a downtrend. That way you wouldn't have to worry so much about the 56 bar lookback and it would "flex" with the ema trend.
"remember the mayonaise jar...keep cool but don't freeze"
Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.