Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy fails to run automatically

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

    Strategy fails to run automatically

    Hi

    I am trying to run a strategy from a chart, however it fails to run automatically - I have to keep pressing F5 to restart it so that it displays the buy and sell text on the chart.

    The strategy also fails to communicate orders with IB TWS even though I have set the correct IB account in the Strategies property window.

    Is there something simple that I'm doing wrong?

    Thanks
    Chris

    #2
    Hello,

    It sounds like there is a bug your strategy that is making it hang or somehthing. You may find this link helpful for debugging:


    This link will also help to trace your orders:


    And be sure you have set up IB correctly with these steps:
    DenNinjaTrader Customer Service

    Comment


      #3
      Additionally, you may find the LOG tab helpful to indicate any errors within your code. Take a look.
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment


        #4
        Hi

        Thanks for the replies so far.

        I installed the older version of TWS, and rectified a problem with end of session processing, which I found from the log, but still encountered the same issue.

        The code seems fine, but I'll create a new strategy from scratch and re enter the code just to make sure. I'll then do more testing, to see if the problem persists.

        One thought that I've had is that the laptop running the NT strat and TWS has only 1GB of RAM. It isn't running any other program, so may there be low memory problems causing the strategy not to run automatically?

        Comment


          #5
          I would add prints to your code for debugging purposes and have the output window open. There's a disconnect somewhere...

          Your laptop memory should be fine for running this. I have 3 laptops running where one only has 1 GB of RAM and runs fine.
          mrlogik
          NinjaTrader Ecosystem Vendor - Purelogik Trading

          Comment


            #6
            I've resolved the problem. I hadn't enabled automated trading by File -> AT Interface in the Control Center.

            Thanks, everyone, for your help

            Chris

            Comment

            Latest Posts

            Collapse

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