bboyapollo
New member
Been at this for a week now and still can't seem to figure it out. All I want to do is get rid of the zeros on the plot.
The plot is a % change in Earnings from the previous one recorded. Here is what I have so far...
results as:
PLEASE HELP!! already looked at similar codes none do what I am looking for
The plot is a % change in Earnings from the previous one recorded. Here is what I have so far...
Code:
declare lower;
def EPS = if !isNaN(GetActualEarnings()) then GetActualEarnings() else EPS[1];
def a= EPS;
def b= EPS[1];
def calc = (a-b)/b *100;
plot C;
if calc ==0 {
C =calc[1];
} else {
C = calc;
}
results as:

PLEASE HELP!! already looked at similar codes none do what I am looking for