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

Order based off next-bar's open

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

    Order based off next-bar's open

    Hi there,

    I want to issue an order which price will be offset off next-bar's open (say, buy STOP at next-bar's open + 3*ATR).

    How do I do that, especially in backtesting?


    Thanks in advance,
    Dominique

    #2
    Hello Dominique,
    You cannot ascertain the open of the next bar unless you further custom code to calculate/speculate the open price or using bar types, like range bars where the open can be predetermined.
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      That really sucks ... can this be double-checked, and if true make it a feature request.

      Thanks
      D.

      Comment


        #4
        Hello Dominique,
        You can calculate the opening for range bars etc exotic bars but not for minute etc bars.
        JoydeepNinjaTrader Customer Service

        Comment


          #5
          A stop order based off the next-bar open is the most basic feature required for volatility break-out strategies - I do not imply intraday trading, this was in use 20 years ago for trading off daily charts.

          I can design a strategy to do that in real-time (CalculateOnBarClose = false), but in order to backtest that I need access to NextOpen ... I know it is avalaible for FillType objects, what's the trick to read it from a Strategy?

          Thanks
          D.

          Comment


            #6
            Hello Dominique,
            Unfortunately nothing supported I can come across to do it from the strategy.
            JoydeepNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by ETFVoyageur, Today, 08:54 AM
            0 responses
            2 views
            0 likes
            Last Post ETFVoyageur  
            Started by ETFVoyageur, Today, 06:11 AM
            3 responses
            17 views
            0 likes
            Last Post NinjaTrader_BrandonH  
            Started by Belfortbucks, Today, 08:21 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by ETFVoyageur, Today, 02:15 AM
            2 responses
            19 views
            0 likes
            Last Post ETFVoyageur  
            Started by EliIsrael, Today, 08:15 AM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X