Skip to content

Change the API, so customizable OHLC prices simulation are possible #2579

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

Open
stastnypremysl opened this issue May 1, 2025 · 0 comments
Open
Labels
RFC A request for comment

Comments

@stastnypremysl
Copy link
Collaborator

RFC: Change the API, so customizable OHLC prices simulation are possible

Context

Currently, there are only 2 OHLC prices simulations possible.

  • Fixed Ordering
  • Adaptive Ordering

Both presents some limits. e.g. fixed ordering presents a problem during a bracket orders, when bracket orders are in one bar - it might create unrealistically large profits or large loses, if trades are made in one direction with a tight delta.

I propose, that OHLC prices simulation function is fully customizable (possibly with d-rng e.g. as a inherited class member), so the simulation can set an approach, which is the most realistic for a given pair.

Considerations

This will present a breaking change to the API. As the feature might be possibly required by more people in the future, I would like to propose to consider, whether this might be supported in future versions.

If yes, I would propose to implement it sooner, so the API breaking changes are made until NT has a beta version.

@stastnypremysl stastnypremysl added the RFC A request for comment label May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC A request for comment
Projects
None yet
Development

No branches or pull requests

1 participant