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

Feature 146 use any smoother for sobv #147

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

femtotrader
Copy link
Contributor

Closes #146

@@ -48,13 +48,13 @@ def assertIndicatorDelete(self, indicator: Indicator, iterations_no: int = 20):
indicator.remove()

# verify that adding and then removing X input values returns the original output value
self.assertEqual(last_indicator_value, indicator[-1])
self.assertAlmostEqual(last_indicator_value, indicator[-1], places = 5)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about that


# delete the original last input value and add it back and check the original last output value is returned
indicator.remove()
indicator.add(last_input_value)

self.assertEqual(last_indicator_value, indicator[-1])
self.assertAlmostEqual(last_indicator_value, indicator[-1], places = 5)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

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

Successfully merging this pull request may close these issues.

SOBV uses SMA but any smoother from MAFactory could probably be used
1 participant