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

How to fully automate trade futures with expiry date ticker?

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

    How to fully automate trade futures with expiry date ticker?

    How to fully automate trade futures with expiry date ticker?

    Do I have to attach a strategy to a new chart every time a future expires
    and after a cash settlement took place.

    Can the script just keep trading i.e. ES regardless of expiry?
    Or maybe there is a script to do so?

    Also, is there a Ninja Script to rollover futures at expiry?

    #2
    Hello johnnybegoode,

    Thank you for your reply.

    You would need to disable the strategy on the prior contract and re-enable the strategy on the new expiry.

    In a real account, an open position on the prior contract would be closed out by your broker before the contract expires. So a position in the December ES contract would be closed while rolling over to the March expiry.

    There would not be a configurable option to automatically re-enter a liquidated position after rollover.

    You would need to sell any prior position (or wait until it is liquidated) and re-enter on the new contract.

    There is not a NinjaScript method to roll over futures at expiry, however, the platform will automatically prompt you when it's time to roll to the new expiry.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment


      #3
      Does manual rollover work for walk forward testing using Sim101
      with the strategy on and account in negative territory?
      At what time does the rollover happen on 03-21?

      What happened if I just let the contract expired by doing nothing?
      Is it force liquidation?

      Thank you!

      Comment


        #4
        Hello johnnybegoode,

        Thank you for your reply.

        By default if you are testing a strategy over multiple contracts in the Strategy Analyzer, whether doing a regular backtest or a walk forward text, the contracts will be merged and back adjusted so you can simply run the strategy continuously over the whole time frame.

        The time and date rollovers happen varies by instrument. You can see our Trade Desk calendar that shows roll dates for various instruments here:

        The NinjaTrader risk team evaluates market conditions in real-time and reserves the right to adjust intraday margins in accordance with market volatility.


        The roll date will be generally about a week prior to the last trade date. On the last trade date, data will stop at the open of that day.

        If you fail to roll over or close an open position on a contract prior to the last trade date, it will be physically delivered or cash-settled.

        More information regarding this can be found on our blog here:

        NinjaTrader is a leading futures broker & trading platform provider with deep discount commissions as low as $.09 per Micro contract. Start your FREE demo powered by live data.


        Please let us know if we may be of further assistance to you.
        Kate W.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by mishhh, 05-25-2010, 08:54 AM
        19 responses
        6,189 views
        0 likes
        Last Post rene69851  
        Started by gwenael, Today, 09:29 AM
        0 responses
        1 view
        0 likes
        Last Post gwenael
        by gwenael
         
        Started by Karado58, 11-26-2012, 02:57 PM
        8 responses
        14,829 views
        0 likes
        Last Post Option Whisperer  
        Started by Option Whisperer, Today, 09:05 AM
        0 responses
        1 view
        0 likes
        Last Post Option Whisperer  
        Started by cre8able, Yesterday, 01:16 PM
        3 responses
        11 views
        0 likes
        Last Post cre8able  
        Working...
        X