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

Handling consecutive buy actions #230

Closed
ibyter opened this issue Oct 9, 2024 · 3 comments
Closed

Handling consecutive buy actions #230

ibyter opened this issue Oct 9, 2024 · 3 comments

Comments

@ibyter
Copy link

ibyter commented Oct 9, 2024

Not sure if this is a bug, or a design decision. But the Outcome function (https://github.com/cinar/indicator/blob/v2.1.5/strategy/outcome.go) does not handle consecutive buy actions.

@cinar
Copy link
Owner

cinar commented Oct 9, 2024 via email

@ibyter
Copy link
Author

ibyter commented Oct 9, 2024

Well in my case, the actions I receive from the strategy will be sent to the broker and executed on the market. However, the outcome is computing a subset of the actions received.

So there is this a discrepancy between the actual outcome, and the outcome computed locally.

@cinar
Copy link
Owner

cinar commented Oct 10, 2024

Unfortunately, it isn't suitable for your specific needs. It currently uses the closing price and recommended action, which can differ significantly from the actual price you've purchased.

Consider it more of a strategy tester for now. For your purposes, a portfolio tracker would be more helpful. I'm planning to add that feature in the future.

@cinar cinar closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2024
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