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
How can indicator switch function be added to the strategy?
Collapse
X
-
How can indicator switch function be added to the strategy?
I have an indicator that has switch (selectable from a drop down) functions I'd like to add to a strategy and retain the option to select between when configuring the strategy, is it possible to do so in the strategy keeping the indicator separate, or do I have to build it into the strategy?Tags: None
-
Hello Conceptzx,
Thank you for your post.
If the indicator has user inputs for properties that you would like to have as inputs for your strategy, you will need to add that logic into the strategy. A simple example of this is the SampleMACrossover strategy; it has user inputs for the "Fast" and "Slow" SMA periods. For an example of adding a dropdown menu for user inputs, please see the following reference sample:
Please let us know if we may be of further assistance.Emily C.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ageeholdings, Today, 07:43 AM
|
0 responses
7 views
0 likes
|
Last Post
by ageeholdings
Today, 07:43 AM
|
||
Started by pibrew, Today, 06:37 AM
|
0 responses
4 views
0 likes
|
Last Post
by pibrew
Today, 06:37 AM
|
||
Started by rbeckmann05, Yesterday, 06:48 PM
|
1 response
14 views
0 likes
|
Last Post
by bltdavid
Today, 05:43 AM
|
||
Started by llanqui, Today, 03:53 AM
|
0 responses
6 views
0 likes
|
Last Post
by llanqui
Today, 03:53 AM
|
||
Started by burtoninlondon, Today, 12:38 AM
|
0 responses
12 views
0 likes
|
Last Post Today, 12:38 AM |
Comment