kernc / backtesting.py

:mag_right: :chart_with_upwards_trend: :snake: :moneybag: Backtest trading strategies in Python.
https://kernc.github.io/backtesting.py/
GNU Affero General Public License v3.0
5.04k stars 987 forks source link

Waiting a couple bars or minutes after a trade is closed before getting into another one? #1101

Open Quantbrinx opened 6 months ago

Quantbrinx commented 6 months ago

Hi all,

wondering if there's a way to wait a certain amount of time or bars before entering another trade after one has been already closed. I have tried so many different techniques and no luck so far. If anyone has achieved this please let me know how you did it.

Any help is appreciated! Thanks,

Quantbrinx commented 6 months ago

@kernc