Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Manual updates to multi-instrument futures strategy

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

    Manual updates to multi-instrument futures strategy

    I have a couple of novice questions regarding futures in a multi-instrument setting:

    1) If I add the current contract Add("VX 11-16",PeriodType.Day,1); in onInit() the strategy analyzer will probably use a continuous contract for backtesting?

    2) If I then decide to run the strategy in real time will I have to manually update the FullName of the contract after a roll-over?

    3) Are there any simple examples demonstrating how you would go about for example using Instrument.FullName in conjunction with Add()

    Thanks in advance!

    #2
    Hello don_janeiro,

    Thanks for your post and welcome to the forums!

    1) By default NinjaTrader will use a contract merge policy that will allow you to backtest without having to change contracts. Please see "understanding merge policies" here: http://ninjatrader.com/support/helpG...rical_data.htm

    2) Yes, you will have to manually change the contracts in your strategy for realtime.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    60 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    148 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    97 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    284 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X