Guppy Multiple Moving Averages Indicator for ThinkorSwim

diazlaz

Well-known member
2019 Donor
VIP
I ported the Guppy Multiple Moving a few months back, interested to see what you all can do with it to enhance it or maybe even identify potential trading plans and setup.

It's quite an interesting indicator; can be used to observe the patterns and ribbons across various timeframes, to formulate trend direction. Useful across all time frames and style of trading.

Quite a bit of patterns can be developed, and if you observe it enough reusable patterns form with ribbons and color overlap.

Please comment with your experiences and ideas. More information is available here.

MSFT - 1 Minute (Intraday)

N1ywdpA.png


SPX - 1 Minute (Intraday)

V6aRusJ.png


SPX - 1 Hour/6 Months (Swing Trading)

0RkDLVG.png


Code:
#Guppy Multiple Moving Averages
#Daryl Guppy, an Australian trader who is credited with its development.
#
#https://www.investopedia.com/terms/g/guppy-multiple-moving-average.asp
#Discussion: https://usethinkscript.com/threads/guppy-multiple-moving-averages-indicator.732/
#
#Ported on 20190427 V.01 - diazlaz
#

input period0 = 1;
input period1 = 3;
input period2 = 5;
input period3 = 8;
input period4 = 10;
input period5 = 12;
input period6 = 15;
input period7 = 30;
input period8 = 35;
input period9 = 40;
input period10 = 45;
input period11 = 50;
input period12 = 60;
input AvgType = AverageType.Exponential;
input data = close;
input seperator = 1.00;

script Avg
{
input AvgType = AverageType.Exponential;
input length = 10;
input data = close;
plot MA = MovingAverage(AverageType = AvgType, data = close, length = length);
}


DefineGlobalColor("Up", Color.GREEN);
DefineGlobalColor("Down", Color.RED);
DefineGlobalColor("NUp", Color.DARK_GREEN);
DefineGlobalColor("NDown", Color.DARK_RED);
DefineGlobalColor("Neutral", Color.BLUE);

DefineGlobalColor("G1", CreateColor(42,137,71));
DefineGlobalColor("G2", CreateColor(54,156,72));
DefineGlobalColor("G3", CreateColor(69,176,73));
DefineGlobalColor("G4", CreateColor(96,195,85));
DefineGlobalColor("G5", CreateColor(129,215,102));
DefineGlobalColor("G6", CreateColor(164,235,122));
DefineGlobalColor("R1", CreateColor(235,24,9));
DefineGlobalColor("R2", CreateColor(222,34,35));
DefineGlobalColor("R3", CreateColor(209,56,66));
DefineGlobalColor("R4", CreateColor(196,75,91));
DefineGlobalColor("R5", CreateColor(183,91,109));
DefineGlobalColor("R6", CreateColor(170,105,122));

HidePricePlot(yes);

plot MA0 = Avg(AvgType = AvgType, data = data, length = period0);
plot MA1 = Avg(AvgType = AvgType, data = data, length = period1);
plot MA2 = Avg(AvgType = AvgType, data = data, length = period2);
plot MA3 = Avg(AvgType = AvgType, data = data, length = period3);
plot MA4 = Avg(AvgType = AvgType, data = data, length = period4);
plot MA5 = Avg(AvgType = AvgType, data = data, length = period5);
plot MA6 = Avg(AvgType = AvgType, data = data, length = period6);
plot MA7 = Avg(AvgType = AvgType, data = data, length = period7);
plot MA8 = Avg(AvgType = AvgType, data = data, length = period8);
plot MA9 = Avg(AvgType = AvgType, data = data, length = period9);
plot MA10 = Avg(AvgType = AvgType, data = data, length = period10);
plot MA11 = Avg(AvgType = AvgType, data = data, length = period11);
plot MA12 = Avg(AvgType = AvgType, data = data, length = period12);

MA0.SetDefaultColor(COLOR.LIME);

MA1.SetDefaultColor(GlobalColor("G1"));
MA2.SetDefaultColor(GlobalColor("G2"));
MA3.SetDefaultColor(GlobalColor("G3"));
MA4.SetDefaultColor(GlobalColor("G4"));
MA5.SetDefaultColor(GlobalColor("G5"));

MA7.SetDefaultColor(COLOR.RED);
MA7.SetLineWeight(2);

MA8.SetDefaultColor(GlobalColor("R2"));
MA9.SetDefaultColor(GlobalColor("R3"));
MA10.SetDefaultColor(GlobalColor("R4"));
MA11.SetDefaultColor(GlobalColor("R5"));
MA12.SetDefaultColor(GlobalColor("R6"));

MA1.HideTitle();
MA2.HideTitle();
MA3.HideTitle();
MA4.HideTitle();
MA5.HideTitle();
MA6.HideTitle();
MA7.HideTitle();
MA8.HideTitle();
MA9.HideTitle();
MA10.HideTitle();
MA11.HideTitle();
MA12.HideTitle();

MA2.HideBubble();
MA3.HideBubble();
MA4.HideBubble();
MA5.HideBubble();
MA6.HideBubble();
MA8.HideBubble();
MA9.HideBubble();
MA10.HideBubble();
MA11.HideBubble();
MA12.HideBubble();

# End Code Guppy Multiple Moving Averages

Safe and Healthy trading!
 

Attachments

  • 0RkDLVG.png
    0RkDLVG.png
    375.2 KB · Views: 343
  • V6aRusJ.png
    V6aRusJ.png
    344.8 KB · Views: 279
  • N1ywdpA.png
    N1ywdpA.png
    390.6 KB · Views: 330
Last edited by a moderator:
Thanks for keeping the Guppy in the Style that the original Author meant it to be. I've seen way too many people mess with it's intent.

To all: Please read the link to Investopedia at the top. It explains how Mr Guppy meant for it to be used. Thanks!
 
Last edited:
I watched some Guppy videos, and put this indicator on my TOS and it goes on fine, but my candles disappeared. Is there a fix for this issue?
 
Here is a Guppy Cloud (More of an EMA cloud) with some Labels that tell you which direction a particular EMA is trending

The actual EMA's used are slightly different than what one would find in a recommended guppy setup.

With this, Uptrends, Pullback's and Downtrends, really stand out.


Code:
#Guppy Cloud

input price = close;
input exp3 = 3;
input exp5 = 5;
input exp8 = 8;
input exp15 = 15;
input exp34 = 34;
input exp40 = 40;
input exp50 = 50;
input exp60 = 60;
input exp144 = 144;
input exp233 = 233;

input averageType = AverageType.EXPONENTIAL;

def exp3f = MovingAverage(averageType, price, exp3);
def exp5f = MovingAverage(averageType, price, exp5);
def exp8f = MovingAverage(averageType, price, exp8);
def exp15f = MovingAverage(averageType, price, exp15);
def exp34s = MovingAverage(averageType, price, exp34);
def exp40s = MovingAverage(averageType, price, exp40);
def exp50s = MovingAverage(averageType, price, exp50);
def exp60s = MovingAverage(averageType, price, exp60);
def exp233s = MovingAverage(averageType, price, exp233);
def exp144s = MovingAverage(averageType, price, exp144);

def long1f = exp3 > exp5;
def long2f = exp5 > exp8;
def long3f = exp8 > exp15;

def exp8up = exp8f > exp8f[1];
def exp15up = exp15f > exp15f[1];
def exp34up = exp34s > exp34s[1];
def exp50up = exp50s > exp50s[1];
def exp60up = exp60s > exp60s[1];
def exp144up = exp144s > exp144s[1];
def exp233up = exp233s > exp233s[1];

def exp8dn = exp8f < exp8f[1];
def exp15dn = exp15f < exp15f[1];
def exp34dn = exp34s < exp34s[1];
def exp50dn = exp50s < exp50s[1];
def exp60dn = exp60s < exp60s[1];
def exp144dn = exp144s < exp144s[1];
def exp233dn = exp233s < exp233s[1];

AddCloud( exp3f, exp5f, createColor(6,191,0), createColor(209,0,3));
AddCloud( exp5f, exp8f, createColor(6,176,0), createColor(186,0,3));
AddCloud( exp8f, exp15f, createColor(5,153,0), createColor(166,0,3));

AddCloud( exp15f, exp34s, createColor(4,130,0), createColor(145,0,2));
AddCloud( exp34s, exp40s, createColor(4,112,0), createColor(122,0,2));
AddCloud( exp40s, exp50s, createColor(3,97,0), createColor(102,0,2));
AddCloud( exp50s, exp60s, createColor(3,77,0), createColor(79,0,1));
AddCloud( exp60s, exp233s, createColor(2,56,0), createColor(61,0,1));



AddLabel (yes, if exp8up then "8 up" else if exp8dn then "8 Down"  else " ", if exp8up  then CreateColor(39,84,130) else if exp8dn then Color.DARK_RED else color.DARK_GRAY);
AddLabel (yes, if exp15up then "15 up" else if exp15dn then "15 Down"  else " ", if exp15up  then CreateColor(39,84,130) else if exp15dn then Color.DARK_RED else color.DARK_GRAY);
AddLabel (yes, if exp34up then "34 up" else if exp34dn then "34 Down"  else " ", if exp34up  then CreateColor(39,84,130) else if exp34dn then Color.DARK_RED else color.DARK_GRAY);
AddLabel (yes, if exp50up then "50 up" else if exp50dn then "50 Down"  else " ", if exp50up  then CreateColor(39,84,130) else if exp50dn then Color.DARK_RED else color.DARK_GRAY);
AddLabel (yes, if exp60up then "60 up" else if exp60dn then "60 Down"  else " ", if exp60up  then CreateColor(39,84,130) else if exp60dn then Color.DARK_RED else color.DARK_GRAY);

AddLabel (yes, if exp144up then "144 up" else if exp144dn then "144 Down"  else " ", if exp144up  then CreateColor(39,84,130) else if exp144dn then Color.DARK_RED else color.DARK_GRAY);


AddLabel (yes, if exp233up then "233 up" else if exp233dn then "233 Down"  else " ", if exp233up  then CreateColor(39,84,130) else if exp233dn then Color.DARK_RED else color.DARK_GRAY);




#============================================================

# End Code


ETSY, Clearly Trending as the main body of the Guppy is Green, Yellowish, orange at top of Guppy, indicates a pb/retracement at the very least
vzKNiwl.png




BIDU (pretty much solid green)
nFFLqsk.png



What a Bearish setup looks like
lykAmnM.png


Hope you find it usefull
 
Last edited:
I use the code above on this forum and I added the extra MA's. When I select it nothing shows on the chart.

#Guppy Multiple Moving Averages
#Daryl Guppy, an Australian trader who is credited with its development.
#
#https://www.investopedia.com/terms/g/guppy-multiple-moving-average.asp
#Discussion: https://usethinkscript.com/threads/guppy-multiple-moving-averages-indicator.732/
#
#Ported on 20190427 V.01 - diazlaz
#

input period0 = 3;
input period1 = 6;
input period2 = 0;
input period3 = 12;
input period4 = 15;
input period5 = 18;
input period6 = 21;
input period7 = 24;
input period8 = 27;
input period9 = 30;
input period10 = 33;
input period11 = 36;
input period12 = 39;
input period13 = 42;
input period14 = 45;
input period15 = 48;
input AvgType = AverageType.EXPONENTIAL;
input period16 = 51;
input period17 = 54;
input period18 = 57;
input period19 = 60;
input period20 = 63;
input period21 = 66;
input period22 = 200;
input data = close;
input seperator = 1.00;

script Avg
{
input AvgType = AverageType.EXPONENTIAL;
input length = 10;
input data = close;
plot MA = MovingAverage(AverageType = AvgType, data = close, length = length);
}


DefineGlobalColor("Up", Color.GREEN);
DefineGlobalColor("Down", Color.RED);
DefineGlobalColor("NUp", Color.DARK_GREEN);
DefineGlobalColor("NDown", Color.DARK_RED);
DefineGlobalColor("Neutral", Color.BLUE);

DefineGlobalColor("G1", CreateColor(42, 137, 71));
DefineGlobalColor("G2", CreateColor(54, 156, 72));
DefineGlobalColor("G3", CreateColor(69, 176, 73));
DefineGlobalColor("G4", CreateColor(96, 195, 85));
DefineGlobalColor("G5", CreateColor(129, 215, 102));
DefineGlobalColor("G6", CreateColor(164, 235, 122));
DefineGlobalColor("R1", CreateColor(235, 24, 9));
DefineGlobalColor("R2", CreateColor(222, 34, 35));
DefineGlobalColor("R3", CreateColor(209, 56, 66));
DefineGlobalColor("R4", CreateColor(196, 75, 91));
DefineGlobalColor("R5", CreateColor(183, 91, 109));
DefineGlobalColor("R6", CreateColor(170, 105, 122));

HidePricePlot(no);

plot MA0 = Avg(AvgType = AvgType, data = data, length = period0);
plot MA1 = Avg(AvgType = AvgType, data = data, length = period1);
plot MA2 = Avg(AvgType = AvgType, data = data, length = period2);
plot MA3 = Avg(AvgType = AvgType, data = data, length = period3);
plot MA4 = Avg(AvgType = AvgType, data = data, length = period4);
plot MA5 = Avg(AvgType = AvgType, data = data, length = period5);
plot MA6 = Avg(AvgType = AvgType, data = data, length = period6);
plot MA7 = Avg(AvgType = AvgType, data = data, length = period7);
plot MA8 = Avg(AvgType = AvgType, data = data, length = period8);
plot MA9 = Avg(AvgType = AvgType, data = data, length = period9);
plot MA10 = Avg(AvgType = AvgType, data = data, length = period10);
plot MA11 = Avg(AvgType = AvgType, data = data, length = period11);
plot MA12 = Avg(AvgType = AvgType, data = data, length = period4);
plot MA13 = Avg(AvgType = AvgType, data = data, length = period5);
plot MA14 = Avg(AvgType = AvgType, data = data, length = period6);
plot MA15 = Avg(AvgType = AvgType, data = data, length = period7);
plot MA16 = Avg(AvgType = AvgType, data = data, length = period8);
plot MA17 = Avg(AvgType = AvgType, data = data, length = period9);
plot MA18 = Avg(AvgType = AvgType, data = data, length = period10);
plot MA19 = Avg(AvgType = AvgType, data = data, length = period11);
plot MA20 = Avg(AvgType = AvgType, data = data, length = period4);
plot MA21 = Avg(AvgType = AvgType, data = data, length = period5);
plot MA22 = Avg(AvgType = AvgType, data = data, length = period6);


MA0.SetDefaultColor(Color.LIME);

MA1.SetDefaultColor(GlobalColor("G1"));
MA2.SetDefaultColor(GlobalColor("G2"));
MA3.SetDefaultColor(GlobalColor("G3"));
MA4.SetDefaultColor(GlobalColor("G4"));
MA5.SetDefaultColor(GlobalColor("G5"));

MA7.SetDefaultColor(Color.RED);
MA7.SetLineWeight(2);

MA8.SetDefaultColor(GlobalColor("R2"));
MA9.SetDefaultColor(GlobalColor("R3"));
MA10.SetDefaultColor(GlobalColor("R4"));
MA11.SetDefaultColor(GlobalColor("R5"));
MA12.SetDefaultColor(GlobalColor("R6"));

MA1.HideTitle();
MA2.HideTitle();
MA3.HideTitle();
MA4.HideTitle();
MA5.HideTitle();
MA6.HideTitle();
MA7.HideTitle();
MA8.HideTitle();
MA9.HideTitle();
MA10.HideTitle();
MA11.HideTitle();
MA12.HideTitle();

MA2.HideBubble();
MA3.HideBubble();
MA4.HideBubble();
MA5.HideBubble();
MA6.HideBubble();
MA8.HideBubble();
MA9.HideBubble();
MA10.HideBubble();
MA11.HideBubble();
MA12.HideBubble();

# End Code Guppy Multiple Moving Averages
 
I use the code above on this forum and I added the extra MA's. When I select it nothing shows on the chart.
Here ya go:
CuZLYvW.png

Ruby:
#Guppy Multiple Moving Averages
#Daryl Guppy, an Australian trader who is credited with its development.
#
#https://www.investopedia.com/terms/g/guppy-multiple-moving-average.asp
#Discussion: https://usethinkscript.com/threads/guppy-multiple-moving-averages-indicator.732/
#
#Guppy Multiple Moving Averages
#Daryl Guppy, an Australian trader who is credited with its development.
#
#https://www.investopedia.com/terms/g/guppy-multiple-moving-average.asp
#Discussion: https://usethinkscript.com/threads/guppy-multiple-moving-averages-indicator.732/
#
#Ported on 20190427 V.01 - diazlaz
#

input period0 = 3;
input period1 = 6;
input period2 = 9;
input period3 = 12;
input period4 = 15;
input period5 = 18;
input period6 = 21;
input period7 = 24;
input period8 = 27;
input period9 = 30;
input period10 = 33;
input period11 = 36;
input period12 = 39;
input period13 = 42;
input period14 = 45;
input period15 = 48;
input period16 = 51;
input period17 = 54;
input period18 = 57;
input period19 = 60;
input period20 = 63;
input period21 = 66;
input period22 = 200;

input AvgType = AverageType.Exponential;
input data = close;
input seperator = 1.00;

script Avg
{
input AvgType = AverageType.Exponential;
input length = 10;
input data = close;
plot MA = MovingAverage(AverageType = AvgType, data = close, length = length);
}


DefineGlobalColor("Up", Color.GREEN);
DefineGlobalColor("Down", Color.RED);
DefineGlobalColor("NUp", Color.DARK_GREEN);
DefineGlobalColor("NDown", Color.DARK_RED);
DefineGlobalColor("Neutral", Color.BLUE);

DefineGlobalColor("G1", CreateColor(42,137,71));
DefineGlobalColor("G2", CreateColor(54,156,72));
DefineGlobalColor("G3", CreateColor(69,176,73));
DefineGlobalColor("G4", CreateColor(96,195,85));
DefineGlobalColor("G5", CreateColor(129,215,102));
DefineGlobalColor("G6", CreateColor(164,235,122));
DefineGlobalColor("R1", CreateColor(235,24,9));
DefineGlobalColor("R2", CreateColor(222,34,35));
DefineGlobalColor("R3", CreateColor(209,56,66));
DefineGlobalColor("R4", CreateColor(196,75,91));
DefineGlobalColor("R5", CreateColor(183,91,109));
DefineGlobalColor("R6", CreateColor(170,105,122));

HidePricePlot(No);

plot MA0 = Avg(AvgType = AvgType, data = data, length = period0);
plot MA1 = Avg(AvgType = AvgType, data = data, length = period1);
plot MA2 = Avg(AvgType = AvgType, data = data, length = period2);
plot MA3 = Avg(AvgType = AvgType, data = data, length = period3);
plot MA4 = Avg(AvgType = AvgType, data = data, length = period4);
plot MA5 = Avg(AvgType = AvgType, data = data, length = period5);
plot MA6 = Avg(AvgType = AvgType, data = data, length = period6);
plot MA7 = Avg(AvgType = AvgType, data = data, length = period7);
plot MA8 = Avg(AvgType = AvgType, data = data, length = period8);
plot MA9 = Avg(AvgType = AvgType, data = data, length = period9);
plot MA10 = Avg(AvgType = AvgType, data = data, length = period10);
plot MA11 = Avg(AvgType = AvgType, data = data, length = period11);
plot MA12 = Avg(AvgType = AvgType, data = data, length = period12);
plot MA13 = Avg(AvgType = AvgType, data = data, length = period13);
plot MA14 = Avg(AvgType = AvgType, data = data, length = period14);
plot MA15 = Avg(AvgType = AvgType, data = data, length = period15);
plot MA16 = Avg(AvgType = AvgType, data = data, length = period16);
plot MA17 = Avg(AvgType = AvgType, data = data, length = period17);
plot MA18 = Avg(AvgType = AvgType, data = data, length = period18);
plot MA19 = Avg(AvgType = AvgType, data = data, length = period19);
plot MA20 = Avg(AvgType = AvgType, data = data, length = period20);
plot MA21 = Avg(AvgType = AvgType, data = data, length = period21);
plot MA22 = Avg(AvgType = AvgType, data = data, length = period22);


MA0.SetDefaultColor(COLOR.LIME);

MA1.SetDefaultColor(GlobalColor("G1"));
MA2.SetDefaultColor(GlobalColor("G2"));
MA3.SetDefaultColor(GlobalColor("G3"));
MA4.SetDefaultColor(GlobalColor("G4"));
MA5.SetDefaultColor(GlobalColor("G5"));

MA7.SetDefaultColor(COLOR.RED);
MA7.SetLineWeight(2);

MA8.SetDefaultColor(GlobalColor("R2"));
MA9.SetDefaultColor(GlobalColor("R3"));
MA10.SetDefaultColor(GlobalColor("R4"));
MA11.SetDefaultColor(GlobalColor("R5"));
MA12.SetDefaultColor(GlobalColor("R6"));

MA1.HideTitle();
MA2.HideTitle();
MA3.HideTitle();
MA4.HideTitle();
MA5.HideTitle();
MA6.HideTitle();
MA7.HideTitle();
MA8.HideTitle();
MA9.HideTitle();
MA10.HideTitle();
MA11.HideTitle();
MA12.HideTitle();

MA2.HideBubble();
MA3.HideBubble();
MA4.HideBubble();
MA5.HideBubble();
MA6.HideBubble();
MA8.HideBubble();
MA9.HideBubble();
MA10.HideBubble();
MA11.HideBubble();
MA12.HideBubble();

# End Code Guppy Multiple Moving Averages
 
I changed a little and add a cloud between slow and fast moving average, it also show an arrow when all lines are in same direction, I just start learning to thinkscript let me know if anything I can improve.
Code:
input price = close;
input EMA_type = AverageType.SIMPLE;
input slowma1_length = 3;
input slowma2_length = 5;
input slowma3_length = 8;
input slowma4_length = 10;
input slowma5_length = 12;
input slowma6_length = 15;
input fastma1_length = 30;
input fastma2_length = 35;
input fastma3_length = 40;
input fastma4_length = 45;
input fastma5_length = 50;
input fastma6_length = 60;

plot slowma1 = MovingAverage(EMA_type, price, slowma1_length);
plot slowma2 = MovingAverage(EMA_type, price, slowma2_length);
plot slowma3 = MovingAverage(EMA_type, price, slowma3_length);
plot slowma4 = MovingAverage(EMA_type, price, slowma4_length);
plot slowma5 = MovingAverage(EMA_type, price, slowma5_length);
plot slowma6 = MovingAverage(EMA_type, price, slowma6_length);
#fast ema
plot fastma1 = MovingAverage(EMA_type, price, fastma1_length);
plot fastma2 = MovingAverage(EMA_type, price, fastma2_length);
plot fastma3 = MovingAverage(EMA_type, price, fastma3_length);
plot fastma4 = MovingAverage(EMA_type, price, fastma4_length);
plot fastma5 = MovingAverage(EMA_type, price, fastma5_length);
plot fastma6 = MovingAverage(EMA_type, price, fastma6_length);

#set color
#slow color
slowma1.assignValueColor( if slowma1 > slowma6 then Color.GRAY else Color.Violet);
slowma2.assignValueColor( if slowma2 > slowma3 then Color.GRAY else Color.Violet);
slowma3.assignValueColor( if slowma3 > slowma4 then Color.GRAY else Color.Violet);
slowma4.assignValueColor( if slowma4 > slowma5 then Color.GRAY else Color.Violet);
slowma5.assignValueColor( if slowma5 > slowma6 then Color.GRAY else Color.Violet);
slowma6.assignValueColor( if slowma6 < slowma5 then Color.GRAY else Color.Violet);
#fast color
fastma1.assignValueColor( if fastma1 > fastma6 then Color.LIGHT_ORANGE else Color.Red);
fastma2.assignValueColor( if fastma2 > fastma3 then Color.LIGHT_ORANGE else Color.Red);
fastma3.assignValueColor( if fastma3 > fastma4 then Color.LIGHT_ORANGE else Color.Red);
fastma4.assignValueColor( if fastma4 > fastma5 then Color.LIGHT_ORANGE else Color.Red);
fastma5.assignValueColor( if fastma5 > fastma6 then Color.LIGHT_ORANGE else Color.Red);
fastma6.assignValueColor( if fastma6 < fastma5 then Color.LIGHT_ORANGE else Color.Red);

#add arrow
def upsignal = slowma1 > slowma2 and slowma3 > slowma4 and slowma5 > slowma6 and slowma1 > fastma6 and fastma1 > fastma2 and fastma3 > fastma4 and fastma5 > fastma6  ;

plot upsignalplot = upsignal and !upsignal[1];
upsignalplot.setPaintingStrategy(PaintingStrategy.BooLEAN_ARROW_UP);

def downsignal = slowma1 < slowma2 and slowma3 < slowma4 and slowma5 < slowma6 and slowma1 < fastma6 and fastma1 < fastma2 and fastma3 < fastma4 and fastma5 < fastma6  ;

plot downsignalplot = downsignal and !downsignal[1];
downsignalplot.setPaintingStrategy(PaintingStrategy.BooLEAN_ARROW_Down);


#add cloud
#AddCloud(slowema1,   slowema6,   Color.GRAY,  Color.VIOLET);
#AddCloud(fastema1, fastema6, Color.LIGHT_ORANGE, Color.VIOLET);
AddCloud(slowma6, fastma1, Color.LIGHT_GREEN,Color.LIGHT_RED);
 

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
294 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