But when I apply this method to real-time data taken from Oanda in the program I have written it is slighltly different from the Oanda indicators. The difference is quite small 0.0001-0.0002 but at the same time big enough to be introduced by absolute/fractional error or by lost of precision.
MA as calculated based on previous prices. The reason that your MA calculations do not match Oandas is that you are both using different prices. No 2 brokers have the same Open Close High Lows!!! The benefit of the “unregulated market”.
I don’t know what “different” prices you think he’s using, but since he is using FXTrade, the Oanda platform, I think it’s safe to assume that he’s using Oanda’s prices no?
Good point on the different broker’s quotes though, I am amazed at the huge differences at times.
hmm…yes…should have elaborated. Well, the thing is the Fx companies
readjust historical prices at least once a week (courtesy of the unregulated FX market). In Oanda’s case that maybe every day .
Ergo, the prices they dispense to the public is NOT the same as the prices they use for calculations. The difference may very from a 1 pip on every other candlestick to a lot more than just 1 pip.
While unethical, it is not illegal! (Again, courtesy of the unregulated FX market).
Firstly apologies for necro-bumping this thread but since this issue was first posted, the issue still persists.
We are using Oanda’s own data to redraw the EMA. The results derived are off but close. But off nonetheless by at least 1 pips or more. Oanda provides historical prices and so the EMA has to be derived from historical data as the EMA data isn’t provided.
It’s possible to derive calculations of other averages using Oanda’s own data and those numbers (such as SMA or WMA) do match up nicely. Except for the EMA.
Looks like Oanda derives EMA data in some unique way. Does anyone know how? For example how many backlog candles do they use and in what order are the operations carried out (SMA or Close prices) and if there are any offsets used?
Do note that for EMA the period is only used for applying the weight factor. In principal the closing prices used can go back indefinitely. But it’s still not clear what Oanda’s percise method is for deriving the EMA.