[Question] Custom buy and sell prices #597
-
Hey! First of all thank you for your amazing work! This library is 10/10! My questions is, is that possible to somehow change the buy and open prices? I already wrote my own really simple backtesting function which uses a "worst case scenario". So buy happens on next high, and sell happens on next low. But your library is so much cooler, and I love the visualization. Would it be possible to somehow set these custom prices in backtesting.py? Thank you and have a nice day! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Most simply, increase your |
Beta Was this translation helpful? Give feedback.
Most simply, increase your
Backtest(..., commission=
), which will be applied on every trade.