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 NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        57 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        133 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        50 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X