Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    Paul H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by kevinenergy, 02-17-2023, 12:42 PM
    115 responses
    2,699 views
    1 like
    Last Post kevinenergy  
    Started by prdecast, Today, 06:07 AM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by Christopher_R, Today, 12:29 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by chartchart, 05-19-2021, 04:14 PM
    3 responses
    577 views
    1 like
    Last Post NinjaTrader_Gaby  
    Started by bsbisme, Yesterday, 02:08 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Working...
    X