Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Strategy ON/OFF with Button
Collapse
X
-
Strategy ON/OFF with Button
I have a strategy I created in NinjaTrader script that I would like to implement or import into a button strategy so I can turn it ON/OFF via the button on the chart. Could I get some guidance how to achieve this? Any links to code samples? Thank you.Tags: None
-
Hello designer01,
Thanks for your post.
There are no documented or supported methods or functions available for enabling/disabling a custom strategy through NinjaScript.
NinjaScript strategies must be manually enabled as this is how they were created to function.
That said, you could view the reference sample on this help guide page demonstrating creating custom WPF buttons: https://ninjatrader.com/support/help...ui)-modifi.htm
This forum thread will be open for other community members to share their insights on unsupported code that might accomplish this.Brandon H.NinjaTrader Customer Service
-
Hi,
Very common notion, very easy to find a solution. Set up a button that controls a bool and put your strategy within a check for that bool
This is an incredible forum post that definitely contains a sample script for what you're trying to accomplish:
Modifications to chart WPF elements and tab considerations - NinjaTrader Support Forum
Comment
-
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Philippe56140, Today, 02:35 PM
|
0 responses
1 view
0 likes
|
Last Post Today, 02:35 PM | ||
Started by 00nevest, Today, 02:27 PM
|
0 responses
1 view
0 likes
|
Last Post
by 00nevest
Today, 02:27 PM
|
||
Started by Jonafare, 12-06-2012, 03:48 PM
|
5 responses
3,986 views
0 likes
|
Last Post
by rene69851
Today, 01:44 PM
|
||
Started by Fitspressorest, Today, 01:38 PM
|
0 responses
2 views
0 likes
|
Last Post Today, 01:38 PM | ||
Started by Jonker, Today, 01:19 PM
|
0 responses
2 views
0 likes
|
Last Post
by Jonker
Today, 01:19 PM
|
Comment