For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/
How to shut live trade from outside the strategy?
monil shah 0 last edited by
I am following this blog
It has amazing way to shut the live trade from inside the strategy. Is there any way that I can shut the live trade from outside the strategy i.e. after execution of line cerebro.run()
vladisld last edited by
Basically same technique could be used:
def createCerebroStopSignalHandler(callback): def sigint_handler(a, b): callback() return sigint_handler signal.signal(signal.SIGINT, createCerebroStopSignalHandler(cerebro.runstop)) . . . cerebro.run() . . .