Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Optimizer: Custom
Collapse
X
-
Optimizer: Custom
I'd like to build my own optimizer. Certainly looking at the code for your "DefaultOptimizer" helps. Are there any other such scripts that I could look at?Tags: None
-
Hello spottysallrite,
Thanks for your post.
Unfortunately, there are no other reference samples available for creating a custom Optimizer other than the DefaultOptimizer script you mentioned.
That said, you could find methods and properties unique to custom Optimizer development on this help guide page: https://ninjatrader.com/support/help.../optimizer.htm
This forum thread will be open for other community members to share their insight on developing a custom Optimizer.
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
-
Ok, do you have any suggestions regarding debugging tools? eg, Print ("Stuff") doesn't seem to work, neither does StreamWriter.
Comment
-
Hello spottysallrite,
Thanks for your note.
Instead of Print(), you could use Output.Process() to write a message to the Output window.
See this help guide page for more information and sample code: https://ninjatrader.com/support/help...g_concepts.htm
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
-
Comment
-
Hello spottysallrite,
Thanks for your note.
Output.Process() does work within the Iterate() method.
I have added the sample code from the help guide linked in my previous post to the top of the Iterate() method. When an optimization is run I see prints in the NinjaScript Output window.
See the attached example script demonstrating this. Also, see the attached image.
Let us know if we may assist further.<span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
46 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
22 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
31 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
50 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
42 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment