NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 11-16-2009, 08:55 AM   #1
uprz23
Junior Member
 
Join Date: Jul 2009
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default How to Change Line Color on Plot

Just wondering if we can change the color of a line from a plot for different bars in NT7. I used the code below to add the line.

Add(new Plot(Color.FromKnownColor(KnownColor.Green), PlotStyle.Line, "line1"));

I think I can change the color for all bars with: Plots[0].Pen.Color = Color.xxx. But I want different colors for each bar.

Thanks
uprz23 is offline  
Old 11-16-2009, 09:02 AM   #2
uprz23
Junior Member
 
Join Date: Jul 2009
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
Default

Ok, I saw an example (http://www.ninjatrader-support2.com/...ad.php?t=21225), but it doesn't work on a plot type of Line.

PlotColors[0][0] = Color.Green;
PlotColors[0][0] = Color.Red;
uprz23 is offline  
Old 11-16-2009, 10:02 AM   #3
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
Default

uprz23,

There is a known bug in B4. Please try again in B5.
NinjaTrader_Josh is offline  
 

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 Plot color in Market Analyzer Tight Face Indicator Development 3 10-15-2009 03:48 PM
Problems learning to change line plot color & draw arrows once only cclsys Indicator Development 39 03-29-2009 03:00 PM
Dynamically change Plot color kenz987 General Programming 5 05-11-2008 11:22 PM
How can I change the color of plot in realtime? clearpicks Indicator Development 2 04-24-2008 07:42 AM
Line zero change color Mauro60 Indicator Development 5 01-28-2008 11:42 PM


All times are GMT -6. The time now is 04:39 PM.