Am I running examples/goldencross.jl
correctly?
#49
-
It ran without crashing, but I'm not sure if I did it right or if it has a bug, because it looks like it only executed two trades. It shorted AAPL twice on 1980-12-18, and it never made another trade. The AAPL data goes to 2013 too. The Output
Am I doing it wrong?...or is there a bug in the code? |
Beta Was this translation helpful? Give feedback.
Answered by
oliviermilla
Dec 23, 2024
Replies: 1 comment 2 replies
-
Hey @g-gundam, it's not a bug and it behaves as expected. It's just a poor logic, only coded to display how strategies should be written. :) I should have made a cleaner example though. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
g-gundam
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @g-gundam, it's not a bug and it behaves as expected.
It's just a poor logic, only coded to display how strategies should be written. :)
I should have made a cleaner example though.