I found nothing in the Trade object.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Number of Bars
Collapse
X
-
Hello tbmuc,
Thanks for writing in and I am happy to assist you.
To export the executed trades please follow the below steps.- In Control Center click on Executions tab.
- Right-click on the data grid.
- In the context menu goto Grid>Export to Excel.
Please let me know if I can assist you any further.JoydeepNinjaTrader Customer Service
-
Is there a way to get this information for closed trades? The other data is determined tis way:
foreach (Trade myTrade in Performance.AllTrades)
{
IExecution entryOrder =myTrade.Entry;
IExecution exitOrder =myTrade.Exit;
File.AppendAllText( tradefile, strategyname
+ ";" + Instrument.MasterInstrument.Name
+ ";" + entryOrder.MarketPosition
+ ";" + myTrade.Quantity.ToString()
+ ";" + entryOrder.Price.ToString()
+ ";" + exitOrder.Price.ToString()
+ ";" + ToDay(entryOrder.Time).ToString()
+ ";" + ToDay(exitOrder.Time).ToString()
+ ";" + (myTrade.ProfitCurrency * myTrade.Quantity).ToString() +"\r\n"
);
}
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
648 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
369 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
108 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
572 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
573 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment