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 argusthome, 03-08-2026, 10:06 AM
            0 responses
            110 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            59 views
            0 likes
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            37 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Started by TheRealMorford, 03-05-2026, 06:15 PM
            0 responses
            41 views
            0 likes
            Last Post TheRealMorford  
            Started by Mindset, 02-28-2026, 06:16 AM
            0 responses
            78 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Working...
            X