For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See:

Expected slow down from using stop trail

  • I have a strategy which normally takes ~27 seconds to run. If I add a simple stop trail, like

    self.sell(size = sz, exectype=bt.Order.StopTrail, trailpercent=0.01)

    it takes ~724 seconds to run. I have tried this with varying strategies with seemingly similar slow downs. Is this normal or is there something I can do to speed these things up?

Log in to reply