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

Introduced NumFactory and other factories #1147

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

sgflt
Copy link
Contributor

@sgflt sgflt commented Apr 10, 2024

  • cleaned tests

  • use builders

  • eliminated different parameter orders

  • enforced usage of builder that belongs to series

  • introduced possibility for caching most common constant values - one, two, hundred...

  • TODO remove constructors in BaseBar and use BaseBarBuilder

Partially Fixes #1134.
Fixes #1144

Changes proposed in this pull request:

  • standardize building flow

  • remove ambiguous tons of methods and constructors with random parameter order

  • f.e. Bar had open, hi, lo, close, Serie had open, close, hi, lo...

  • added an entry with related ticket number(s) to the unreleased section of CHANGES.md

@sgflt
Copy link
Contributor Author

sgflt commented Apr 10, 2024

Most of tests passed. Last two I am going to fix later.

Implementing tests is now much easier, Mock* builders fill mandatory fields that are not tested. Implementor may focus only on values, that are related to tested Indicator/Rule/Criterion.

At first glance is visible, what properties of bar Indicator/Rule/Criterion uses.

@sgflt sgflt changed the title Introduced NumFactory Introduced NumFactory and other factories Apr 10, 2024
@sgflt sgflt marked this pull request as ready for review April 14, 2024 15:52
@sgflt sgflt marked this pull request as draft April 21, 2024 20:44
@TheCookieLab
Copy link
Member

Still in draft?

@sgflt sgflt marked this pull request as ready for review May 10, 2024 04:38
sgflt added 12 commits May 19, 2024 13:15
- cleaned tests
- use builders
- eliminated different parameter orders
- enforced usage of builder that belongs to series

- TODO remove constructors in BaseBar and use BaseBarBuilder
- assumed always filled hi, lo
- implementation does cont with nulls and  os builder does too
- no need to manually calculate endTime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants