I am building strategies in the strategy builder, and I am using trade performance results from the strategy baseline to adjust my contract size, is there any way/code I can enter in after unlock to reset the strategy - trades, realized performance, etc, back to 0. Right now, to do this I am unchecking and checking the box - but would rather there would be a way to do this. A code line to turn the strategy off and on again would work! Thank you!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Reset Strategy
Collapse
X
-
Reset Strategy
Hi NT8,
I am building strategies in the strategy builder, and I am using trade performance results from the strategy baseline to adjust my contract size, is there any way/code I can enter in after unlock to reset the strategy - trades, realized performance, etc, back to 0. Right now, to do this I am unchecking and checking the box - but would rather there would be a way to do this. A code line to turn the strategy off and on again would work! Thank you!Tags: None
-
Hello Austiner87,
Thank you for your post.
There would not be a supported way for a strategy to reset itself from code - while you can tell it to terminate, you can't tell it to restart itself as strategies cannot be enabled from code. To terminate a strategy and reset it, you would have to disable the strategy and re-enable it by checking or unchecking the "Enabled" checkbox.
However, we do have an existing feature request to allow strategies to be enabled from NinjaScript to which I have added a vote on your behalf. This request is being tracked under the number SFT-2844.
As with all feature requests, interest is tracked before implementation is considered, so we cannot offer an ETA or promise of fulfillment. If implemented, it will be noted in the Release Notes page of the Help Guide.
Release Notes — https://ninjatrader.com/support/help...ease_notes.htm
Please let us know if we may be of further assistance to you.
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Today, 05:17 AM
|
0 responses
51 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
129 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
69 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
42 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
46 views
0 likes
|
Last Post
|

Comment