Cobweb Scripts Programs

Home Programs Tools Data About

thinkScript: Enhanced Standard Deviation Channel

Basic Info

Download thinkScript for thinkorswim (ZIP, 3KB)

Open Source Page

Language(s): thinkScript

Description: Thinkorswim has a built-in standard deviation indicator called “StandardDevChannel”. The indicator calculates the standard deviation across the user’s desired time frame and then plots the upper and lower standard deviation around the mean/regression/best fit/trend line. The weakness in the indicator lies with the fact that a direct linear regression is typically a poor representation of stock price movements. My indicator attempts to remedy this by offering the option to calculate the mean line in an exponential manner while still offering the original linear option. This script also adds the option to use a start date alongside the original option of length of time, providing a quality life improvement for the user.

The differences between the original indicator and mine are shown in the image below.

Original Standard Deviation Channel vs Enhanced Standard Deviation Channel
Original indicator (top), my enhanced version (bottom). Enlarged image (PNG, 204KB)

Set Up

There are multiple ways to import thinkScripts, here is one way (for reference, see image below):

  1. Open thinkorswim and go to the "Charts" tab.
  2. Click on the "Edit studies" button. It will look like a volumetric flask.
  3. Click the import button and locate the thinkScript to upload.
thinkScript import reference

If you want an alternative way, you can reference the thinkManual, under "Managing scripts in thinkScript® IDE", step 4.

Settings