Handling consecutive buy actions
Closed this issue · 3 comments
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.
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.
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.