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 AaronKoRn, Today, 09:49 PM
|
0 responses
11 views
0 likes
|
Last Post
by AaronKoRn
Today, 09:49 PM
|
||
Started by carnitron, Today, 08:42 PM
|
0 responses
10 views
0 likes
|
Last Post
by carnitron
Today, 08:42 PM
|
||
Started by strategist007, Today, 07:51 PM
|
0 responses
11 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by StockTrader88, 03-06-2021, 08:58 AM
|
44 responses
3,980 views
3 likes
|
Last Post
by jhudas88
Today, 06:59 PM
|
||
Started by rbeckmann05, Today, 06:48 PM
|
0 responses
9 views
0 likes
|
Last Post
by rbeckmann05
Today, 06:48 PM
|
Comment