Skip to content

Instantly share code, notes, and snippets.

@rwilkes
Created March 22, 2020 07:08
Show Gist options
  • Save rwilkes/32ae7cf3dfa597c0bd38d4a222c27337 to your computer and use it in GitHub Desktop.
Save rwilkes/32ae7cf3dfa597c0bd38d4a222c27337 to your computer and use it in GitHub Desktop.
ThinkScript for shading the 10 and 20 day Hull Moving Average
# follow @KRose_TDA on twitter for updates to this and other scripts
# creates a cloud between two HullMovingAvg movingAverage averages
input FastHullMaMaLength = 10;
input SlowHullMaLength = 20;
def FastHull = reference HullMovingAvg("length" = FastHullMaMaLength);
def SlowHull = reference HullMovingAvg("length" = SlowHullMaLength);
AddCloud(FastHull, SlowHull, Color.GREEN, Color.RED, yes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment