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 algospoke, 04-17-2024, 06:40 PM
    6 responses
    49 views
    0 likes
    Last Post algospoke  
    Started by arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Started by samish18, 04-17-2024, 08:57 AM
    16 responses
    61 views
    0 likes
    Last Post samish18  
    Started by jordanq2, Today, 03:10 PM
    2 responses
    11 views
    0 likes
    Last Post jordanq2  
    Started by traderqz, Today, 12:06 AM
    10 responses
    21 views
    0 likes
    Last Post traderqz  
    Working...
    X