[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Projecting Tomorrows EMA moving average Today



PureBytes Links

Trading Reference Links

Group,

Here is a nice little formula. Enter what you think will be the
projected close for tomorrow and the formula will return and plot the
projected EMA for tomorrow , Today.

//Plotting Projected EMA moving Average for Tomorrow

TC=1070.89;//input tomorrows Projected close
MAP=28;//Input Moving average period

MA1=EMA(C,MAP);
EPX=2/(MAP+1);
MA2=(TC*EPX)+(MA1*(1-EPX));
final=ValueWhen(Cum(1)==LastValue(Cum(1)),MA2,1);
Plot(C,"close",6,64);
Plot(final,"",5,8);

Anthony