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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X