• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 chrismcdermut, Today, 01:46 PM
                3 responses
                17 views
                0 likes
                Last Post MojoJojo  
                Started by Bricolico, Today, 09:28 PM
                0 responses
                5 views
                0 likes
                Last Post Bricolico  
                Started by Tradwell385, Today, 08:51 PM
                0 responses
                7 views
                0 likes
                Last Post Tradwell385  
                Started by dvcpro4, Today, 07:08 PM
                0 responses
                19 views
                0 likes
                Last Post dvcpro4
                by dvcpro4
                 
                Started by pennywise, Today, 06:40 PM
                0 responses
                8 views
                0 likes
                Last Post pennywise  
                Working...
                X