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 gentlebenthebear, Today, 01:30 AM
        1 response
        8 views
        0 likes
        Last Post NinjaTrader_Jesse  
        Started by Aviram Y, Today, 05:29 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by cls71, Today, 04:45 AM
        1 response
        7 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by TradeForge, Today, 02:09 AM
        1 response
        22 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by elirion, Today, 01:36 AM
        2 responses
        14 views
        0 likes
        Last Post elirion
        by elirion
         
        Working...
        X