Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Daily profit

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

    Daily profit

    Is there a way to program the amount you've made on the day to display on the chart?

    #2
    frogzillafx,

    Use DrawText() to print something on the chart and then see this reference sample to get your daily PnL. http://www.ninjatrader-support2.com/...ead.php?t=4084
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      So I imported as instructed and I put the code

      double MyCumProfit=Performance.AllTrades.TradesPerformanc e.Currency.CumProfit;

      into my code and it tells me 'Performance' does not exist in the current context CS0103 - click for info 53 23.

      I'm sure I totally messed it up. What am I doing wrong. Fell free to make me feel like an idiot lol.

      Comment


        #4
        This needs to be on a strategy not an indicator.
        Josh P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        581 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        338 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        103 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        554 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        552 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X