Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add MA on CCI

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

    Add MA on CCI

    How can I plot a Simple Moving Average of the CCI indicator.

    #2
    This is not currently supported out of the box. It is on our development list. In the interim, it is possible via custom coding in NinjaScript.

    Here is reference tutorial on how one can accomplish this - http://www.ninjatrader-support.com/H...Indicator.html
    RayNinjaTrader Customer Service

    Comment


      #3
      Its much harder than it should be, but can still be done mostly from the wizard.

      -Create a new strategy using the wizard.
      -Select the MA type you want.
      -The first parameter will be input series (if this was available from the indicators window, we'd all be laughing), click on the three dots.
      -Select CCI as the input.
      -In the MA parameters, set 'plot on chart' to true.
      -Select any condition you want on the right side of the condition builder, it only needs to compile.



      Normally that would be it, but although the strategy wizard has 'Input Series' it lacks the flexibility to chose the plot panel, plot width etc. and moving averages default to plotting on the price.

      To get around this you will need to unlock the code, and assuming the parameters in the above example, you would add the following line to the Wizard generated code:

      EMA(CCI(14), 14).Panel =1; // <---- add this line
      Add(EMA(CCI(14), 14)); // wizard generated

      Also since you will be going through all this trouble, in the first stage of the wizard you will likely want to definine a few variables so that you can easily change the CCI and EMA periods without having to change the code. Just add a couple variables and call them CCIPeriod and EMAPeriod, and use the variables for the period parameters in the wizard;

      It would look something like this in the code
      Add(EMA(CCI(CCIPeriod), EMAPeriod));




      Last edited by Elliott Wave; 06-16-2008, 12:49 PM.

      Comment


        #4


        I can not see what you posted, not sure what to click on to get it. It seems to complicated for me, looks like I will have to wait for this option to be added hopefully in the near future. When do you think it may be added?
        Last edited by momtic; 06-24-2008, 07:31 AM.

        Comment


          #5
          Here's a bundle of CCI indicators for you:

          Adaptive Alternate CCI
          CCI with HMA Averages
          CCIMA
          SMACCI
          ZeroLagEMA CCI
          ZeroLagEMA Alternate CCI



          Enjoy!

          EDIT - If I remember correctly Ray has said this feature will be added in NT7. Hopefully in one of the early betas (late this year, early next), because I think its near the top of the list for a lot of people and there's been many requests.
          Attached Files
          Last edited by Elliott Wave; 06-24-2008, 07:42 AM.

          Comment


            #6
            Yes, indicator on indicator at the UI level in a chart is supported for NT7.
            RayNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by GwFutures1988, Today, 02:48 PM
            1 response
            5 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Started by ScottWalsh, 04-16-2024, 04:29 PM
            6 responses
            32 views
            0 likes
            Last Post ScottWalsh  
            Started by frankthearm, Today, 09:08 AM
            10 responses
            36 views
            0 likes
            Last Post frankthearm  
            Started by mmenigma, Today, 02:22 PM
            1 response
            4 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by NRITV, Today, 01:15 PM
            2 responses
            10 views
            0 likes
            Last Post NRITV
            by NRITV
             
            Working...
            X