Moving average Cloud

tenacity11

tenacity11

Member
VIP
Code:
input price = close;

input averageType1 = {default Simple, Exponential, Weighted, Wilders, Hull};

input averageType2 = {default Simple, Exponential, Weighted, Wilders, Hull};

input length1 =10;

input length2 =20;

def ma1 = MovingAverage( averageType = averageType1,price, length1);

def ma2 = MovingAverage( averageType = averageType2,price, length2);

AddCloud(ma2, ma1, Color.lIGHT_GRAY,  Color.pink);
Can this be changed to reflect just a 20 TEMA only?
thanks
 
Last edited by a moderator:
markos

markos

Well-known member
VIP
Warehouse
Sure, most likely. Comment out (put a #) in front of the lines you don't want and see what happens. That's the best way to learn.
Between Wilders & Hull in the Input, place TEMA. Where did this script come from? Jus' curious.
 
tenacity11

tenacity11

Member
VIP
thanks again. I think it came from fun with thinkscript. I found it to be interesting. I'm used to working with the ichimoku cloud so this was very visual for me.
 
markos

markos

Well-known member
VIP
Warehouse
There are a number of Ichimoku things in the universe of think script onenote such as customizations, etc. Some people really like it, I do not use it, but if it works for you that is great! Good Trading, Markos
 
tenacity11

tenacity11

Member
VIP
Yes Markos I noticed there are many Ichimoku things. I just use the cloud and find it works well for me. I like simple and for me less is more.
Good trading to you. I'm very glad I found this site, very helpful and friendly.
 

Top