thinkscript

#———————————————–begin code declare upper;input price = close;input displace = 0;def length3ema = 3;def length15ema = 15;def length30ema = 30;def length60ema = 60;plot avgexp3 = ExpAverage(data = price[-displace], length = length3ema);avgexp3.SetDefaultColor(Color.Gray);plot avgexp15 = ExpAverage(data = price[-displace], length = length15ema);avgexp15.SetDefaultColor(Color.Gray);AddCloud(avgexp3, avgexp15);plot avgexp30 = ExpAverage(data = price[-displace], length = length30ema);avgexp30.SetDefaultColor(Color.Gray);plot avgexp60 = ExpAverage(data = price[-displace], length = length60ema);avgexp60.SetDefaultColor(Color.Gray);AddCloud(avgexp30, avgexp60); #———————————————–end code

Leave a Reply