Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automatic Rollover

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

    Automatic Rollover

    Hi,

    Is there any way to rollover the instruments automatically? I would like to trade the latest contract without user interaction having an option in the strategy code SetDefauls section, for instance:
    Code:
    AutoRollover = True;
    so the strategies automatically trade the latest active contract.

    Thank You,

    Gustavo

    #2
    Hello Gustavo,

    NinjaTrader does not automatically change the instrument in any window. If a position was open on a previous contract month and NinjaTrader rolled the chart automatically to a newer contract month, you would not see that a position is still open on the previous contract month on that chart.
    Should the position stay open until the settlement date, typically would need to setup delivery of that commodity.
    As this could cause a lot of grief, NinjaTrader does not make any changes to your workspace.

    There is a single button that can rollover instruments in all windows of the workspace at the same time to make this easy. Tools > Database Management > Rollover.
    https://ninjatrader.com/support/help...resInstruments

    While not documented or supported, it is possible to use code to change the instrument on a chart.
    Below is a link to the rollover indications indicator.
    https://ninjatraderecosystem.com/use...indications-2/

    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by iotrhdlaskf, Today, 08:47 AM
    0 responses
    1 view
    0 likes
    Last Post iotrhdlaskf  
    Started by traderharley, Today, 08:46 AM
    0 responses
    1 view
    0 likes
    Last Post traderharley  
    Started by NinjaCustomer, Today, 08:22 AM
    0 responses
    5 views
    0 likes
    Last Post NinjaCustomer  
    Started by n8dogg59, Today, 07:58 AM
    2 responses
    8 views
    0 likes
    Last Post n8dogg59  
    Started by CoffeeOutlaw, Yesterday, 07:33 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X