I have no problem working with HTML code if that is the way to do it.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Gradient Chart Background color
Collapse
X
-
Gradient Chart Background color
Is it possible to to make the chart background a gradient color?
I have no problem working with HTML code if that is the way to do it.Tags: None
-
Comment
-
intellisense vs msdn
Code:// Create a diagonal linear gradient with four stops. LinearGradientBrush myLinearGradientBrush = new LinearGradientBrush(); myLinearGradientBrush.StartPoint = new Point(0,0); myLinearGradientBrush.EndPoint = new Point(1,1); myLinearGradientBrush.GradientStops.Add( new GradientStop(Colors.Yellow, 0.0)); myLinearGradientBrush.GradientStops.Add( new GradientStop(Colors.Red, 0.25)); myLinearGradientBrush.GradientStops.Add( new GradientStop(Colors.Blue, 0.75)); myLinearGradientBrush.GradientStops.Add( new GradientStop(Colors.LimeGreen, 1.0));
Comment
-
Per default you have the Drawing 2D namespace added for using, so you would need work with this instructions then - http://msdn.microsoft.com/en-us/libr...ientbrush.aspx
It's a different story according to MSDN docs if you were using the one from the Media / Presentation core one...BertrandNinjaTrader Customer Service
Comment
-
Chart Background Using a Gradient Color
Hello. Would you happen to have the code to paint the background chart color as a gradient? If not, can you point me to the URL for the CustomPlotSample?
My goal is to have the code that paints the chart background as displayed in the attached *.png.
Thanks,
R. C.
Comment
-
Hello Mindset,
Thank you for the code. I've got one question.
I'm currently running NT V6.5.1000.9. When I try to IMPORT BackGroundGradient.zip I receive the following message ..
"Import failed. NinjaTrader could not decompress the NinjaScript Archive File: Version required to extract this entry not supported(45)."
Have you seen this error before?
Comment
-
Yes
Copy and paste the attached code into a new indicator that you make in 6.5 called BackGroundGradient and see if it will compile.Attached Files
Comment
-
I'm getting a compile error on the following lines :
[GridCategory("Text & Colors")]
The type or namespace name 'GridCategory' could not be found (are you missing a using directive or an assembly reference?) Code : CS0246
Do you have an additional DLL that contains the GridCategory reference?
P.S. When I comment out the "GridCategory" lines, everything works great.
Thanks again.Last edited by rcsingleton; 09-23-2010, 05:37 PM.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by ellington, Today, 07:40 AM
|
0 responses
1 view
0 likes
|
Last Post
by ellington
Today, 07:40 AM
|
||
Started by Atticus20, Today, 07:27 AM
|
0 responses
3 views
0 likes
|
Last Post
by Atticus20
Today, 07:27 AM
|
||
Started by ninza33, Today, 07:16 AM
|
0 responses
4 views
0 likes
|
Last Post
by ninza33
Today, 07:16 AM
|
||
Started by linkcou, Today, 07:01 AM
|
0 responses
7 views
0 likes
|
Last Post
by linkcou
Today, 07:01 AM
|
||
Started by brunoviveiros, 02-17-2020, 05:31 AM
|
4 responses
63 views
0 likes
|
Last Post Today, 06:25 AM |
Comment