Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

close price two bars in the future ?

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

    close price two bars in the future ?

    Hi, How do i reference the close price two bars in the future ?

    #2
    Hello zato63,

    Thanks for your post.

    There is no support for accessing future bars in NinjaTrader since these bars have not been processed yet. Only the current bar and past bars are able to be accessed.

    This is because in a real-world context, we would not know what future bars would include. The script should wait until it has processed X number of bars before it makes a reference to those bars.

    Let us know if we may assist further.
    <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

    Comment


      #3
      hi i understand what you mean, however all futures bars will have a open ,high , low and close.. will it be possible with bar number?

      Comment


        #4
        Hello zato63,

        Thanks for your note.

        No, the price value of future bars cannot be referenced since these bars have not been created or processed. This would be the equivalent of calling your broker and asking what the price of a stock will be in 10 minutes.

        NinjaTrader is not designed to access the future. Only the current prices and the past, the same as a trader would in real-life over the phone.

        Let us know if we may assist further.
        <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

        Comment


          #5
          ok, we are about to mis understand each other , i am thinking like a programmer while you are thinking like a trader/broker. any way thank you very much for your input. i found a back door solution to the issue.
          Thanks.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          24 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          20 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          14 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          11 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          41 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X