Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Referencing the Account Total P/L

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

    Referencing the Account Total P/L

    Im trying to have my strategy stop trading once it reaches a total profit or loss but I can't seem to figure out how to reference this on the account level.

    Previously I was trying to use the strategy unrealized or realized loss but it was only closing trades past my threshold based on unrealized and not the total of both unrealized and realized.

    Now im struggling to figure out how to tap into the account level Total P/L for this... Please help guide me in the right direction.

    #2
    Hello fibbee,

    For a strategy adding the SystemPerformance.AllTrades.TradesPerformance.Curr ency.CumProfit and the Position.GetUnrealizedProfitLoss(PerformanceUnit.C urrency, Close[0]) would be the total realized and unrealized for the strategy.

    However, for orders placed to an account (not using a strategy) there is no TradesPerformance collection to retrieve the total cumulative profit.
    Some forum community members have suggested workarounds.


    Just confirm, you were meaning total profit or loss on orders placed to an account (not through a strategy) and not a daily profit or loss, is this correct?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you Chelsea, that was very helpful.

      One more question if you don't mind -- How do I ensure a strategy stays sync=true when placing a trade with an ATM template?

      Comment


        #4
        Hello fibbee,

        This wouldn't be possible. Placing an order with an AtmStrategy method will be through the core of NinjaTrader similar to a manual order and will not affect the strategy position and will not update any order method overrides.

        Below is a link to the help guide.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        53 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X