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

Input Series

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

    Input Series

    Hi,

    Is there any way to load "Input Series" from within my indicator, instead of selecting it from the window?

    Thanks, Alejandro

    #2
    Hello ahrt|,

    Thank you for the post.

    I am not certain I understand the question as it has been asked.

    Do you mean to load secondary data in your indicator and then use that for something?

    If you have manually applied an indicator you would need to select which series you want to apply it to, there is no way around this step as you are manually applying it however it should default to the primary series.

    From coding, you would generally pass in the BarsArray to an indicator or do your calculations in the BarsInProgress of the series it should use. In both cases a specific series is being used and this does rely on how the indicator was coded.

    Can you provide more detail on what you mean by load the input series? I believe the answer to your question will be that you need to select the input, but I want to clairify your question as you have asked it in the Development forum.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Hi Jese,


      Sorry if I'm not clear, English is not my language

      What I need is that "input Series" have this value "RSI (FisherTransform (Close, 14), 14, 3)", but I want to be able to put this value from within the source code of my indicator, and not from the window.

      Thanks again, Alejandro

      Comment


        #4
        Hello ahrt|,

        In this case, you would not want to try and modify the Input in this way but instead, program your indicator to produce a value which uses the RSI/FisherTransform internally. There is no way I could suggest to select an input in this way from code, the input used in the user interface is strictly a Manaul selection. The indicator would just need to be coded to use the data you want internally.

        In the indicators code, you can use RSI (FisherTransform (Close, 14), 14, 3) and then return that value as a Plot or however you wanted to display the resulting data.

        For example if your indicator currently just assigned the plot to the Close value:
        Code:
        Value[0] = Close[0];
        You could replace that with the indicators:

        Code:
        Value[0] = RSI (FisherTransform (Close, 14), 14, 3)[0];
        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment


          #5
          Thanks Jesse

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Jonafare, 12-06-2012, 03:48 PM
          5 responses
          3,984 views
          0 likes
          Last Post rene69851  
          Started by Fitspressorest, Today, 01:38 PM
          0 responses
          2 views
          0 likes
          Last Post Fitspressorest  
          Started by Jonker, Today, 01:19 PM
          0 responses
          2 views
          0 likes
          Last Post Jonker
          by Jonker
           
          Started by futtrader, Today, 01:16 PM
          0 responses
          6 views
          0 likes
          Last Post futtrader  
          Started by Segwin, 05-07-2018, 02:15 PM
          14 responses
          1,791 views
          0 likes
          Last Post aligator  
          Working...
          X