Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Open Position Profit/Loss

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

    Open Position Profit/Loss

    Is there a property that contains the value of the current open position's Profit or Loss that can be accessed at the end of each bar.
    I need this value as it's a variable in my Lotsize calculation when pyramiding.

    #2
    Please check into GetProfitLoss() for this - http://www.ninjatrader-support.com/H...rofitLoss.html
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Please check into GetProfitLoss() for this - http://www.ninjatrader-support.com/H...rofitLoss.html
      Thanks for the quick response.
      I believe this is what I need & now realize that I should have been able to find this in the NT Help.
      I will try to be more diligent in the future but I'm currently in learning overload mode.

      Comment


        #4
        No worries, just press F1 in the sofware to access the context sensitive help, under the NinjaScript entry you'll find the very helpful language reference with all supported NS methods.

        More advanced samples and tips, can be found here - http://www.ninjatrader-support2.com/...splay.php?f=29
        BertrandNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by actualfacts.2021, 07-25-2021, 03:11 PM
        8 responses
        1,182 views
        0 likes
        Last Post linkcou
        by linkcou
         
        Started by reynoldsn, Today, 07:11 PM
        0 responses
        2 views
        0 likes
        Last Post reynoldsn  
        Started by needsomehelp147, 04-29-2024, 06:43 AM
        2 responses
        19 views
        0 likes
        Last Post needsomehelp147  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        177 responses
        2,400 views
        0 likes
        Last Post jeronymite  
        Started by algospoke, Today, 06:36 PM
        0 responses
        7 views
        0 likes
        Last Post algospoke  
        Working...
        X