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 GwFutures1988, Today, 02:48 PM
|
1 response
5 views
0 likes
|
Last Post Today, 03:09 PM | ||
Started by ScottWalsh, 04-16-2024, 04:29 PM
|
6 responses
32 views
0 likes
|
Last Post
by ScottWalsh
Today, 02:57 PM
|
||
Started by frankthearm, Today, 09:08 AM
|
10 responses
36 views
0 likes
|
Last Post
by frankthearm
Today, 02:54 PM
|
||
Started by mmenigma, Today, 02:22 PM
|
1 response
4 views
0 likes
|
Last Post Today, 02:34 PM | ||
Started by NRITV, Today, 01:15 PM
|
2 responses
10 views
0 likes
|
Last Post
by NRITV
Today, 01:51 PM
|
Comment