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 argusthome, Yesterday, 10:06 AM
|
0 responses
18 views
0 likes
|
Last Post
by argusthome
Yesterday, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
17 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
14 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
9 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
38 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment