Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Incorrect Average Price

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

    #16
    Maybe I am missing something but once I checked the FIFO option everything balances perfectly. What I want is given any realized PnL + my position PnL is exactly where account realized PnL ends up if I get flat at that point.

    The first trade taken is the first trade exited for PnL purposes leaving me an average price representing all other open positions since I was last flat. Each exit takes the next entry in order for purposes of account realized PnL purposes and the recalculated open position average price and hence the open position PnL is correct.

    In the event I have open positions I only want to know what gets me to breakeven on those positions, not some prior trades as those prior trades are already reflected in my realized PnL, so I may have had a different issue to start with. With the FIFO option checked, the math for my trades balances perfectly.

    Comment


      #17
      Please check our breakeven price indicator at:

      https://www.volaty.com/indicators/breakeven-price

      It calculates the breakeven price as stated in #13

      Comment


        #18
        Originally posted by NinjaTrader_Michael View Post
        Hi,


        The averaging is expected behavior, please use the instructions provided as this may tailor the settings to your liking.

        Go to tools --> Options --> Check the "Use FIFO for position avg. price calculations".

        Let me know if this helps.
        I was about to enter a long post (with snapshots, etc.) on the same topic.

        The solution offered by NinjaTrader_Michael is correct.

        "Problem" solved.

        Comment


          #19
          NinjaTrader by default shows the average entry price of a position. If you want to use the FIFO method instead to calculate the average price, then yes, just checking the "Use FIFO for position avg. price calculations" solves the issue.

          But the OP asked for the breakeven price of a position, which is different and is computed using the profit or loss of all partial trades. An example is showed in #13 and this is another example below. Our indicator shows the breakeven price in purple in (c). It takes the profit of the partial close into account to show the breakeven price, where the position earns zero profit. This is useful for traders who scale in and out of positions.
          Click image for larger version  Name:	BreakevenEntry.png Views:	0 Size:	8.8 KB ID:	1150996 Click image for larger version  Name:	BreakevenBeforePartial.png Views:	0 Size:	9.9 KB ID:	1150997 Click image for larger version  Name:	BreakevenAfterPartial.png Views:	0 Size:	9.8 KB ID:	1150998
          (a) Position opens at $13,111.50 with 2 contracts. (b) Order to partial close 1 contract at $13,121.00. (c) Breakeven price after partial close is $13,102.50.
          Last edited by VolatyTrading; 04-11-2021, 05:08 PM.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by elliot5, Today, 03:37 AM
          0 responses
          2 views
          0 likes
          Last Post elliot5
          by elliot5
           
          Started by Papercut110, Today, 03:17 AM
          0 responses
          3 views
          0 likes
          Last Post Papercut110  
          Started by max333, Today, 02:22 AM
          2 responses
          8 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by cincai, Today, 12:55 AM
          3 responses
          12 views
          0 likes
          Last Post cincai
          by cincai
           
          Started by cincai, Today, 12:51 AM
          1 response
          11 views
          0 likes
          Last Post s.kinra
          by s.kinra
           
          Working...
          X