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 > Indicator Development

Indicator Development Support for the development of custom indicators using NinjaScript.

Reply
 
Thread Tools Display Modes
Old 05-09-2008, 03:25 AM   #1
timokrates
Member
 
Join Date: May 2008
Posts: 46
Thanks: 0
Thanked 0 times in 0 posts
Default BarColor based on Slow Stochastic

Hi All,

I would like to create an indicator based on the %D slope of the 12, 5, 5 slow stochastic. So if the %D turns up the bars should be green, if it turns down the color should be red.

I have to say that I have no experience in creating indicators at all. So this seems to be tough.

Help is highly appreciated...thanks

Here is what I found in the help guide as an example:

// Sets the bar color to yellow
BarColor = Color.Yellow;
// Sets the bar color to its default color as defined in the chart properties dialog
BarColor = Color.Empty;
// Sets the bar color to yellow if the 20 SMA is above the 50 SMA and the closing
// price is above the 20 SMA (see image below)
if (SMA(20)[0] > SMA(50)[0] && Close[0] > SMA(20)[0])
BarColor = Color.Yellow;
timokrates is offline  
Reply With Quote
Old 05-09-2008, 03:51 AM   #2
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Unfortunately we don't provide support down to the level actually coding an indicator, but here is the general direction:
- you would need to custom code a new NS indicator
- this indicator likely will need to use the Stochastics() function
- the Stoachstics provides a "D" data series which you could access for comparison

As a last resort a certified NinjaScript consultant would be at your help: http://www.ninjatrader.com/webnew/pa...injaScript.htm
NinjaTrader_Dierk is offline  
Reply With Quote
Old 05-09-2008, 03:58 AM   #3
timokrates
Member
 
Join Date: May 2008
Posts: 46
Thanks: 0
Thanked 0 times in 0 posts
Default

Ok, thanks.

Without any experience in coding, creating an indicator is impossible for me...
Hoped that this could have been done easier.
timokrates 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
Patsystem login too slow skynetman Suggestions And Feedback 14 07-01-2008 04:34 PM
BarColor not painting Tight Face Indicator Development 2 05-04-2008 09:48 AM
BarColor Infinity General Programming 3 03-29-2008 11:43 AM
Using BarColor, candles lose outline color JangoFolly Indicator Development 9 02-15-2008 08:59 AM
NT6 BarColor guym Indicator Development 2 11-27-2006 09:51 AM


All times are GMT -6. The time now is 08:04 AM.