backtesting.py
backtesting.py copied to clipboard
How can I add compound in trades
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?
I would love to know this myself.
It already is the default, when opening a trade if you specify a percentage, then that's % is of overall equity at that time.