Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Behaviour of Ninjatrader when going live

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Behaviour of Ninjatrader when going live

    Hi,

    I am planning to strategy trade currencies with MB trading.
    1. What happens when when MBT performs maintenance? Does Ninjatrader flattens all positions when it MB trading server comes back online or enter new trades ?

    2. What happens when I close Ninjatrader and reopens it, would my current positions flatten? I

    3. If my PC powers off during a lighting storm, is Ninjatrader smart enough to know which trades were part of the strategy and resume tracking it?

    4. What if Ninjatrader crashes, would all my current trades be tracked when Ninjatrader is started?


    WBH

    #2
    Hello WHB,

    Thank you for posting.

    1. What happens when when MBT performs maintenance? Does Ninjatrader flattens all positions when it MB trading server comes back online or enter new trades ?
    When disconnected, your orders will not flatten. They will stay with the brokers servers and be able to receive them when reconnected.

    2. What happens when I close Ninjatrader and reopens it, would my current positions flatten?
    Your positions will not be flattened when you exit out of NinjaTrader. If you have pending orders or open positions you will get a pop up letting you know that you have these still running.

    3. If my PC powers off during a lighting storm, is Ninjatrader smart enough to know which trades were part of the strategy and resume tracking it?
    If you lose power, your orders will still be accessible since they are submitted with a unique ID and logged with NinjaTrader in the Log Tab of the Control Center.

    4. What if Ninjatrader crashes, would all my current trades be tracked when Ninjatrader is started?Yes, your orders will still be tracked when NinjaTrader is started. This refers to the unique ID that each order is submitted with

    There are also a couple options that can affect how your Strategy will work with a disconnection
    The first is difference in your account position and strategy position, this YouTube video explains this difference -
    Account Position vs. Strategy Position

    I would also read this online help guide resource on the options menu on the strategy tab with NinjaScript and how they can affect live orders.
    http://www.ninjatrader.com/support/h...tegies_tab.htm

    I am also linking a support forum thread on where your orders reside based on your connection
    http://www.ninjatrader.com/support/f...7076#post27076


    Please let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      If you lose power, your orders will still be accessible since they are submitted with a unique ID and logged with NinjaTrader in the Log Tab of the Control Center.
      Is the unique ID generated from within Ninjatrader or from my strategy script ?

      Would the following generate a unique ID ?
      EnterLong(GetPositionSize, "EnterLongPosition");

      Comment


        #4
        Hi WHB,

        The unique is generated by NinjaTrader, not the strategy. All orders will have a unique ID with it, no matter if its a strategy or manual entry.

        This code,
        Code:
        EnterLong(GetPositionSize, "EnterLongPosition");
        Will add a signal name to the code that can be referenced later in the code to close out or cancel that order.

        Please let me know if I can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Get a UPS.

          Put on modem and router. I have a UPS for each, 90 minutes backup.

          Cable modem should still work if power outage is local to you. System wide power outage won't work in that case.



          Originally posted by woohooboy View Post
          Hi,

          I am planning to strategy trade currencies with MB trading.
          1. What happens when when MBT performs maintenance? Does Ninjatrader flattens all positions when it MB trading server comes back online or enter new trades ?

          2. What happens when I close Ninjatrader and reopens it, would my current positions flatten? I

          3. If my PC powers off during a lighting storm, is Ninjatrader smart enough to know which trades were part of the strategy and resume tracking it?

          4. What if Ninjatrader crashes, would all my current trades be tracked when Ninjatrader is started?


          WBH

          Comment


            #6
            Yeah, was thinking about the available options. Another option would be to host this on Amazon EC2. That way I do not have to deal with the power outage issues. But that would mean I need to remote desktop that box just to see my charts.

            Thanks for the suggestion though

            Comment


              #7
              You might want to check an NT partner...

              Speedy VPS or something. Google it or try to search here. Might be better than Amazon ec2.


              Sorry on my phone, else I'd find it.


              B][/B]
              Originally posted by woohooboy View Post
              Yeah, was thinking about the available options. Another option would be to host this on Amazon EC2. That way I do not have to deal with the power outage issues. But that would mean I need to remote desktop that box just to see my charts.

              Thanks for the suggestion though

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              637 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              366 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              107 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              569 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              571 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X