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

How can I support append calculations? #125

Open
zhixiongdu027 opened this issue Jul 12, 2023 · 1 comment
Open

How can I support append calculations? #125

zhixiongdu027 opened this issue Jul 12, 2023 · 1 comment

Comments

@zhixiongdu027
Copy link

zhixiongdu027 commented Jul 12, 2023

For instance, given the existing data stream:

{81.59, 81.06, 82.87, 83.00, 83.61, 83.15, 82.84, 83.99, 84.55};

I calculated the MACD (Moving Average Convergence Divergence) values to be:

{0.618,0.351,0.111,0.416,0.578}
{0.618,0.564,0.474,0.462,0.485}
{0.000,-0.213,-0.363,-0.046,0.093}

Then, I appended two data point to the queue: {84.36,85.53}.

The expected result was:

{0.618,0.351,0.111,0.416,0.578 ,              0.422,0.684   }
{0.618,0.564,0.474,0.462,0.485,                0.473,0.515  }
{0.000,-0.213,-0.363,-0.046,0.093,             -0.050,0.169  }

However, the actual calculation did not yield these results.
Could someone please help me understand what might be going wrong?

@yageek @codeplea @cschanaj

@codeplea
Copy link
Member

Without seeing your code, its impossible to know where you're going wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants