Buy on open, sell on close #533
-
Can this library allowed me to buy on open and then sell on close? I tried the trade on close = true parameter, but that causes both buys/sells to happen on close, and if that is set to false, then buys/sells happen on open. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Still not at the moment, sorry to say. 😞 You can only buy/sell on each open, or on each close if |
Beta Was this translation helpful? Give feedback.
-
This is a very important capability in my opinion - these days, we have Market on Close orders. As such, if the open gaps below the stop, the stop will be triggered at the stop price which returns fake performance numbers. So ability to sell at open even why buying at close removes the fictitious performance numbers. |
Beta Was this translation helpful? Give feedback.
Still not at the moment, sorry to say. 😞 You can only buy/sell on each open, or on each close if
Backtest(..., trade_on_close=True)
.