• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Get Pnl before starting strategy

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

    Get Pnl before starting strategy

    I am looking for Total PNL for the account before starting a strategy, I have this

    dPreviousRunningProfit = SystemPerformance.RealTimeTrades.TradesPerformance .Currency.CumProfit;
    This will be zero dollars until the trades start. What I want is to see if if the account is green or red for the day before starting the strategy

    #2
    Hello ballboy11,

    Below is a link to the help guide on the Account.Get() method where you can get the AccountItem.RealizedProfitLoss and AccountItem.UnrealizedProfitLoss.
    https://ninjatrader.com/support/help.../en-us/get.htm
    https://ninjatrader.com/support/help...ccountitem.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Branpo, Today, 05:10 AM
    0 responses
    6 views
    0 likes
    Last Post Branpo
    by Branpo
     
    Started by EthanHunt, Today, 05:10 AM
    0 responses
    7 views
    0 likes
    Last Post EthanHunt  
    Started by GCO77, Today, 05:06 AM
    0 responses
    7 views
    0 likes
    Last Post GCO77
    by GCO77
     
    Started by dahutu, Today, 04:58 AM
    2 responses
    7 views
    0 likes
    Last Post dahutu
    by dahutu
     
    Started by Luca77, Today, 03:35 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Working...
    X