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

refferencing predictor other custom indicator

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

    refferencing predictor other custom indicator

    Hello,

    I have a question. I would like to implement results from one custome indicator (cci) to cci panel. I would like to keep all setting in cci panel but instead of taking values from normal cci I would like to make refference to other custom cci indicator.

    My question is where I should make some adjustment should it be in the below listed lines when indicator is called CCI_Histogram?

    I tried this but it is not working

    CCI_Forecaster_V7_DE ccif = CCI_Histogram;
    CCI cci = CCI(Periods);

    Thank you
    Attached Files

    #2
    Hello miroslav,

    Thank you for writing in.

    You wouldn't be able to assign an indicator of one type to a variable of a different type. For example, you couldn't do:
    Code:
    SMA theSMA = EMA(20);
    The code you have provided in your forum post will not compile as you are attempting to assign CCI_Histogram to a variable that is not the same type.

    If you would like to assign the CCI_Histogram indicator to a variable, the variable would need to be type CCI_Histogram.

    Can you please clarify what you are wanting to accomplish?
    Zachary G.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      I would like to accomplish that the CCI panel v7 will not take values from normal CCI which is base line for CCI Forecastor _DE but from my custom one. I am interesed to see possible level of the custom CCI before bar is closed.

      Comment


        #4
        Hello miroslav,

        You would need to modify the CCI panel v7 indicator to utilize your custom CCI indicator rather than the default CCI indicator that is included with NinjaTrader for its calculations.
        Zachary G.NinjaTrader Customer Service

        Comment


          #5
          Hello,

          maybe I described it wrongly but I want to modify cci panel so it will take values from my custom CCI histogram which is custom made. The script line I posted is from cci panel.

          Comment


            #6
            Hello miroslav,

            Can you please clarify if you are attempting to use CCI_Histogram rather than CCI_Forecaster_V7_DE?

            If this is the case, you will need to modify the ccif variable to be of type CCI_Histogram rather than CCI_Forecaster_V7_DE.

            Example:

            Code:
            CCI_Histogram ccif = CCI_Histogram(.....);
            Please note that you will need to modify the rest of the code as well because the rest of the code was relying on the fact that ccif was of type CCI_Forecaster_V7_DE rather than CCI_Histogram.
            Zachary G.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by itrader46, Today, 09:04 AM
            0 responses
            3 views
            0 likes
            Last Post itrader46  
            Started by timmbbo, Today, 08:59 AM
            0 responses
            1 view
            0 likes
            Last Post timmbbo
            by timmbbo
             
            Started by bmartz, 03-12-2024, 06:12 AM
            5 responses
            33 views
            0 likes
            Last Post NinjaTrader_Zachary  
            Started by Aviram Y, Today, 05:29 AM
            4 responses
            14 views
            0 likes
            Last Post Aviram Y  
            Started by algospoke, 04-17-2024, 06:40 PM
            3 responses
            28 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Working...
            X