johnpaulca 12,036 posts msg #147419 - Ignore johnpaulca modified |
4/16/2019 4:25:53 PM
You can start with this, tweak it to your liking....TOS
plot Data = close;
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);
|