NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 10-20-2007, 08:42 AM   #1
Viper3
Junior Member
 
Join Date: Jul 2007
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default Period 14 crossing Period Linear Regression 25

Woodie CCI indicator has a Period 14 and Period Linear Regression 25 I am having problems setting this up to plot the cross of the 14 over/under the period linear regression 25, I have tried many ways but nothing is showing on my charts.

Any help would be great.
Viper3 is offline  
Reply With Quote
Old 10-20-2007, 09:11 AM   #2
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

I am not sure I fully understand what you are after.

- Are you referring to the Strategy Wizard/Condition Builder?
- Are you trying to manually program a cross over condition in the NinjaScript Editor?

From what I can tell of the indicator, there is not Linear Regression plot value.
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-20-2007, 01:39 PM   #3
Viper3
Junior Member
 
Join Date: Jul 2007
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default Woodie CCI

Hello Ray,

- Are you referring to the Strategy Wizard/Condition Builder? yes
- Are you trying to manually program a cross over condition in the NinjaScript Editor? I am new so I think the answer is No I am following the steps in wizard.
From what I can tell of the indicator, there is not Linear Regression plot value. I see what you are talking about under the Plot

If you look at the Woodie CCI Indicator under Parameters you will see the
Period 14 and Period Lin. Regr. 25

I want the chart to plot and print arrows when it crosses with auto alerts, if you look at the CCI the Period 14 it is the black line on the bars and the Period Linear regression 25 is the Zero Line.

Can this be done in Condition builder or maybe the User Defined Inputs

Thx for your time on this,
Viper3 is offline  
Reply With Quote
Old 10-20-2007, 02:12 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

Yes this is possible. The CCI line is the WoodiesCCI plot. In your condition builder select WoodiesCCI indicator and then on the bottom of the left half select "WoodiesCCI" for the Plot parameter. Then in the center choose CrossAbove or CrossBelow. On the right side select "Misc" and then choose "Numeric value". Put the value of 0 in there. Now you have the condition of crossing over the zero line.
NinjaTrader_Josh is offline  
Reply With Quote
Old 10-20-2007, 02:13 PM   #5
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Unfortunately I am not a student of Woodies CCI. I assume that what you mean is if CCI line cross above or below a value of zero?

If this is what you want, please look at the following.

http://www.ninjatrader-support.com/H...mparisons.html
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-21-2007, 08:05 AM   #6
Viper3
Junior Member
 
Join Date: Jul 2007
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default

Thx, I completed the strategy I am not getting any auto alerts and arrows plotted on the Woodie CCI Indicator on my chart. In condition builders bottom under (Do the following) I picked My up arrow and +Y I picked woodie cci and under Plot on chart I picked True. On the chart properties I made sure to pick Plot markers only. Any idea what I did wrong.......
Viper3 is offline  
Reply With Quote
Old 10-21-2007, 09:09 AM   #7
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

Arrows will plot on panel 1 (price) and make sure you set the y value of the plot to something that will be displayed. If you set it to the CCI value for sure you will not see it. Try setting it to the High of the current bar for example.
NinjaTrader_Ray is offline  
Reply With Quote
Old 10-21-2007, 10:45 AM   #8
Viper3
Junior Member
 
Join Date: Jul 2007
Posts: 15
Thanks: 0
Thanked 0 times in 0 posts
Default

Thx Ray that worked . I sent a email to support to see if they could add a 2nd panel so I can plot on the indicator and not the chart. Woodie CCI does not use price bars so I move them out of the way. One more thing in the wizard help I do not see anything on Stops and Targets.
Viper3 is offline  
Reply With Quote
Old 10-21-2007, 10:51 AM   #9
NinjaTrader_Ray
Administrator
 
NinjaTrader_Ray's Avatar
 
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
Default

It is possible to plot on the indicator panel if you were implementing your login in an indicator. Unfortunately, you need to manually program this.
NinjaTrader_Ray is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linear Regression Channel ts888 Indicator Development 1 10-12-2007 07:49 AM
Add second symbol of same PeriodType, Period Folls Strategy Development 2 10-11-2007 05:59 PM
Standard Error returns Linear Regression line??? higler General Programming 2 04-30-2007 11:46 PM
Question about Linear Regression indicator Lupus Charting 5 02-16-2006 07:31 PM
Trial Period Activation Ripcat Installation and Licensing 3 11-10-2005 05:35 AM


All times are GMT -6. The time now is 07:23 AM.