Here is a custom watchlist column for ThinkorSwim that shows when the Hull Moving Average is changing direction. This is great for traders with a lot of stocks on their watchlist and need a quick way to identify potential trend changes via the Hull moving average (HMA) indicator.
When importing the watchlist, be sure to select the timeframe you wish to use. The Daily is set as default.
When importing the watchlist, be sure to select the timeframe you wish to use. The Daily is set as default.
thinkScript Code
Code:
#Follow @Krose_TDA on twitter for updates to this and other custom columns
#TD Ameritrade IP Company, Inc. (c) 2008-2019
#Follow @Krose_TDA on twitter for updates to this and other custom columns
#Input desired parameters using the input statements below
input price = close;
input length = 20;
input WithinBars = 1;
def hma = HullMovingAvg(price,length);
def TriglableBull = hma[1]<hma[2] and hma>hma[1];
def TriglableBear = hma[1]>hma[2]and hma < hma[1];
def trigger = TriglableBear or TriglableBull;
addlabel(yes,if triglableBear then "bear" else if TriglableBull then "Bull" else " ");
Shareable Link
https://tos.mx/x3Rk12ZCredit: Ken RoseAttachments
Last edited by a moderator: