protected override void Initialize() { if (hidePlots) { Add(new Plot(Color.Transparent, PlotStyle.Line, "AboveZero")); Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "BelowZero")); Add(new Line(Color.FromKnownColor(KnownColor.ActiveCaptionText), 0, "ZLine")); } else { Add(new Plot(Color.FromKnownColor(KnownColor.YellowGreen), PlotStyle.Line, "AboveZero")); Add(new Plot(Color.FromKnownColor(KnownColor.Red), PlotStyle.Line, "BelowZero")); Add(new Line(Color.FromKnownColor(KnownColor.ActiveCaptionText), 0, "ZLine")); } }
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
HidePlot not functioning
Collapse
X
-
HidePlot not functioning
I am trying to hide a plot as a user Input. The following compiles but doesn't work.
Code:Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by benmarkal, Yesterday, 12:52 PM
|
3 responses
22 views
0 likes
|
Last Post Today, 05:22 AM | ||
Started by helpwanted, Today, 03:06 AM
|
1 response
17 views
0 likes
|
Last Post Today, 03:35 AM | ||
Started by Brevo, Today, 01:45 AM
|
0 responses
11 views
0 likes
|
Last Post
by Brevo
Today, 01:45 AM
|
||
Started by aussugardefender, Today, 01:07 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 01:07 AM | ||
Started by pvincent, 06-23-2022, 12:53 PM
|
14 responses
244 views
0 likes
|
Last Post
by Nyman
Today, 12:47 AM
|
Comment