• 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 U0000999, Today, 11:17 PM
    0 responses
    3 views
    0 likes
    Last Post U0000999  
    Started by tjendra, Today, 10:00 PM
    0 responses
    7 views
    0 likes
    Last Post tjendra
    by tjendra
     
    Started by momchi, Today, 09:19 PM
    0 responses
    5 views
    0 likes
    Last Post momchi
    by momchi
     
    Started by tomd0361, Today, 08:58 PM
    0 responses
    7 views
    0 likes
    Last Post tomd0361  
    Started by babouin77, Today, 08:37 PM
    0 responses
    5 views
    0 likes
    Last Post babouin77  
    Working...
    X