Is there any way to limit the max loss per month? For example, when backtesting I’d like a strategy to stop trading for the month if losses reach a certain level, then resume at the start of the following month.
Is this something that can be managed within the code?