Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Disable Strategy
Collapse
X
-
Disable Strategy
Is there a way to disable a strategy in the code after an order has been entered so that the target can be moved manually? This is with a strategy not calling an ATM just a regular EnterLong(). I would like to be able to basically write something in the strategy code that would be like manually clicking the Enable button in the Strategy section of the Control Center to turn it off so I can take over control of the SetProfitTarget. Thanks for any help.Tags: None
-
Hello cre8it8,
Thank you for your post.
You can use the Disable() method for this: http://www.ninjatrader.com/support/h...t7/disable.htm
Keep in mind if the settings under Tools > Options > Strategies > NinjaScript are set to disable the exit orders this idea would not work. So make sure this option is disabled: http://www.ninjatrader.com/support/h...tegies_tab.htm
Please let me know if I may be of further assistance.
-
Works perfectly! Thank you Patrick.Originally posted by NinjaTrader_PatrickH View PostHello cre8it8,
Thank you for your post.
You can use the Disable() method for this: http://www.ninjatrader.com/support/h...t7/disable.htm
Keep in mind if the settings under Tools > Options > Strategies > NinjaScript are set to disable the exit orders this idea would not work. So make sure this option is disabled: http://www.ninjatrader.com/support/h...tegies_tab.htm
Please let me know if I may be of further assistance.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
649 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
370 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
576 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment