Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

What is the difference between AccountItem and Position Profit and Loss

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

    What is the difference between AccountItem and Position Profit and Loss

    Regarding AccountItem.RealizedProfitLoss and Position.GetUnrealizedProfitLoss

    I am trying to write the logic to stop trading when I hit my daily profit or daily loss. The issue is with Managed Approach if I am in a position, say short, and I get a reversal to a long I can't get an accurate read just from the Account because the position has not gone flat yet. I added these two together and got a "sort of" accurate read for a daily total but it is still an approximation.

    How and when should we use the Account and Position data?

    Thanks.

    #2
    Hello cashinvestor,

    Thanks for your post.

    Can you clarify if you are looking for just the strategies Realized PNL value or the overall account value?

    Paul H.NinjaTrader Customer Service

    Comment


      #3
      yes, both. I'm not clear on how to distinguish between the two and how to identify the pnl for a specific strategy versus all the running strategies together.

      Comment


        #4
        Hello cashinvestor,

        Thanks for your reply.

        The strategies UnrealizedPNL through: Position.GetUnrealizedProfitLoss(PerformanceUnit.C urrency, Close[0]) Reference: https://ninjatrader.com/support/help...profitloss.htm

        The strategies RealizedPNL through SystemPerformance.AllTrades.TradesPerformance.Curr ency.CumProfit) Reference: https://ninjatrader.com/support/help...?cumprofit.htm

        The strategies, in general, do not know of other strategies so the above return the values related to that strategy that they are in only.

        You can review the current PNL of all strategies in the Strategies tab of the control center.


        Paul H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Cross161, Today, 10:33 PM
        0 responses
        3 views
        0 likes
        Last Post Cross161  
        Started by neilzep, Today, 08:55 PM
        0 responses
        6 views
        0 likes
        Last Post neilzep
        by neilzep
         
        Started by javier.filgueira, Today, 03:29 PM
        3 responses
        10 views
        0 likes
        Last Post javier.filgueira  
        Started by Da vinci, Today, 03:15 PM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Started by Da vinci, Today, 02:51 PM
        1 response
        14 views
        0 likes
        Last Post NinjaTrader_ChrisL  
        Working...
        X