How can I automatically setup IB Gateway with Ninjatrader 7

Discussion in 'Trading Software' started by warcious, Aug 10, 2015.

  1. RedDuke

    RedDuke

    The way we have it done is by custom scripts and ninja events.

    If connection goes down I get a text (ninja can send an email to your cell phone and it will be converted into text).

    Another check is if connection is there, but quotes not coming in - I aggregate the quotes over certain time and if they are missing another text.

    Now, the last one is what if connection to VPS goes down, fox example someone cuts the cable (it has actually happened once). My main VPS writes logs to a totally different VPS, if logs are missing, I get the text.
     
    #11     Aug 17, 2015
  2. warcious

    warcious

    So basically you have all 3 potential failures (no connection to IB, no connection to datafeed and if VPS is down) covered through alerts to email/sms.

    But there is no automation and you basically log in and start it over manually as soon as you can?
     
    #12     Aug 17, 2015
  3. RedDuke

    RedDuke

    Correct. It would be too complex to auto start everything for few reasons. When you have strategies enabled and have open positions with resting orders, you really want to make sure that all is correctly set at IB after restart. I always verify everything in case I bounce either for daily maintenance or due to a failure. For full automation you would actually need to automate closing ninja, reopening ninja, connecting, enabling strategies and verifying positions. Just too complex if not impossible.
     
    #13     Aug 18, 2015
  4. warcious

    warcious

    Great reply, I will do exactly this, and import these alerts in my strategy.
    Once I have worked with it for a while, I will look into more full automation and share my findings with you RedDuke.

    Can I ask you one more thing: Which VPS would you recommend that never crashes, and has a decent latency to the Futures and Forex exchanges in Chicago? I am actually prioritating a decent and fast visual GUI experience towards my VPS from Norway, where I am, instead of extremely low latency. I am testing CNS (https://www.commercialnetworkservices.com/), but not sure I need to pay as much for a decent windows VPS for trading?
     
    #14     Aug 18, 2015
  5. RedDuke

    RedDuke

    It depends on you strategies. We personally use Amazon workspaces. It never crushed (so far). Fills are instant. Our type of trading does not require collocation. They are very cheap.
     
    #15     Aug 18, 2015
  6. warcious

    warcious

    RedDuke: How much memory is enough for NT and IB Gateway, is 1 Gb enough. I have similar requirements as you, so maybe I should try Amazon. How cheap are they?
     
    #16     Aug 18, 2015
  7. warcious

    warcious

    #17     Aug 18, 2015
  8. warcious

    warcious

    Redduke: Can you tell me which exact Amazon product you are using that is so reliable so I dont waste to much time testing them all. Are we talking about the EC2 virtual server product line?
     
    • EC2.png
      EC2.png
      File size:
      102.6 KB
      Views:
      43
    #18     Aug 19, 2015
  9. RedDuke

    RedDuke

    I forgot the specs, but they give you a lot. It costs $35 per month. Basically only free is cheaper :)
     
    #19     Aug 19, 2015
  10. RedDuke

    RedDuke

    You need WorkSpaces product (lower right corner from the picture).
     
    #20     Aug 19, 2015