Hi everybody,
This is my first post ever about Forex. I am trying to understand forex and trying to find some hidden misteries in technical analisys. God luck to me
I have been writing some EAs to test my systems (mostly systems from web pages) and found out that every calculation of EMA or any other MA value is not based on closed bars, but looks like is based on bars at that moment.
Ema of 1 hour bar is calculated every minute 60 times within 1 hour. So within 1 hour I have 60 different EMAs.
What I need is to calculate 1 hour EMA only when the bar has total 60 ticks or
I need one and the same EMA value for 60 times (ticks) -same as charts.
Thanks
This is my first post ever about Forex. I am trying to understand forex and trying to find some hidden misteries in technical analisys. God luck to me
I have been writing some EAs to test my systems (mostly systems from web pages) and found out that every calculation of EMA or any other MA value is not based on closed bars, but looks like is based on bars at that moment.
Ema of 1 hour bar is calculated every minute 60 times within 1 hour. So within 1 hour I have 60 different EMAs.
What I need is to calculate 1 hour EMA only when the bar has total 60 ticks or
I need one and the same EMA value for 60 times (ticks) -same as charts.
Thanks