![]() |
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 |
|
Junior Member
Join Date: Oct 2007
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
I am looking for a way other than using the drawing tool to add a 50% line on the stochastic indicator.
The only ones available are the %80 and %20 and I need them as well. Searched the forums but if I missed it please point me in the right direction. I’m new to Ninja Trader but I really like the extra features and additional scripts. Thanks in advance. ![]() P.C |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
Hi PorkChop,
You can do this through a little modification to the source code of the Stochastic indicator. Open up the Stochastic indicator through the NinjaScript editor and add this line into the Initialize() method. Code:
Add(new Line(Color.RoyalBlue, 50, "Middle"));
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
Another "out of the box" option is to do the following:
- Add your Stochastics indicator (lets say its in Panel2) - Add the indicator "ConstantLines" - Set its "Line1Value" property to a value of 50 - Set its "Panel" property to a value of 2
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Oct 2007
Posts: 7
Thanks: 0
Thanked 0 times in 0 posts
|
Josh and NinjaTrader_Ray
Both methods work great!. Thank you both for your quick response and solutions. Thanks again. P.C |
|
|
|
|
|
#5 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
You are very welcome!
Ray
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dinapoli Stochastic | delta88 | NinjaScript File Sharing Discussion | 34 | 04-11-2013 07:29 AM |
| Stochastic Momentum Index | geoarb | Indicator Development | 21 | 03-14-2012 02:32 AM |
| Using Strategy Wizard to develope Indicator on Indicator | mrlucky1x | Indicator Development | 3 | 08-25-2007 04:09 PM |
| Overlay Stochastic on Price in NT6? | pbastowski | Charting | 2 | 08-10-2007 05:01 AM |