Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Visual Studio Colors
Collapse
X
-
-
The [Browsable(true)], Color property has to be set true has to be set true and an application RD also help to get that . If you have the line of code .
I can point it out .
Please , Check NinjaTrader 8 Help guide under ' Working with Brushes' . If that does not help then i do have another option to send you a piece of code.Last edited by Emma1; 12-08-2023, 11:35 AM.
Comment
-
Originally posted by Emma1 View PostThe [Browsable(true)], Color property has to be set true has to be set true and an application RD also help to get that . If you have the line of code .
I can point it out .
And I tried changing to 'true' and nothing happend:
part of the code(if you need everything I can post the cs file):
[Browsable(true)]
private string ColorReversalUpSerialize
{
get { return Serialize.BrushToString(ColorReversalUp); }
set { ColorReversalUp = Serialize.StringToBrush(value); }
}
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
SetDefaultSettings();
SetParameters();
var stroke = new Stroke(Brushes.Red,DashStyleHelper.Solid,width:2) ;
//AddPlot(Brushes.Red, name:"Range");
AddPlot(stroke, PlotStyle.Bar, name: "Range");
AddPlot(Brushes.Blue, name: "EMA Range");
var dailyStroke = new Stroke(Brushes.Fuchsia, DashStyleHelper.Dash, width: 2);
AddPlot(dailyStroke, PlotStyle.Hash, name: "Daily Range");
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by mishhh, 05-25-2010, 08:54 AM
|
19 responses
6,189 views
0 likes
|
Last Post
by rene69851
Today, 09:29 AM
|
||
Started by gwenael, Today, 09:29 AM
|
0 responses
3 views
0 likes
|
Last Post
by gwenael
Today, 09:29 AM
|
||
Started by Karado58, 11-26-2012, 02:57 PM
|
8 responses
14,829 views
0 likes
|
Last Post Today, 09:09 AM | ||
Started by Option Whisperer, Today, 09:05 AM
|
0 responses
2 views
0 likes
|
Last Post Today, 09:05 AM | ||
Started by cre8able, Yesterday, 01:16 PM
|
3 responses
11 views
0 likes
|
Last Post
by cre8able
Today, 08:28 AM
|
Comment