Thank you for your feedback!
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Hotkey to enable and disable a strategy
Collapse
X
-
Hotkey to enable and disable a strategy
I want to be able to enable or disable a specified strategy with a hotkey e.g. 'ctrl + F1'. Is this possible? If so, would this need to be a custom script or can it be done through NT8's built-in features?
Thank you for your feedback! -
Hello TraderJosh,
Thank you for your post.
There is current not a built-in way to enable/disable a strategy with a hot key. However, I can submit this as a feature request on your behalf if you would like.
You can detect key presses through your code and use CloseStrategy() to close that specific strategy.
Please see this forum post which includes a sample script demonstrating detecting key presses in your code:
Hi guys, Are there available order entry hot key that is based on the previous bar? Would like to implementorders by hot keys which could be quick & less noticeable. Cheers, Leo
CloseStrategy - https://ninjatrader.com/support/help...sestrategy.htm
Please let me know if you have any further questions.
-
This is interesting... TraderJosh I bet you could do it by having a key press set a global variable to 0 or 1 (on or off) that enables or disables your strategy. This is also a great idea and something I will most likely incorporate.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by NullPointStrategies, Yesterday, 05:17 AM
|
0 responses
56 views
0 likes
|
Last Post
|
||
|
Started by argusthome, 03-08-2026, 10:06 AM
|
0 responses
133 views
0 likes
|
Last Post
by argusthome
03-08-2026, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
73 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
45 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
49 views
0 likes
|
Last Post
|
Comment