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!
See more
See less

Partner 728x90

Collapse

How can indicator switch function be added to the strategy?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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?

    #2
    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

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ageeholdings, Today, 07:43 AM
    0 responses
    7 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X