Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            648 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            369 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            108 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            572 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            573 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X