Each separate param, Total Net, Profit Factor, Max Drawdown, etc.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Coding Question from a previous post
Collapse
X
-
Coding Question from a previous post
Can I get the Optimization Values, Parameters, Results, etc. realtime during an optimization, so they can be written to a .CSV file? I can write a real log file, I just want to be able to get the optimization values.
Each separate param, Total Net, Profit Factor, Max Drawdown, etc.Tags: None
-
ChuckAllen,
Just print the values from within your code whenever you want to take a look at them. Your optimization parameters are always accessible just by accessing the parameters directly. If your parameter being optimized was named "Period", just printing Period will get you the value that is currently being used for that particular run.
If you want performance information, grab it from the TradesPerformance object. Please refer to the Help Guide for more information: http://www.ninjatrader.com/support/h...erformance.htmJosh P.NinjaTrader Customer Service
-
-
Could not get the values as expected
Is there a way to get the optimization values & results at the end of an optimization loop, so they can be written to a Results.Csv file for later analysis?
The Performance.RealtimeTrades... variable seems to be results for a trade at a time.
Is there a way to get the same totals as are displayed in the Optimization Results window, so they can be written to a Results.Csv file. The other options to save the results are stored somewhere in NT instead of in the real file system. Is there a way to save these to a real file, so they can be parsed & used? However we get the output, please...one line per complete loop...not a trade at a time.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
161 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
308 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
245 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
349 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment