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

Capture exit price in indicator

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

    Capture exit price in indicator

    Hey you advanced coders/support gurus..... Is this possible?
    I can't use IOrder as it's an indicator. I can grab my position and my entry price from PositionCollection in Accounts but for the life of me I can't work out a way to get the exit price.
    Using Close[0] at the time of exit gives occasional incorrect prices - its often out by a tick.

    #2
    Hi Mindset, not sure if you're aware but you could check the Email Trade Execution potentially for this from our sharing section - http://www.ninjatrader.com/support/f...d=6&linkid=533
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thanks Bertrand.
      Looks great and has given me some ideas - any idea why it will only work on real accounts and not the simulator?

      Comment


        #4
        Correct, would expect that since those would have a different internal execution handling.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          mmmm... doesn't seem to work

          Comment


            #6
            Sorry it does work. You have to select the account within the indicator as well as in the Combo box

            Comment


              #7
              Got to ask Bertrand - why would you have a different order handling system for simulation compared to live?

              Comment


                #8
                It's internally different to what the indicator tries to work with for getting around the limitations of manual order tracking via NinjaScript. Market Replay would sync the events for example internally to ensure sequences are kept intact.
                BertrandNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by junkone, Today, 11:37 AM
                2 responses
                15 views
                0 likes
                Last Post junkone
                by junkone
                 
                Started by frankthearm, Yesterday, 09:08 AM
                12 responses
                44 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by quantismo, 04-17-2024, 05:13 PM
                5 responses
                35 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by proptrade13, Today, 11:06 AM
                1 response
                7 views
                0 likes
                Last Post NinjaTrader_Clayton  
                Started by love2code2trade, 04-17-2024, 01:45 PM
                4 responses
                36 views
                0 likes
                Last Post love2code2trade  
                Working...
                X