Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the difference between TEMA, 3×EMA smoothing, and TRIX? #160

Closed
DaveSkender opened this issue Oct 4, 2020 · 2 comments · Fixed by #159, #149 or #161
Closed

What is the difference between TEMA, 3×EMA smoothing, and TRIX? #160

DaveSkender opened this issue Oct 4, 2020 · 2 comments · Fixed by #159, #149 or #161
Labels
question Question and/or answer

Comments

@DaveSkender
Copy link
Owner

I'm using this API for [quote] data (https://docs.coinapi.io/#historical-data) but I can't understand why what I get from these functions (TEMA) from Skender.Stock.Indicators are so different from what I see in the Binance.

@DaveSkender
Copy link
Owner Author

DaveSkender commented Oct 4, 2020

I cannot independently confirm whether Binance or CoinApi is producing good history or indicator data. All I can say is that the TEMA calculation is often misunderstood and may be implemented differently in some cases.

The Stock.Indicators library uses the standard weighted definition:
https://en.wikipedia.org/wiki/Triple_exponential_moving_average

Which is often confused with TRIX or the simpler raw unweighted 3×EMA value.
https://en.wikipedia.org/wiki/Trix_(technical_analysis)

As of version 0.11.5, both the TRIX oscillator and the standard TEMA are included in the library. The TRIX oscillator also includes the raw 3×EMA variant in the output (Ema3). Use whichever is your preference.

@DaveSkender DaveSkender added the question Question and/or answer label Oct 6, 2020
@github-actions
Copy link

This Issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new Issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Question and/or answer
Projects
None yet
1 participant