• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 thgamey, Yesterday, 08:38 PM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_Marco  
        Started by stredtity, Today, 01:21 AM
        0 responses
        4 views
        0 likes
        Last Post stredtity  
        Started by superg3, Yesterday, 10:12 PM
        0 responses
        8 views
        0 likes
        Last Post superg3
        by superg3
         
        Started by johnnybegoode, Yesterday, 07:02 PM
        0 responses
        10 views
        0 likes
        Last Post johnnybegoode  
        Started by YevhenShynkarenko, Yesterday, 05:02 PM
        1 response
        17 views
        0 likes
        Last Post YevhenShynkarenko  
        Working...
        X