• 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 brucerobinson, Today, 05:52 AM
        2 responses
        4 views
        0 likes
        Last Post brucerobinson  
        Started by margandi, 10-09-2019, 03:01 AM
        8 responses
        24 views
        0 likes
        Last Post koganam
        by koganam
         
        Started by 2Look4me, Today, 08:50 AM
        1 response
        3 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by marcara, 10-11-2019, 03:08 AM
        4 responses
        23 views
        0 likes
        Last Post NinjaTrader_ChristopherD  
        Started by TheWhiteDragon, Today, 07:37 AM
        1 response
        5 views
        0 likes
        Last Post NinjaTrader_Kate  
        Working...
        X