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 CarlTrading, 03-31-2026, 09:41 PM
          1 response
          81 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          42 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          64 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          68 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          55 views
          0 likes
          Last Post CarlTrading  
          Working...
          X