Hi all. I attempted to calculate and plot the percentage of NYSE issues that are advancing using the following:
declare lower;
def Data = close("$ADVN") / ("$ADVN" + "$DECN" + "$UNCH");
plot Close = Round((Data), 2);
plot Ln = .50;
Close.DefineColor("Above", Color.UPTICK);
Close.DefineColor("Below", Color.DOWNTICK);
Close.AssignValueColor(if Close > Ln then Close.Color("Above") else Close.Color("Below"));
Received an Expected Double error. Any help that would enable me to plot the above would be great appreciated.
declare lower;
def Data = close("$ADVN") / ("$ADVN" + "$DECN" + "$UNCH");
plot Close = Round((Data), 2);
plot Ln = .50;
Close.DefineColor("Above", Color.UPTICK);
Close.DefineColor("Below", Color.DOWNTICK);
Close.AssignValueColor(if Close > Ln then Close.Color("Above") else Close.Color("Below"));
Received an Expected Double error. Any help that would enable me to plot the above would be great appreciated.