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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
67 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
36 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
59 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
62 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
53 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment