backtesting.py icon indicating copy to clipboard operation
backtesting.py copied to clipboard

How can I add compound in trades

Open jasmeenPedalsup opened this issue 1 year ago • 2 comments

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?

jasmeenPedalsup avatar Oct 11 '23 10:10 jasmeenPedalsup

I would love to know this myself.

DomiTheProducer avatar Dec 14 '23 08:12 DomiTheProducer

It already is the default, when opening a trade if you specify a percentage, then that's % is of overall equity at that time.

singhay avatar Jul 21 '24 21:07 singhay