InvestorsHub Logo
Followers 11
Posts 2531
Boards Moderated 1
Alias Born 04/03/2009

Re: None

Tuesday, 04/03/2012 3:53:28 PM

Tuesday, April 03, 2012 3:53:28 PM

Post# of 3636
Here's some code I through together this morning to save time. If you want to put 6 EMA's on a chart, just drop this study in and you're good to go. This covers 3, 5, 9, 50, 100 and 200; but, it can be changed to whatever you wish.

Enjoy,

Cyn ~

####


#EMASix

declare upper;

input price = close;
input length1 = 3;
input length2 = 5;
input length3 = 9;
input length4 = 50;
input length5 = 100;
input length6 = 200;

input displace = 0;

plot AvgExp1 = ExpAverage(price[-displace], length1);
AvgExp1.SetDefaultColor(GetColor(8));
AvgExp1.SetLineWeight(2);

plot AvgExp2 = ExpAverage(price[-displace], length2);
AvgExp2.SetDefaultColor(GetColor(0));
AvgExp2.SetLineWeight(2);

plot AvgExp3 = ExpAverage(price[-displace], length3);
AvgExp3.SetDefaultColor(GetColor(6));
AvgExp3.SetLineWeight(2);

plot AvgExp4 = ExpAverage(price[-displace], length4);
AvgExp4.SetDefaultColor(GetColor(5));
AvgExp4.SetLineWeight(3);

plot AvgExp5 = ExpAverage(price[-displace], length5);
AvgExp5.SetDefaultColor(GetColor(8));
AvgExp5.SetLineWeight(3);

plot AvgExp6 = ExpAverage(price[-displace], length6);
AvgExp6.SetDefaultColor(CreateColor(255,200,0));
AvgExp6.SetLineWeight(3);

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.