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
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by techgetgame, Yesterday, 11:42 PM
    0 responses
    8 views
    0 likes
    Last Post techgetgame  
    Started by sephichapdson, Yesterday, 11:36 PM
    0 responses
    2 views
    0 likes
    Last Post sephichapdson  
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,615 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Yesterday, 05:56 PM
    0 responses
    10 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    20 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Working...
    X