Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

strategy to trade future contracts

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

    strategy to trade future contracts

    Hello,

    I'm working on a strategy to trade future contracts and I come up the following related questions.

    1. is it possible to trade a single future contract continuously?
    For example, to trade FDX, when current month expires, it closes the position of current month, and roll the position to next month. It seems to me that the contract month has to be part of the instrument name in NJ.

    2. how the gap of price is adjusted between two contracts, e.g. how the price is adjusted when roll a contract from one month to another

    3. How do I set up back testing to test this strategy.

    thanks a lot.
    Brent

    #2
    Brent, trading a single rolling contract continuously would not be possible unfortunately. For back-testing where are native continuous contract available for some providers (accessed by the ##-## expiry). If that's not used NT can also create a continuous contract itself by merging the past expiry data into the current front month - if you want the gap back adjustment to happen or not could be set as option.

    Comment


      #3
      Is it possible to change instrument on the fly?

      on the rollover date, I'm considering to close the position of an old contract month, and establish a position for the new contract month automatically.

      Thanks

      Comment


        #4
        Originally posted by brent_ View Post
        Is it possible to change instrument on the fly?

        on the rollover date, I'm considering to close the position of an old contract month, and establish a position for the new contract month automatically.

        Thanks
        This would unfortunately not be possible - you would need to start a new strategy instance on the new expiry for rollover, if the script would then still be in a position coming from historical data the needed order to sync up your account in the new contract month could be generated by NT automatically (SyncAccountPosition)

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by sjsj2732, Yesterday, 04:31 AM
        0 responses
        28 views
        0 likes
        Last Post sjsj2732  
        Started by NullPointStrategies, 03-13-2026, 05:17 AM
        0 responses
        284 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        281 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        132 views
        1 like
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        90 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Working...
        X