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 ErikY, Today, 02:14 PM
    0 responses
    3 views
    0 likes
    Last Post ErikY
    by ErikY
     
    Started by redart1021, Today, 01:14 PM
    2 responses
    10 views
    0 likes
    Last Post redart1021  
    Started by auto112112, Today, 12:36 PM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by UltraNIX, Today, 11:03 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by Lopat, Today, 10:56 AM
    3 responses
    18 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X