Page 1 of 1

Backtest only the last x trades

Posted: Sun Mar 20, 2022 8:57 am
by ThomasG
Hi

I would like my script only to backtest the last 20 closed trades from the last closed bar and back. Is that even possible?

Thanks for any help

Re: Backtest only the last x trades

Posted: Fri Mar 25, 2022 2:17 pm
by processingclouds
Yes this is possible, you can define the time period and only enter the strategy if it is within your set time bounds.