Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem With ATI Interface and Using NTCommand

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

    #16
    imported post

    Thanks Ray for all the support. I suspected I may too fast but I am not sure if I can delay in easy language. Would it be safe to use the NTOrderStatus function to wait for the filled word to be returned ?


    Comment


      #17
      imported post

      Yes that would be safe.
      RayNinjaTrader Customer Service

      Comment


        #18
        imported post

        Hi Ray,

        Thanks for all the help. I finally got a change command to work but discovered that when working with tick charts and currencies the change order can not be processed until the next bar due to limitation in the easy language Engine. This means that until tick = 0 for the current bar I must wait to update variables and process changes. This results in a delay of the change order going in. I am going to experiment some more with the state machine and see if I can improve it.

        Comment


          #19
          imported post

          Hi Ray,

          I forgot to ask why is it the NTCommand that sends a order over initially has a place for a stop yet the strategy ignores it. In the same command I am passing over the strategy name to use with the order so it seems like it would use the stop from the order rather than a default. That would eliminate the delay issues I see with Easy language as a interface to the ATI.



          -Thanks


          Comment


            #20
            imported post

            The ATI is flexible.

            1) You can submit an entry order and have this order execute an ASM strategy that automatically submits stops and targets

            2) You can submit any order type you want and manage the trade exclusively from an external application

            This is why the NTCommand() needs the parameters it has to support this level of flexibility.



            Ray
            RayNinjaTrader Customer Service

            Comment


              #21
              imported post

              Hi Ray,
              Thanks for letting me know that. the problem I have with that approach is I calculate a dynamic stop based on the movement of the last wave in my futures I am trading so the stop would be different each time. Will the ASM take the value I pass in with the order command and use that as a stop ? Right now I am passing in a strategy name which as a hard stop and target programmed into it. I then look for the filled status to come back and send another order to change the stop. Like I stated earlier this is delayed due to the easy language engine only being able to do certain things on the close of a bar which means my change order is 1-2 bars later.


              Comment


                #22
                imported post

                Your approach right now is correct. The only other option is NOT to use ASM strategy and submit all stops and targets yourself.


                Ray
                RayNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                84 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                47 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                29 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                32 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                66 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X