Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Profit loss by each instrument per day

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

    Profit loss by each instrument per day

    I am trying to calculate the PL by each instrument.

    TradeCollection tradesCollection = new TradeCollection(true, true);

    foreach (Trade trade in SystemPerformance.AllTrades)
    if (trade.Entry.Instrument == this.Instrument && trade.Entry.Time >= startOfTradingDay)
    tradesCollection.Add(trade);​

    double totalProfit = tradesCollection.TradesPerformance.Currency.CumPro fit;
    My question is trade.Entry.time represents local timezone or Market timezone? How to check this?

    #2
    Hello sambathraj,

    Thanks for your post.

    trade.Entry.Time would represent the local time on your PC.

    Note that NinjaTrader converts all data to your local time zone.

    TradeCollection:https://ninjatrader.com/support/help...collection.htm
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rhyminkevin, Today, 04:58 PM
    3 responses
    49 views
    0 likes
    Last Post Anfedport  
    Started by iceman2018, Today, 05:07 PM
    0 responses
    5 views
    0 likes
    Last Post iceman2018  
    Started by lightsun47, Today, 03:51 PM
    0 responses
    7 views
    0 likes
    Last Post lightsun47  
    Started by 00nevest, Today, 02:27 PM
    1 response
    14 views
    0 likes
    Last Post 00nevest  
    Started by futtrader, 04-21-2024, 01:50 AM
    4 responses
    50 views
    0 likes
    Last Post futtrader  
    Working...
    X