Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Getting the profit for a trade

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

    Getting the profit for a trade

    Hey guys, last question for the day:

    Is there an easy way to get the profits generated for a statement like: ExitLong(Qnty, "exitLong1", "enterLong1")

    And I have do have multiple exits for the same entry so may be just a partial profit or loss.

    #2
    Originally posted by elitetradernyc View Post
    Hey guys, last question for the day:

    Is there an easy way to get the profits generated for a statement like: ExitLong(Qnty, "exitLong1", "enterLong1")

    And I have do have multiple exits for the same entry so may be just a partial profit or loss.
    Use the TradeCollection's TradesPerformance profile.

    Comment


      #3
      Is there a way to limit it to the current days trades?"

      // Print out the avg. profit of all trades in points

      Print("Average profit: " + Performance.AllTrades.TradesPerformance.Points.Avg Profit);

      Comment


        #4
        Hello elitetradernyc,

        Yes, you may use a variable to store your performance reports at the start of the days that way you may track your performance for the current day by subtracting the performance values from the start of the day.

        Our reference sample at the following thread demonstrates this that you may view.
        JCNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        566 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        330 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        547 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        548 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X