Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Creating Stochastics of CCI
Collapse
X
-
Hi designer,
Thanks for the post. Please tell us at what step you run into trouble following the tutorial and we will gladly assist you. Here is the tutorial link - http://www.ninjatrader-support.com/H...verview22.htmlJosh P.NinjaTrader Customer Service
-
Hi Josh,
I am trying to create an indicator which is the Stochastics of the CCI. I was able to create all the parameters from the wizzard but when I get to the code portion i'm not sure where to insert the code from the CCI and the Stochastics. I guess I have to insert the CCI code...
Thanks
Comment
-
Hi designer,
First you will have to create a DataSeries object, because the Stochastics takes only a DataSeries input. In the Variables section add
Code:private new DataSeries cciValue;
Code:cciValue = new DataSeries(this);
Code:cciValue.Set(CCI(Close, MyPeriod)[0]);
Code:double stochCCI = Stochastics(cciValue, MyPeriodD, MyPeriodK, MySmoothingPeriod)[0];
http://www.ninjatrader-support.com/H...iesObject.htmlBertrandNinjaTrader Customer Service
Comment
-
Hi designer,
Please check out the following thread, the indicator posted there should give a good starting point for what you want to do -
http://www.ninjatrader-support2.com/...ead.php?t=3952
Originally posted by designer View PostThanks,
Do you suggest a similar indicator I can use as a template for the NT code?BertrandNinjaTrader Customer Service
Comment
-
Would I be able to use the StochRSI code (attached)and just replace RSI with CCI in the code?
ThanksAttached Files
Comment
-
I don't see why not. It should work fine. I have replaced RSI with CCI in indicators before and it was very simple and effective.
Comment
-
Hi,
Yes, this indicator can easily be modified to produce a Stochastic CCI.
Your minimum, maximum and rsi sets would then look like this -
Code:minimum.Set( MIN(CCI(PeriodRsi), LookBack)[0]); maximum.Set( MAX(CCI(PeriodRsi), LookBack)[0]); rsi.Set( CCI(PeriodRsi)[0]);
Originally posted by Elliott Wave View PostI don't see why not. It should work fine. I have replaced RSI with CCI in indicators before and it was very simple and effective.BertrandNinjaTrader Customer Service
Comment
-
Thanks,
I was able to paste your CCI code as shown below (see attachment) then i saved it but when I try to import the saved file into the chart i do not see it in the Indicators list...please check if i placed in the right location.
ThanksAttached Files
Comment
-
You would then have to debug the error, I would not know what the problem is since its not my code.
Here is a help resource that may provide some guidance - http://www.ninjatrader-support2.com/...ead.php?t=3418RayNinjaTrader Customer Service
Comment
-
Hi designer,
Please check out this debugged and commented code of the StocCCI and let me know if you have questions.
Originally posted by designer View PostRay thanks I did as sugested but get the following errors in lines 50-56
Error CS0103
ThanksAttached FilesBertrandNinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by jc.am, Today, 07:59 PM
|
1 response
5 views
0 likes
|
Last Post
|
||
Started by ybhx0315, Today, 09:06 PM
|
0 responses
6 views
0 likes
|
Last Post
![]()
by ybhx0315
Today, 09:06 PM
|
||
Started by parkinsonbr, Today, 08:23 PM
|
0 responses
3 views
0 likes
|
Last Post
![]()
by parkinsonbr
Today, 08:23 PM
|
||
Started by i2w8am9ii2, Today, 04:36 PM
|
2 responses
13 views
0 likes
|
Last Post
![]()
by i2w8am9ii2
Today, 05:20 PM
|
||
Started by WeyldFalcon, Today, 02:07 PM
|
2 responses
15 views
0 likes
|
Last Post
![]()
by WeyldFalcon
Today, 05:39 PM
|
Comment