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

Indicator using another indicator as input?

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

    Indicator using another indicator as input?

    Hello,

    I looked through the forum, but I couldn't find an answer to my request...

    I'd like to write an indicator having another indicator as an input parameter (i.e. non defined in the source code, as in the "Indicator on indicator" example), instead of the int/double/bool etc. usual inputs.

    As a trivial example, is it possible to write an indicator which takes any existing indicator as an input , and returns two envelope bands around it, allowing me to set the input at runtime?

    Thanks in advance,

    Paolo

    #2
    Paolo,

    What do you mean as an input? As far as creating a selectable input, this is beyond what we support, but you can for sure program any indicator to access values of other indicators and create calculations based off of that.
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_Josh View Post
      Paolo,

      What do you mean as an input? As far as creating a selectable input, this is beyond what we support, but you can for sure program any indicator to access values of other indicators and create calculations based off of that.
      Hello Josh,

      the kind of "input" I mean is one of those you can define in the "Input parameter" mask when you use the custom indicator wizard - i.e. a parameter that the user can modify at any time when he is using the indicator.
      So it seems that it is not possible.

      Thank you for your quick reply,

      Paolo

      Comment


        #4
        Unfortunately this is not supported.

        You can try things like using case/switches where the user selects 1-10 and depending on what they use it will use a different indicator.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_Josh View Post
          Unfortunately this is not supported.

          You can try things like using case/switches where the user selects 1-10 and depending on what they use it will use a different indicator.
          Yes, that could be a possible workaround.
          Another idea: is it possible, from inside the indicator's code, to access to a list of the other indicators defined on the same chart, getting their name and settings? (this is my last attempt to reach my goal ... ).


          Regards,

          Paolo

          Comment


            #6
            Unfortunately not.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              Originally posted by NinjaTrader_Josh View Post
              Unfortunately not.
              Ok - I surrender!


              Thank you very much,

              Paolo

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by chbruno, Today, 04:10 PM
              0 responses
              3 views
              0 likes
              Last Post chbruno
              by chbruno
               
              Started by josh18955, 03-25-2023, 11:16 AM
              6 responses
              436 views
              0 likes
              Last Post Delerium  
              Started by FAQtrader, Today, 03:35 PM
              0 responses
              6 views
              0 likes
              Last Post FAQtrader  
              Started by rocketman7, Today, 09:41 AM
              5 responses
              19 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by frslvr, 04-11-2024, 07:26 AM
              9 responses
              127 views
              1 like
              Last Post caryc123  
              Working...
              X