Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

How to get exit price on scale out trade?

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

    How to get exit price on scale out trade?

    If I enter a trade with 2 contracts and scale out 1 contract at a small profit, what is the best method to get the exit price that the first contract scaled out?

    tia

    taddypole...

    #2
    Hi Taddypole,

    Yes, this is possible but you have to structure orders as IOrders, and can then expose the exact price of the order using OnExecution() handler.



    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thank you RyanM,

      I'm using OnExecution to get an exit price.

      If I print out "OnExecution Order=", one of the parameters is:

      Fill price = XX.XX

      To get this price, do I use this method?

      ExitPrice = execution.Price;


      So, execution.Price 'equals' Fill Price?
      Just making sure I'm using this correctly.

      thanks

      taddypole...

      Comment


        #4
        Taddypole, that is correct. The execution price is fill price, because an execution implies a fill.
        AustinNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by somethingcomplex, Yesterday, 10:36 PM
        1 response
        22 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by rayyyu12, Today, 12:47 AM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by guyonabuffalo, Yesterday, 10:01 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Started by thumper57, Yesterday, 04:30 PM
        3 responses
        12 views
        0 likes
        Last Post thumper57  
        Started by DT215, 01-14-2023, 07:59 PM
        4 responses
        132 views
        1 like
        Last Post NinjaTrader_BrandonH  
        Working...
        X