Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Position.AvgPrice not matching with real position price

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

    Position.AvgPrice not matching with real position price

    Hello,

    the value of Position.AvgPrice is not matching with real position price that appears on the Positions tab.

    What could be the cause?

    #2
    Hello Guillembm,

    Thank you for your note.

    The reason you could see a discrepancy between these two is that Position.AvgPrice gets the average price of the strategy position whereas the position price on the Positions tab gets the average of the overall position (positions taken not part of the specific strategy).

    Please let us know if we may be of further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      I know what you mean. I also thought this but I made several tests and the Position.AvgPrice that is displayed just after entering the market (even if I wait several minutes) is different. Most of the times the problem is that Position.AvgPrice is rounded and the one that appears on the Positions tab has more decimals. This could be a high difference depending on what instrument we trade.

      I don't think it's relevant but my broker is IB but the value in Positions tab is the same than the broker.

      Comment


        #4
        Interesting tip. I think you are right.

        Is there any way to solve it?

        Comment


          #5
          Hello,

          Could you please share a screenshot?
          Alan P.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by ETFVoyageur, Today, 07:55 PM
          0 responses
          6 views
          0 likes
          Last Post ETFVoyageur  
          Started by janio973, Today, 07:24 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by aligator, 01-06-2022, 12:14 PM
          4 responses
          242 views
          0 likes
          Last Post john_44573  
          Started by reynoldsn, Today, 05:56 PM
          0 responses
          13 views
          0 likes
          Last Post reynoldsn  
          Started by bortz, 11-06-2023, 08:04 AM
          51 responses
          1,996 views
          0 likes
          Last Post aligator  
          Working...
          X