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 CarlTrading, 03-31-2026, 09:41 PM
                  1 response
                  63 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 04-01-2026, 02:41 AM
                  0 responses
                  35 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CaptainJack, 03-31-2026, 11:44 PM
                  0 responses
                  54 views
                  1 like
                  Last Post CaptainJack  
                  Started by CarlTrading, 03-30-2026, 11:51 AM
                  0 responses
                  61 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 03-30-2026, 11:48 AM
                  0 responses
                  48 views
                  0 likes
                  Last Post CarlTrading  
                  Working...
                  X