//I want the label to show on this first plot but not the second. How? AddPlot(new Stroke(Brushes.Black), PlotStyle.Bar, "RelativeVolume"); AddPlot(new Stroke(Brushes.Red), PlotStyle.Bar, "VolumeIndicator");
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Hide Label for Second Plot
Collapse
X
-
Hide Label for Second Plot
How can I hide the label of just my second plot? For example:
Code:Tags: None
-
Hello swcooke,
Thank you for your reply.
AddLine() can be used for that purpose. Call AddLine in State.SetDefaults and it will add a line at the numeric value.
If you do need to use a plot, you would need to render the line using SharpDX in the OnRender method. More reading on that subject below:Code:if (State == State.SetDefaults) { ... AddLine(Brushes.Blue, 100, "MyPriceLine"); .... }
Please let me know if I can assist any further.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
71 views
0 likes
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
152 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
162 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|
||
|
Started by CarlTrading, 05-10-2026, 08:12 PM
|
0 responses
100 views
0 likes
|
Last Post
by CarlTrading
05-10-2026, 08:12 PM
|
||
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
288 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|

Comment