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 Mathias79, Today, 03:44 PM
            0 responses
            2 views
            0 likes
            Last Post Mathias79  
            Started by Austiner87, Today, 03:42 PM
            0 responses
            3 views
            0 likes
            Last Post Austiner87  
            Started by lorem, 04-25-2024, 09:18 AM
            19 responses
            81 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by joselube001, 05-10-2024, 12:17 PM
            6 responses
            29 views
            0 likes
            Last Post joselube001  
            Started by bigc0220, 09-18-2018, 09:16 AM
            6 responses
            2,584 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X