@Mr_Wheeler
You are getting the "too complicated" symbol on the top of your column because watchlists need to have one plot at the most, there are way too many in this script. There are also many many extraneous charting statements which shouldn't be in a watchlist column.
Here is the pared-down version which provides the same logic and data w/o the superfluous code:
Stages Watchlist: Acceleration, Deceleration, Accumulation, Distribution extracted from:
https://usethinkscript.com/threads/...tion-indicator-for-thinkorswim.951/#post-7724
Shared Watchlist column link: http://tos.mx/3XF6kkW Click here for --> Easiest way to load shared links
You are getting the "too complicated" symbol on the top of your column because watchlists need to have one plot at the most, there are way too many in this script. There are also many many extraneous charting statements which shouldn't be in a watchlist column.
Here is the pared-down version which provides the same logic and data w/o the superfluous code:
Stages Watchlist: Acceleration, Deceleration, Accumulation, Distribution extracted from:
https://usethinkscript.com/threads/...tion-indicator-for-thinkorswim.951/#post-7724
Shared Watchlist column link: http://tos.mx/3XF6kkW Click here for --> Easiest way to load shared links
Ruby:
input MAlength = 21;
def WAD = AccumDistBuyPr();
def VMA = Average(WAD, MAlength);
def vwma8 = Sum(volume * close, 8) / Sum(volume, 8);
def vwma21 = Sum(volume * close, 21) / Sum(volume, 21);
def vwma34 = Sum(volume * close, 34) / Sum(volume, 34);
def bullish = if vwma8 > vwma21 and vwma21 > vwma34 then 1 else 0;
def bearish = if vwma8 < vwma21 and vwma21 < vwma34 then 1 else 0;
def distribution = if !bullish and !bearish then 1 else 0;
AddLabel (yes, if bullish then "Stage: Acceleration" else if bearish then "Stage: Deceleration" else if close >= VMA then "Stage: Accumulation" else "stage: Distribution", if bullish then Color.GREEN else if bearish then Color.RED else if close >= VMA then Color.YELLOW else Color.ORANGE);
Last edited: