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 CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        475 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        315 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        253 views
        1 like
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        340 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        305 views
        0 likes
        Last Post CarlTrading  
        Working...
        X