Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy Auto-roll Futures Contract

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

    Strategy Auto-roll Futures Contract

    Is there a way for my strategy to programmatically roll forward to the next futures contract? I'd like to run strategies on 30+ futures instruments. What is the process of handling contract expiration? I'm fairly new to futures (coming from forex) and I'm looking for the steps on automating my strategies through expiration. Here is my current understanding:


    1. Open futures chart, configure and enable strategy
    2. Nearing expiration date, flatten strategy positions, and disable strategy
    3. Repeat step 1 for the new contract date

    Is this the correct workflow for running strategies on futures? If so, there is a major issue with deploying 10 strategies across 30+ futures instruments. Essentially that would mean automation is not possible. Can you please confirm or correct this? Is there any other solutions that I can look at to achieve what I'm trying to do here?


    #2
    Hello jflaggs,

    Thanks for your post.

    No, contact expiration dates cannot be rolled over programmatically.

    You could manually rollover the expiration dates of the contracts by going to Tools > Database Management.

    See this help guide page for more information: https://ninjatrader.com/support/help...operations.htm

    The charts you have open will then rollover to the new contract expiry and you will see the strategy 'Instrument' column in the Strategies tab of the Control Center reflect the new expiry of that instrument.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      Just to clarify, if I use the Database Management tab to rollover contracts, will my strategies automatically be applied to the new instrument? Is this Database Management step the only action I need to take or will I need to take the steps I initially noted to reconfigure and enable all strategies on the new instrument?

      Comment


        #4
        Hello jflaggs,

        Thanks for your notes.

        Yes, once your rollover instruments in the Database Management window, the strategies Instrument tab of the Strategies tab of the Control Center will reflect the rolled-over instrument expiry meaning the strategy is added to that contract expiry.

        Check the Strategies tab of the Control Center after rolling over an instrument to confirm the strategy is set to the correct contact expiry.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          Great, thanks Brandon!

          Comment


            #6
            I saw your post while searching for similar info, and I thought I'd share what I've found to help automate futures strategies.

            You're on the right track, but there's a way to make it easier. Instead of manually handling contract expirations and reconfiguring strategies, you could try using algorithmic trading software. As an option you can try MoonTrader. This software can take care of everything for you based on the rules you set up, ensuring your strategies roll over to new contracts seamlessly.

            This can save you a lot of time and effort, especially if you're dealing with multiple strategies across many futures instruments.
            Last edited by alvinabish; 07-23-2024, 01:18 AM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by NullPointStrategies, Today, 05:17 AM
            0 responses
            44 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            124 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            65 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            42 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            46 views
            0 likes
            Last Post TheRealMorford  
            Working...
            X