![]() |
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 |
|
Senior Member
Join Date: Feb 2010
Location: Kansas
Posts: 142
Thanks: 4
Thanked 9 times in 5 posts
|
I have succeed in creating a Ninja 7 indicator that creates a "moving average channel" (using DrawRegion) with semi-opaque gray channel between the SMA High and SMA Low. (thanks to the forum threads!!!)
I cannot however, seem to create a place in 'Parameters' or 'Plots' for a way to change the color of the channel. I tried creating a public entry to return a System.Drawing.Color value....but that has not worked. Can you point me to an example of code where someone has created a way to select color from the "Indicators Screen" for the channel?? NOTE: I did successfully create upper and lower 'Plots" for line colors. |
|
|
|
|
|
#2 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
photog53,
Please see this tip here for creating custom color parameters: http://www.ninjatrader-support2.com/...ead.php?t=4977
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
|
Hello,
I built a color change drawregion indicator: http://www.ninjatrader-support2.com/...N&pp=15&page=2 Use that as an example and let me know if you have q's... |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Feb 2010
Location: Kansas
Posts: 142
Thanks: 4
Thanked 9 times in 5 posts
|
Thanks for the prompt replies!! I'll take a look.
|
|
|
|
|
|
#5 |
|
Senior Member
|
Did you get it figured out?
|
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Feb 2010
Location: Kansas
Posts: 142
Thanks: 4
Thanked 9 times in 5 posts
|
Yes...(thanks so much!!!) It works well.
I am now adding code so the indicator can select a variety of "moving averages" and paint a High/Low channel for each of them depending on selection. After it is tested, I will upload the indicator to the Ninja forum for anyone who wants it can use it. (This indicator may have been done before, but I'd like to offer it in return for all the info I've received over the last several months from this site) |
|
|
|
|
|
#7 |
|
Senior Member
|
Sounds great!
|
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Feb 2010
Location: Kansas
Posts: 142
Thanks: 4
Thanked 9 times in 5 posts
|
I posted the completed Ninja 7 version of this indicator on the "sharing" portion of this forum. I will put a Ninja 6.5 version out later as well. Thanks again for all the help.
|
|
|
|
![]() |
| Tags |
| moving average channel |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change chart panel back color and bar color for a previous bar. | ackchan | General Programming | 5 | 03-09-2010 08:44 AM |
| Color for bars... | Alfred | Version 7 Beta General Questions & Bug Reports | 6 | 10-19-2009 03:14 PM |
| Color for background | anmir55 | General Programming | 6 | 12-29-2008 02:42 PM |
| background color | safetrading | Indicator Development | 2 | 12-19-2008 10:41 AM |
| Volume Color | NinjaTrader_Josh | NinjaScript File Sharing Discussion | 6 | 12-19-2007 08:36 AM |