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 Mindset, 04-21-2026, 06:46 AM
        0 responses
        88 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        134 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        119 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        67 views
        0 likes
        Last Post PaulMohn  
        Working...
        X