• Get $40 off VIP by signing up for a free account! Sign Up

MTF Stacked Moving Averages

i am looking for an indicator that shows bullish / bearish / neutral EMA stacking based on 8,21,34, 55, 89 EMA for multiple timeframes. I assume it is available somewhere (or some version of it that i can customize) in this thread or on the site, but I just haven't been able to find it. After 15 min of searching, I figured it would be easier to just ask. Thank you in advance to pointing me to it. Some of the MTF posts above seemed too complex for me to decipher and customize and even know if they meet my requirement.
 
Solution
i am looking for an indicator that shows bullish / bearish / neutral EMA stacking based on 8,21,34, 55, 89 EMA for multiple timeframes. I assume it is available somewhere (or some version of it that i can customize) in this thread or on the site, but I just haven't been able to find it. After 15 min of searching, I figured it would be easier to just ask. Thank you in advance to pointing me to it. Some of the MTF posts above seemed too complex for me to decipher and customize and even know if they meet my requirement.

try searching for ribbon
https://usethinkscript.com/search/1510158/?q=ribbon&o=date

maybe this,
https://usethinkscript.com/threads/all-the-moving-average-ribbons-for-thinkorswim.3122/#post-135642

or...
i am looking for an indicator that shows bullish / bearish / neutral EMA stacking based on 8,21,34, 55, 89 EMA for multiple timeframes. I assume it is available somewhere (or some version of it that i can customize) in this thread or on the site, but I just haven't been able to find it. After 15 min of searching, I figured it would be easier to just ask. Thank you in advance to pointing me to it. Some of the MTF posts above seemed too complex for me to decipher and customize and even know if they meet my requirement.

try searching for ribbon
https://usethinkscript.com/search/1510158/?q=ribbon&o=date

maybe this,
https://usethinkscript.com/threads/all-the-moving-average-ribbons-for-thinkorswim.3122/#post-135642

or this,
https://usethinkscript.com/threads/slim-ribbon-indicator-for-thinkorswim.245/
 
Solution
Code:
Declare Lower;
Input APC =0;
input Arrows = 0;
input Dotsize = 2;
Def EM8 = ExpAverage(Close,8);
Def EM21 = ExpAverage(Close,21);
Def EM34 = ExpAverage(Close,34);
Def EM55 = ExpAverage(Close,55);
Def EM89 = ExpAverage(Close,89);
Def Cu1 = EM8 >= Max(EM21,Max(EM34,Max(EM55,EM89)));
Def Cu2 = EM21 >= Max(EM34,Max(EM55,EM89));
Def Cu3 = EM34 >=Max(EM55,EM89) ;
Def Cu4 = EM55 >= EM89;
Def CD1 = EM89 >= Max(EM55, Max(EM34, Max(EM21, EM8)));
Def CD2 = EM55 >= Max(EM34, Max(EM21, EM8));
Def CD3 = EM34 >= Max(EM21, EM8);
Def CD4 = EM21 >= EM8;
Def Tup = (Cu1 + Cu2 + Cu3 + Cu4 );
def Tdn = (Cd1 + Cd2 + Cd3 + Cd4 );
Plot Str =.5 *(Tup - Tdn);
Plot StrR = Str[1];
Str.SetPaintingStrategy(PaintingStrategy.LINE);
Str.AssignValueColor(if STR >=Str[1] then Color.Cyan else Color.Magenta);
StrR.SetPaintingStrategy(PaintingStrategy.LINE);
StrR.AssignValueColor(if STRR >=STRR[1] then Color.Cyan else Color.Magenta);
Plot UZA = If(Average(Str,34) + (1.618*StDev(Str,34))) >= 10.5 then 10.5 else Average(Str,34) + (1.618*StDev(Str,34)) ;
Plot LZA = if(Average(Str,34) - (1.618*StDev(Str,34))) <= -10.5 then -10.5 else Average(Str,34) - (1.618*StDev(Str,34));
Plot UL = 10.5;
Plot LL = -10.5;
UL.SetDefaultColor(Color.Gray);
LL.SetDefaultColor(Color.Gray);

UZA.SetPaintingStrategy(PaintingStrategy.LINE);
LZA.SetPaintingStrategy(PaintingStrategy.LINE);
UZA.SetDefaultColor(Color.yellow);
LZA.SetDefaultColor(Color.yellow);
AddCloud(Str,StrR, Color.Cyan,Color.magenta);
def mx = Max(Str,StrR);
def mn = Min(Str,StrR);
Addcloud(mn ,0, Color.Light_Green,Color.Black);
Addcloud(mx ,0, Color.Black,Color.Light_red);
AssignPriceColor(if APC ==1 && Str >= 0 then Color.Cyan else if APC ==1 && Str <0 then Color.Magenta else if APC ==2 && Str >= StrR then Color.Cyan else if APC ==2 && Str <= StrR then color.Magenta else Color.Current);

#ARROWS
plot ArrowDown = if arrows == 1 && (Str Crosses below 0) then 0 else if Arrows ==2 && Str Crosses below StrR then mx else double.nan;
ArrowDown.setpaintingStrategy(paintingStrategy.Arrow_Down);
ArrowDown.setDefaultColor(color.Yellow);
ArrowDown.setLineWeight(dotsize);

plot ArrowUp = if arrows == 1 && (Str crosses above 0 ) then 0 else if Arrows ==2 && Str crosses above StrR then mn else double.nan;
ArrowUp.setpaintingStrategy(paintingStrategy.Arrow_Up);
ArrowUp.setDefaultColor(color.Yellow);
ArrowUp.setLineWeight(dotsize);
 

Join useThinkScript to post your question to a community of 21,000+ developers and traders.

Similar threads

Not the exact question you're looking for?

Start a new thread and receive assistance from our community.

87k+ Posts
192 Online
Create Post

Similar threads

Similar threads

The Market Trading Game Changer

Join 2,500+ subscribers inside the useThinkScript VIP Membership Club
  • Exclusive indicators
  • Proven strategies & setups
  • Private Discord community
  • ‘Buy The Dip’ signal alerts
  • Exclusive members-only content
  • Add-ons and resources
  • 1 full year of unlimited support

Frequently Asked Questions

What is useThinkScript?

useThinkScript is the #1 community of stock market investors using indicators and other tools to power their trading strategies. Traders of all skill levels use our forums to learn about scripting and indicators, help each other, and discover new ways to gain an edge in the markets.

How do I get started?

We get it. Our forum can be intimidating, if not overwhelming. With thousands of topics, tens of thousands of posts, our community has created an incredibly deep knowledge base for stock traders. No one can ever exhaust every resource provided on our site.

If you are new, or just looking for guidance, here are some helpful links to get you started.

What are the benefits of VIP Membership?
VIP members get exclusive access to these proven and tested premium indicators: Buy the Dip, Advanced Market Moves 2.0, Take Profit, and Volatility Trading Range. In addition, VIP members get access to over 50 VIP-only custom indicators, add-ons, and strategies, private VIP-only forums, private Discord channel to discuss trades and strategies in real-time, customer support, trade alerts, and much more. Learn all about VIP membership here.
How can I access the premium indicators?
To access the premium indicators, which are plug and play ready, sign up for VIP membership here.
Back
Top