Jump to content
  • 0

How is EMA50 and EMA200 being calculated on the charts as it looks non-standard?



I downloaded historical data from the US 500 via the API. I verified that the 320 data points I downloaded match the UI on the graph. When I calculate the EMA50 and EMA200 on my dataset correctly I get a different result to what is shown on the IG charts. I thought it may a precision difference that could cause the small difference I'm seeing but I checked that and that looks okay to me. I checked my dataset and it's clean without missing data.

I'm doing my calculation in Python as follows:

# Apply the exponential moving averages
df_ta["ema50"] = df_ta["close"].ewm(span=50, adjust=False).mean()
df_ta["ema200"] = df_ta["close"].ewm(span=200, adjust=False).mean()

Just for interest sake I checked the SMA50 and SMA200 and they are an exact match.

There is something strange about the EMA calculation on the charts. Does anyone know what it is?

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • image.png

  • Posts

    • I'm intrigued by NADA Protocol's vision of integrating blockchain technology into the gaming experience. The prospect of owning and trading in-game items through NFTs adds an exciting dimension to gameplay, offering real rewards and enhancing immersion. The marketplace controlled by the NADA token seems promising, providing a platform for users to engage in trading activities within the gaming ecosystem. I'm optimistic about NADA's potential to carve a niche for itself in the competitive gaming world, especially with its focus on creating a fun and economically rewarding gaming environment. Looking forward to exploring this new gaming frontier!
    • I see DIMO's innovative platform as a game-changer in the automotive industry, offering a new level of connectivity and transparency. With DIMO, I can envision having access to valuable vehicle data that can enhance my driving experience and provide me with insights into the car's condition. This not only makes the car-buying process easier but also instills confidence in the vehicle's history and performance. Moreover, the listing of DIMO's native token on Bitget exchange is exciting news as it will create more exposure for the project, potentially leading to further advancements and adoption in the automotive space.    
    • The growth trajectory and innovative approach of Autonolas are indeed impressive, signaling its potential to disrupt both the crypto and AI sectors. With its unique blend of off-chain services and AI capabilities, Autonolas has positioned itself as a key player in the evolving landscape. Furthermore, the listing of its utility token OLAS on Bitget exchange, coupled with a favorable price trend and deposit rebate, adds to the project's appeal and growth prospects. Exciting times ahead for Autonolas and its investors.
  • Create New...