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 NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
81 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
149 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
79 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
52 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
59 views
0 likes
|
Last Post
|

Comment