Skip to content

Conversation

@femtotrader
Copy link
Contributor

Closes #146


# 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

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