Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AllTrades Collection

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

    AllTrades Collection

    Hello,

    Performance.AllTrades.Count gives me the actual number of AllTrades back. Thats ok. But when i try to get the trade in Objekt, there is nothing in it and the backtesting interrupts with no results. It seems that the trades collection releases, when i try access a specific trade object.

    Code:
    Print("short:_" + Performance.AllTrades.Count);
    Trade lastTrade = Performance.AllTrades[Performance.AllTrades.Count - 1];
    Print(lastTrade.Entry.Name);
    Is there es way to determine a specific trade in custom code, to geht information from?

    #2
    Hi IceRage, you for trade related information you could work with the TradesPerformance class - http://www.ninjatrader-support.com/H...anceClass.html

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    79 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    45 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    29 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    32 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    66 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X