Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Max Instruements in multi-instrument strategy

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

    Max Instruements in multi-instrument strategy

    I am attempting to run a multi-instrument strategy. When I add 14 extra symbols (15 total including my original selection) everything runs fine and I get results.

    When I add even 1 more, the backtester runs but no trades show up. There aren't any errors in the log tab though.

    Is there a limit to the number of instruments I can add in a strategy?

    #2
    Hi Bflotrader3,

    Thank you for your post.

    There is no limit to the number of instruments you can add in a strategy.

    What time frame are you running the backtest on?

    What is the instrument you are trying to add?

    Ensure that you have the correct amount of data available for the latest instrument that you are trying to add.

    You can check this by going to Tools -> Historical Data Manager -> Edit
    http://www.ninjatrader.com/support/h...ml?editing.htm
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      It looks like I had a symbol with no data which was causing the issue. It's odd that no error shows up in the log, it just fails silently.

      Now that I have that fixed, I've come across something else odd.

      When I add 16 symbols and run the backtest I get about 60 trades. When I add 16 more symbols (for a total of 32 added symbols) I get about 12 trades, even though the original 16 symbols that I got 60 trades for are still being added.

      Any idea on why this would be happening?

      Comment


        #4
        Doing some debugging it looks like in a strategy when I add multiple instruments, only one execution can be open at a time. I'm using EnterLong() and ExitLong() to enter and exit a position.

        Is it true that only one execution can be open at a time? Is there a way I should be entering and exiting executions with multiple instruments to have as many executions at a time as needed?

        Comment


          #5
          Originally posted by bflotrader3 View Post
          Doing some debugging it looks like in a strategy when I add multiple instruments, only one execution can be open at a time. I'm using EnterLong() and ExitLong() to enter and exit a position.

          Is it true that only one execution can be open at a time? Is there a way I should be entering and exiting executions with multiple instruments to have as many executions at a time as needed?
          ref:



          Those should help you understand what your code, as written, is limiting.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          59 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          36 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          7 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          21 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          10 views
          0 likes
          Last Post cre8able  
          Working...
          X