For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
Risk management methods? pause trading when a maximum loss is incurred?
-
Hi all,
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
next
method (which may of course delegate to some other methods declared by you)Record the
datetime
at which you stop and don't trade again until 24 hours have elapsed.