Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accessing price of limeit orders

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

    Accessing price of limeit orders

    Hello, if for example I have an ExitLongStop order working in the market, is it possible to access the price so it can be used in another calculation after its been placed?

    Thanks

    #2
    John833,

    You would need to create an IOrder object to store the order and then you can access it to get the price.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      ok thanks....

      Comment


        #4
        Josh,

        Couldn't you also reference the object by name?

        Comment


          #5
          Not sure I follow r2kTrader - do you refer to something like this?

          myExitLongStop.AvgFillPrice

          Comment


            #6
            Hey Bertrand,

            Actually I was referring to referencing an order by name rather than using token.


            protected overridevoid OnExecution(IExecution execution)
            {
            if (execution.Order.FromEntrySignal == "blah")
            Print(execution.ToString());
            }
            Originally posted by NinjaTrader_Bertrand View Post
            Not sure I follow r2kTrader - do you refer to something like this?

            myExitLongStop.AvgFillPrice

            Comment


              #7
              r2kTrader,

              Technically, but you can have multiple executions for the same entry order and to access the accurate information of the whole order you would want to deal with the IOrder directly instead of a single execution.
              Josh P.NinjaTrader Customer Service

              Comment


                #8
                Originally posted by NinjaTrader_Josh View Post
                r2kTrader,

                Technically, but you can have multiple executions for the same entry order and to access the accurate information of the whole order you would want to deal with the IOrder directly instead of a single execution.
                Josh,

                But then you have to manually manage the order.

                Can you cancel an order by name without using AOH?

                While I think I am back to AOH because I can't get 100% of what I need without it, I would like to give the managed model one more shot before I give up.

                Comment


                  #9
                  Unfortunately you're back to AOH, since you need to refer to an IOrder object to cancel it specifically.

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  648 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  369 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  108 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  572 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  573 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X