Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Accurate Cost Basis calculation

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

    Accurate Cost Basis calculation

    Is there a way to update the break even / average price that is shown? If you average into a position the calculation is obviously correct until you start closing positions. At that point the "number shown on the screen" uses a FIFO method of averaging while the actual positions close is tied to that particular entry. I inserted a table to demonstrate the correct average vs what NinjaTrader shows.
    Order # Entry Exit NT Average Correct Average
    1 4314.5 4314.5 4314.5
    1 4314.5 4314.5 4314.5
    2 4313.75 4314.25
    2 4313.75 4314.125 4314.125
    2 4313.75 4314 4314.25
    2 4314.75 4313.75 4314.5
    3 4309.75 4311.25 4312.916667
    3 4309.75 4310.916 4312.125
    4 4309.25 4309.625 4311.55
    4 4309.25 4309.035 4311.16
    5 4305.75 4310.39
    5 4305.75 4309.625 4309.81
    5 4306.75 4309.035 4310.39
    3 4309.75 4308.25 4310.5
    4 4309.75 4307.95 4310.75
    5 4309.75 4307.5 4312
    4 4311 4306.916 4312.91
    3 4312 4305.75 4314.5
    1 4310 4305.75 4314.5
    1 4310
    Last edited by WynneIndustries; 10-22-2023, 11:36 AM.

    #2
    Hello WynneIndustries,

    Thank you very much for your post.

    By default, NinjaTrader Desktop would indeed use the FIFO method to calculate the average profit and loss.

    At the current time, it is not possible to modify this behavior. We have a pending feature request with our development team to enable the customization thereof.

    I have added a vote on your behalf to this feature request. I will follow up with a tracking number as soon as I have further information.

    Please don't hesitate to let me know, should you have any further questions!
    Manfred F.NinjaTrader Customer Service

    Comment


      #3
      Thank you for the response, Manfred.

      I completely understand the FIFO methodology and appreciate the ticket being placed on it. All I'm after is the position being removed from the average as it is closed. Not trying to tell anyone how to do their jobs (seriously, just a thought process through it), but maybe tie the position in the calculation to the order entry like the stops and profit targets are? The P/L seems to calculate correctly, it's just the average price as individual positions are closed.

      Thank you!

      Comment


        #4
        Any update?

        Comment


          #5
          Hello WynneIndustries,

          Unfortunately, we don't have a timeline for the implementation of specific feature requests.

          Our development team reviews these requests regularly and will implement them based on the feasibility.

          Once a feature is implemented, you may find further information in our Release Notes below:



          Please don't hesitate to let me know, should you have any further questions!
          Manfred F.NinjaTrader Customer Service

          Comment


            #6
            Sorry if I come across as crass but I guess I thought it was more an error correction than a feature request and would be handled as such.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by AaronKoRn, Today, 09:49 PM
            0 responses
            3 views
            0 likes
            Last Post AaronKoRn  
            Started by carnitron, Today, 08:42 PM
            0 responses
            8 views
            0 likes
            Last Post carnitron  
            Started by strategist007, Today, 07:51 PM
            0 responses
            9 views
            0 likes
            Last Post strategist007  
            Started by StockTrader88, 03-06-2021, 08:58 AM
            44 responses
            3,975 views
            3 likes
            Last Post jhudas88  
            Started by rbeckmann05, Today, 06:48 PM
            0 responses
            9 views
            0 likes
            Last Post rbeckmann05  
            Working...
            X