Navigation

    Backtrader Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    For code/output blocks: Use ``` (aka backtick or grave accent) in a single line before and after the block. See: http://commonmark.org/help/

    Couldn't connect to TWS

    General Code/Help
    2
    2
    1241
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      Wei Jingjue last edited by

      Hi!
      When i tried ibtest.py and my input was(nothing changed )

      --data0 EUR.USD-CASH-IDEALPRO  --timeframe Seconds --compression 1
      

      and i got

      \ibtest>python ibtest.py --data0 EUR.USD-CASH-IDEALPRO --resample --timeframe Seconds --compression 1
      --------------------------------------------------
      Strategy Created
      --------------------------------------------------
      Datetime, Open, High, Low, Close, Volume, OpenInterest, SMA
      ***** STORE NOTIF: <error id=-1, errorCode=502, errorMsg=Couldn't connect to TWS.  Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS "Configure->API" menu.>
      ***** STORE NOTIF: <error id=-1, errorCode=502, errorMsg=Couldn't connect to TWS.  Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS "Configure->API" menu.>
      ***** STORE NOTIF: <error id=-1, errorCode=502, errorMsg=Couldn't connect to TWS.  Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS "Configure->API" menu.>
      ***** STORE NOTIF: <error id=-1, errorCode=502, errorMsg=Couldn't connect to TWS.  Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS "Configure->API" menu.>
      

      Do you meet the same problem ? how to fix it ?
      Thanks in advance

      1 Reply Last reply Reply Quote 0
      • B
        backtrader administrators last edited by

        Sorry, but the information is not enough.

        • Is TWS running?
        • If yes on which port?
        • Have you specified the same port for the sample?
        • Have you (as pointed out in the error message) checked the error message?

          Confirm that "Enable ActiveX and Socket Clients" is enabled on the TWS "Configure->API" menu

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Copyright © 2016, 2017, 2018 NodeBB Forums | Contributors
        $(document).ready(function () { app.coldLoad(); }); }