question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Difference in EMA values between pandas-ta and tradingview

See original GitHub issue

Which version are you running? The lastest version is on Github. Pip is for major releases.

0.3.14b0

Do you have TA Lib also installed in your environment?

Yes, 0.4.24

Did you upgrade? Did the upgrade resolve the issue?

Requirement already satisfied

Describe the bug There seem to be discrepancies between EMA values when comparing pandas-ta output with tradingview.

To Reproduce grafik

Expected behavior I would expect the values to match up, meaning the output for 17th of april would be approximately 44419.5 instead of 48125. Since I am using CCXT to fetch the data from bybit I am not sure if this is the right place to ask but I still hope that you can help me. The close data from the dataframe matches up with the values on bybit so I assume the EMAs are calculated a little differently?

Screenshots grafik

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mihakraljcommented, Apr 20, 2022

Yukemaster who opened the issue.

0reactions
twopirllccommented, Apr 20, 2022

@Yukemaster,

Did you test out the other ema parameters as suggested? If so, did it in/validate your conclusion? I want to make sure that your issue was resolved since many Moving Averages are the core of indicators and strategies that people use.

Thanks, KJ

Read more comments on GitHub >

github_iconTop Results From Across the Web

EMA Difference — Indicator by mostafaid3 - TradingView
This indicator simply calculates the difference between two EMAs (one is EMA-10 and the other one is EMA-20) and shows the amount of...
Read more >
Exponential Moving Average - TradingView
The Exponential Moving Average (EMA) is a moving average and technical indicator that reflects and projects the most recent data and information from...
Read more >
Double Exponential Moving Average (EMA) - TradingView
History. The Double EMA was first introduced by Patrick Mulloy in his article from 1994 titled, “Smoothing Data with Faster Moving Averages.” His...
Read more >
pandas ta ema calculation not accurate - Stack Overflow
My question is why are the EMA values inaccurate compared to trading view if you are using the same amount of candles as...
Read more >
Technical Analysis Library in Python 0.1.4 documentation
pow1 (int) – number of periods for the fastest EMA constant. ... The PVO measures the difference between two volume-based moving averages as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found