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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-02-2010, 04:33 PM   #1
photog53
Senior Member
 
Join Date: Feb 2010
Location: Kansas
Posts: 142
Thanks: 4
Thanked 9 times in 5 posts
Default Changeable Color

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.
photog53 is offline  
Reply With Quote
 

Tags
moving average channel

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


All times are GMT -6. The time now is 05:13 AM.