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 CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    26 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    26 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-25-2026, 09:53 PM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 03-25-2026, 09:51 PM
    0 responses
    18 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 03-23-2026, 11:13 AM
    0 responses
    29 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X