Risk management methods? pause trading when a maximum loss is incurred?
I am wondering if I can pause trading for like 24 hours when a maximum loss is incurred in a day.
I could check loss of the day in the next() method and then skip it, but is there a smarter way to do that?
Thanks for help.
There shouldn't be any smarter way, because your trading logic is in your
nextmethod (which may of course delegate to some other methods declared by you)
datetimeat which you stop and don't trade again until 24 hours have elapsed.