• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 mohdhm, Today, 04:09 PM
            0 responses
            1 view
            0 likes
            Last Post mohdhm
            by mohdhm
             
            Started by BGWTEX, Today, 03:30 PM
            1 response
            3 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by marekflys, Today, 03:07 PM
            0 responses
            5 views
            0 likes
            Last Post marekflys  
            Started by GregoryBaskin, Today, 02:51 PM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_Tyler  
            Started by swcooke, Today, 12:33 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X