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

Any examples of integration indicator into another?

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

    Any examples of integration indicator into another?

    This question is not "how to include one indi into another".
    instead, I want to do the following.

    i.e. I have one indicator (with 30+ of inputs ).
    I want to create a new version of that indicator, without touching that indi code, instead write a new indi, which will be based on it, so i could add extra inputs, OnStateChange events and etc, without "copying" the input declarations or any code from the main indicator, instead creating an indicator, that will be just "enriched" version of it, based on it.

    is that possible?

    #2
    Hello TazoTodua,

    Thank you for your post.

    Yes, this is possible to a certain extent. As you are only calling the indicator in the new indicator in order to add additional parameters you would then not have access to the code of the indicator directly and could not make any significant changes to it's logic or base conditions on these new parameters for example.

    In general, you would want to make a copy of the indicator (right click in the NinjaScript Editor when it's open for the script and select Save As) and then make your additions to the code.

    Calling the indicator in a new indicator to add functions is going to limit what you can and cannot do. While you may be able to call the indicator's values for new conditions in the new indicator as stated you would not be able to change it's internal logic or conditions through another indicator.

    Please let me know if you have any questions.

    Comment


      #3
      Ye,s i know that i wont have access to that indicator and cant change any logic.
      just want what I said, to "add some funcitonality" (not modifying the existing code).

      so, how can i do that?

      Comment


        #4
        Hello TazoTodua,

        Thank you for your response.

        Can you provide some examples of "adding some functionality" and I will try to put together an example for you?

        I look forward to assisting you further.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Perr0Grande, Today, 08:16 PM
        0 responses
        2 views
        0 likes
        Last Post Perr0Grande  
        Started by elderan, Today, 08:03 PM
        0 responses
        5 views
        0 likes
        Last Post elderan
        by elderan
         
        Started by algospoke, Today, 06:40 PM
        0 responses
        10 views
        0 likes
        Last Post algospoke  
        Started by maybeimnotrader, Today, 05:46 PM
        0 responses
        11 views
        0 likes
        Last Post maybeimnotrader  
        Started by quantismo, Today, 05:13 PM
        0 responses
        7 views
        0 likes
        Last Post quantismo  
        Working...
        X