here is the code:
___________________________________________________________
plot Data = close;
declare lower;
input price = close;
input emAverage = 20;
input smAverage = 20;
def ELeader = emAverage;
def SimLag = smAverage;
def lag = 0.00;
def lag2 = 1.00;
#plot ZeroLine = 0;
#ZeroLine.SetDefaultColor(GetColor(1));
plot ESLine = ExpAverage(price, ELeader) - Average(price, SimLag);
ESLine.SetDefaultColor (Color.YELLOW);
ESLine.AssignValueColor (if ESLine[lag] >= ESLine[lag2]
then Color.GREEN else Color.RED);
ESLine.SetLineWeight(2);
Monday, September 30, 2013
Thursday, May 16, 2013
Subscribe to:
Posts (Atom)