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 Vikuno1, Yesterday, 04:31 PM
    2 responses
    19 views
    0 likes
    Last Post Vikuno1
    by Vikuno1
     
    Started by psangram, Today, 09:30 AM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by love2code2trade, 06-10-2024, 09:53 PM
    2 responses
    20 views
    0 likes
    Last Post love2code2trade  
    Started by Tobbias, Today, 10:44 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by crewtrades, Yesterday, 10:50 AM
    3 responses
    22 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Working...
    X