Replies: 1 comment 3 replies
-
Your day of week is never 5. It only generates values 1, 2, 3, 4, and 7. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just started trying
backtesting
for the last 2 days. I am trying to understand the behaviour of buy and sell in thedef next(self)
section. Here is my code:This is a test strategy that buys on Wednesday and sells on Friday (supposedly). And the backtesting results are:
Now I remove the sell action by removing the following code:
However, I got the exact same results. Why is that?
Beta Was this translation helpful? Give feedback.
All reactions