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

btoandav20 No disconnect / Reconnect doesnt work on live feed



  • Can please anyone tell me in what instance does the reconnect work?

    Ive tried disconnecting the wifi or lan physically and through settings and when I establish the network Backtrader does not reconnect.

    Ive tried playing around with the different variables "reconnections=-1,reconntimeout=1,reconnect=True".

    def notify_data: does not trigger or return any status either on disconnect or reconnect.

    Also can anyone tell me if next() is not being called because no feed or notify_data does not trigger is there any other of detecting no datafeed?



  • Someone might find my findings useful:

    notify_store will return a notification on a disconnect when notify_data will not

    if you increase stream_timeout it seems to help in an instance where you lose a connection and then its restored if the restore happens before the timeout ends.



  • You can create a ticket on GitHub for this issue, at https://github.com/ftomassetti/backtrader-oandav20

    This is not an backtrader issue itself.


Log in to reply
 

});