![]() |
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
|
|||||||
| Indicator Development Support for the development of custom indicators using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2008
Posts: 46
Thanks: 0
Thanked 0 times in 0 posts
|
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; |
|
|
|
|
|
#2 |
|
Administrator
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
|
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
Dierk
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: May 2008
Posts: 46
Thanks: 0
Thanked 0 times in 0 posts
|
Ok, thanks.
Without any experience in coding, creating an indicator is impossible for me... Hoped that this could have been done easier. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |