Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Indicator as input

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

    Indicator as input

    I am trying to make an indicator that allows the user to choose other indicators as an input parameter. ie I could choose and configure Stochastic, RSI, or some other indicator as a Data Series input parameter for my custom indicator. How do I create an input like this?

    #2
    Hawk Arps, the main NT user interface has already a selection for an input series, you can just drive your calculation logic using Input[x] to take advantage of that.

    Comment


      #3
      Thanks... however, your response doesn't quite get to the question I am asking. I do not need to know what oscillator will be the input series that drives the indicator calculations. Instead, I want to create a divergence indicator that allows the user to select which oscillator will be used to identify the divergence. Can I use a string input in my indicator which describes the oscillator and its parameters and then somehow convert that string variable into a call to that oscillator?

      Comment


        #4
        You would need to create your own logic to interpret the input.
        Likely would want to use something like a switch: http://msdn.microsoft.com/en-us/libr...(v=vs.80).aspx

        If you want to allow to allow for the use of any indicator it would likely be best to use the input method Bertrand mentioned and then add a secondary series for the price data.


        Alternative to using string inputs you could use Enum: http://www.ninjatrader.com/support/f...ead.php?t=3420
        LanceNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by kinfxhk, 07-14-2026, 09:39 AM
        0 responses
        123 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 10:18 AM
        0 responses
        104 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 09:50 AM
        0 responses
        83 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-13-2026, 07:21 AM
        0 responses
        103 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 07-11-2026, 02:11 AM
        0 responses
        83 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X