Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assertion Failed - cannot connect to MBt/EFX

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

    Assertion Failed - cannot connect to MBt/EFX

    Hi,

    I have written a strategy which is multi-instruments FX based and i am using version 6.5.9 with MBT/EFX demo data source for simulate testing.

    When i test run the the strategy, sometimes i got an error message in the log which is:

    "Error on calling 'OnBarUpdate' method for strategy 'ATv1': Index was out of range. Must be non-negative and less than the size of the collection." (Detailed Log file is attached)

    I am not sure what's that cuase the problem as it can run sometimes. After i tried running this strategy about 12 hours, i can't connect to MBT/EFX even i uninstall and install back the NT and i got a "Assertion Failed" message whenever i want to connect to MBT/EFX. (Screenshot is attached)

    Can i know how can i solve this problem and have it connected back to MBT/EFX?
    Attached Files

    #2
    Please check out this tip: http://www.ninjatrader-support.com/v...ead.php?t=3170
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      On the assertion:
      - Tools->Options->please check "show diagnostics tab" -> ok
      - Diagnostics tab: make sure you ONLY have checked options Order, Connect and To File only. NEVER check any other option unless advised by our support team.

      Comment


        #4
        Multi Orders Failed

        Thanks for solving the "Assertion failed" issue.

        But i still got error message on "Object reference not set to an object reference", so i rewrite a simple order code but it can't physically send orders to the simulation account, but the output window shows orders are being processed and filled.

        Can i know how can i get orders filled physically in the simulation account? (Let's just ignore the "Object reference not set" first) Thanks in advance.

        Below is the dummy simple multi instruments order code which only send orders to the simulation account. (File attached as well)

        -Solved-
        Last edited by goover; 03-02-2008, 09:56 PM.

        Comment


          #5
          You can open a chart, connect to a real-time feed, apply your strategy to the chart. In this process, you can select the "Sim101" account which will then direct orders to the simulation account.
          RayNinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Ray View Post
            You can open a chart, connect to a real-time feed, apply your strategy to the chart. In this process, you can select the "Sim101" account which will then direct orders to the simulation account.
            Yes, this is what i have done but i can only see the order process (pending submit, working, filled, etc) by printing the IOrder value in the output window and those filled orders are not shown in the Orders Tab.

            Comment


              #7
              Please check out this tip: http://www.ninjatrader-support.com/v...ead.php?t=4226
              Josh P.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by Geovanny Suaza, 02-11-2026, 06:32 PM
              0 responses
              648 views
              0 likes
              Last Post Geovanny Suaza  
              Started by Geovanny Suaza, 02-11-2026, 05:51 PM
              0 responses
              369 views
              1 like
              Last Post Geovanny Suaza  
              Started by Mindset, 02-09-2026, 11:44 AM
              0 responses
              108 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Started by Geovanny Suaza, 02-02-2026, 12:30 PM
              0 responses
              572 views
              1 like
              Last Post Geovanny Suaza  
              Started by RFrosty, 01-28-2026, 06:49 PM
              0 responses
              574 views
              1 like
              Last Post RFrosty
              by RFrosty
               
              Working...
              X