How to buy at close price (by default it only buys from open price) #892
Answered
by
eervin123
saetthakij
asked this question in
Q&A
-
How can I run a backtest by buying at close price (by default it only buys from open price)`` class wma(Strategy):
bt = Backtest(df3, wma, cash=10_000, commission=.002) |
Beta Was this translation helpful? Give feedback.
Answered by
eervin123
Jan 31, 2023
Replies: 1 comment 1 reply
-
Take a look at the quick start user guide. @kernc lays out the following if you want to trade on close |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
saetthakij
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Take a look at the quick start user guide. @kernc lays out the following if you want to trade on close