How to "show" last days 5EMA in Chart

shekharz

Active Member
#1
Hi

Please guide how can we show on our chart the "Last Day's 5EMA" instead of Current Day's 5EMA.

For example, suppose the Current Day's 5EMA is XXXX in Nifty Future and I am watching it at my screen, but what should I do to see Last Day's 5EMA which was YYYY, how can I see BOTH the EMAs in my chart, what should be the formula for it ..........

Please guide

shekharz
 

shekharz

Active Member
#3
hi,

In Amibroker.

ref(ema(c,5),-1);

It will plot yesterdays value today

johnny

Thanks Very Much. It worked, only I had to sort out how to put those words in My AFL/Code. Worked like a charm .........

shekharz
 

shekharz

Active Member
#5
buddy where u gonna use this if u don't mind ;)
Sure bro !!!

I am using (for "reference" only) 5EMAs to vigil the trend and thought it would be a little wise if I look into "Last Day's 5EMA" instead of "Current Day's 5EMA". Still under observation but it is not meant for trading my trades for sure, just for observation only.

Hope it helps ..........