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

How can I add compound in trades #1072

Open jasmeenPedalsup opened 8 months ago

jasmeenPedalsup commented 8 months ago

Suppose I am running backtest where it generate multiple trades in background. if I make profit in first trade then after in next trade my entry price will be initial price + profit and so on.

How can I achieve this?

DomiTheProducer commented 6 months ago

I would love to know this myself.