Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
CCI and Strategy Wizard
Collapse
X
-
CCI and Strategy Wizard
Does anyone know, using the Strategy Wizard, if it is possible to open a position when the CCI hits a certain level such as either 200 or -200? I was able to make the period adjustable but didn't find a way to open a position when the CCI reaches a certain level. Any suggestions would be appreciated.Tags: None
-
The Strategy Wizard worked well as you had layed out below. Right now I have a variable period with a set CCI number of 200 and -200. Is there a way to have that number be adjustable so when I optimize it would find the best level to use such at 187 and -187? I tried making the Constant Line indicator adjustable with the CCI but it didn't work.
Comment
-
What I am trying to accomplish is being able to optimize the CCI strength to find the best level. An example would be to be able to set the optimizer to find out what is the optimum setting between 150-200 or -150-200 in which to open a position. Right now I am able to optimize the CCI period but not its strength. Does anyone have any thoughts on how this could be accomplished using the Strategy Wizard?
Thank you
Mark
Comment
-
Hello,
By strength you mean the CCI value, right? If so, you will need to have the CCI value at which something will occur as an user defined input. So maybe something like this:
if(CCI(Typical, 14)[0] > my_buy_cci_level)
{
//place some order
}
Where my_buy_cci_level is a user defined input that you set up in the beginning when you create the Strategy. Kind of like the period.DenNinjaTrader Customer Service
Comment
-
Hello Ben,
Thanks for your response. You are right in that strength means CCI value. I am learning to use the Strategy Wizard. Is the programming you used below capable of being programmed using the Strategy Wizard? If so, what would the programming for that?
Comment
-
Hi 123r34, yes please check here how to compare an indicator to a threshold value - http://www.ninjatrader-support.com/H...mparisons.html
To optimize this, you will need to create a user input parameter for this value - http://www.ninjatrader-support.com/H...nedInputs.html
If you create user inputs for the CCI Period and your Buy / Sell levels you can later optimize those for the best paramters to use -
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
656 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
371 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
109 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
574 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
579 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment