Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Add MA on CCI
Collapse
X
-
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.htmlRayNinjaTrader Customer Service
-
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
-
-
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 FilesLast edited by Elliott Wave; 06-24-2008, 07:42 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
45 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
136 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
190 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
101 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|
||
|
Started by cmoran13, 04-16-2026, 01:02 PM
|
0 responses
141 views
0 likes
|
Last Post
by cmoran13
04-16-2026, 01:02 PM
|


Comment