![]() |
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Jul 2009
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Jul 2009
Posts: 28
Thanks: 0
Thanked 0 times in 0 posts
|
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; |
|
|
|
|
|
#3 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 107 times in 70 posts
|
uprz23,
There is a known bug in B4. Please try again in B5.
Josh
NinjaTrader Customer Service |
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |