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 ZeroKuhl, Today, 04:31 PM
|
0 responses
7 views
0 likes
|
Last Post
by ZeroKuhl
Today, 04:31 PM
|
||
Started by Vulgoth_t_Destroyer, 05-09-2022, 04:45 PM
|
54 responses
5,336 views
0 likes
|
Last Post
by Gaterz
Today, 04:29 PM
|
||
Started by ETFVoyageur, 05-07-2024, 07:05 PM
|
11 responses
73 views
0 likes
|
Last Post
by -=Edge=-
Today, 04:27 PM
|
||
Started by _Zero_, 04-10-2020, 03:21 PM
|
145 responses
7,899 views
6 likes
|
Last Post
by johng2
Today, 04:19 PM
|
||
Started by TheTradingMantis, 01-19-2023, 02:05 AM
|
43 responses
921 views
0 likes
|
Last Post
by jmagaia
Today, 04:13 PM
|
Comment