For some reason my SMA crossover strategy with backtest will not trade during a certain period even though the crossovers happen #873
Unanswered
xemadhaquex
asked this question in
Q&A
Replies: 1 comment
-
I think the below code making the problem: Although SMA crossovers, the following price doesn't touch the limit price. If you remove the below code, more trade will be occurred. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
With the code below I am trying to learn how to use this library but I am having trouble getting some trades to execute during the period of June 2021 to June 2022 even though there are clearly SMA crossovers taking place. Can anyone help me figure out what I am doing wrong?
In this code I am pulling data from yahoo finance and feeding it into a slightly modified version of a sample code I found somewhere for this library which should execute trades whenever there is an SMA crossover.
Beta Was this translation helpful? Give feedback.
All reactions