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 jmezz, Today, 02:49 PM
                0 responses
                3 views
                0 likes
                Last Post jmezz
                by jmezz
                 
                Started by josiahTrader193541_, Today, 01:57 PM
                4 responses
                17 views
                0 likes
                Last Post josiahTrader193541_  
                Started by stevepmay, Yesterday, 09:00 AM
                5 responses
                25 views
                0 likes
                Last Post NinjaTrader_Gaby  
                Started by josiahTrader193541_, Today, 01:57 PM
                1 response
                10 views
                0 likes
                Last Post NinjaTrader_ChelseaB  
                Started by FishTrade, Yesterday, 04:10 PM
                4 responses
                19 views
                0 likes
                Last Post FishTrade  
                Working...
                X