Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategies Tab section Unrealize and Realized PnL

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

    Strategies Tab section Unrealize and Realized PnL

    Hi there...

    What code can I use to tap into the data for both the unrealized and realized PnL that is located in the Strategies Tab (NOT the Market Analyzer or the Accounts)...but the Strategies Tab only unrealized and realized pnl for each instrument?

    I would like to add code as a filter to before going long or short and also as a exit filter.

    Here is what I am looking to do:

    Before going long or short initially, check to be sure the realized pnl for a particular instrument is not below -$X. If it is, then the signal will not fire.

    Also, if my strategey calls for reversing if in a current long or short, then I would like it to do the same...check to be sure the realized pnl for a particular instrument is not below -$X. If it is, then it would only exit and not reverse.

    Lastly, while in any longs or shorts, if the unrealized profit drops below -$X and/or the realize profit is below -$X then exit the position and also disable the strategy.

    Please let me know how you might help if you can...smile.

    Greg

    Also, if

    #2
    Greg, unfortunately the individual strategies would not cross communicate and the collection could not not be accessed from a NinjaScript. What you could look into is creating a MultiSeries strategy so the infos needed would be available in the running instance for each instrument you're trading on.

    Comment


      #3
      What about code commands that would allow me to make the strategy monitor the general account status of unrealized, realized, and total profit for the day then instead of the strategies individually to do it?

      Comment


        #4
        What you could monitor here from your script is the Realized Pnl of the account - http://www.ninjatrader.com/support/h...countvalue.htm

        Comment

        Latest Posts

        Collapse

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