Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Enter depending next bar

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

    Enter depending next bar


    In NT7 under the conditions I would set "bars ago = -1" and my input would depend on the next bar. Now, in NT8 "bars ago = -1" does not work.

    How can I make the condition of the maximum of -1 is greater than the maximum of 0 enter long in the maximum of 0?


    Thanks.

    #2
    Hello Ufesa,

    Thank you for your note.

    Because a -1 bar index is 1 bar in the future from the current bar, running this in real time would throw an issue. A change in NT8 from NT7 was removing the ability to pass negative bar index values.

    The solution would be to wait 1 bar and then check the value of bars ago 0.

    Please let us know if you need further assistance.


    Alan P.NinjaTrader Customer Service

    Comment


      #3
      How do you do with the strategy builder?

      Comment


        #4
        Hello Ufesa,

        Referencing -1 would be referencing a bar in the future, which would be impossible to execute a long order based on information not known.

        If you could provide details on what you mean by do this with the builder I may be able to provide you some information.





        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        61 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        34 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        198 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        364 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        283 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X