Second is there a way to get a Color from a addPlot. I created Draw.Text and I want the text the same color as my AddPlot.
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
Erasing old plots AND getting a color from a Plot
Collapse
X
-
Erasing old plots AND getting a color from a Plot
Is there a way one can erase old data plots. I created target lines and I want to erase the old target lines on my chart.
Second is there a way to get a Color from a addPlot. I created Draw.Text and I want the text the same color as my AddPlot.Tags: None
-
Hello ballboy11,
Did you manually draw these target lines or were they applied as part of your script?
Regarding having the same color for Draw.Text as well as AddPlot, you could pass the same color to both the plot and the text, for example,
Code:Add(new Plot(Color.Blue, PlotStyle.Line, "")) DrawText("tag1", "Text to draw", 10, 1000, Color.Blue);
Last edited by NinjaTrader_AlanP; 05-09-2017, 10:23 AM.Alan P.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by frslvr, 04-11-2024, 07:26 AM
|
9 responses
123 views
1 like
|
Last Post
by caryc123
Today, 03:12 PM
|
||
Started by rocketman7, Today, 09:41 AM
|
4 responses
16 views
0 likes
|
Last Post
by rocketman7
Today, 02:56 PM
|
||
Started by selu72, Today, 02:01 PM
|
1 response
9 views
0 likes
|
Last Post Today, 02:17 PM | ||
Started by WHICKED, Today, 02:02 PM
|
2 responses
18 views
0 likes
|
Last Post
by WHICKED
Today, 02:15 PM
|
||
Started by f.saeidi, Today, 12:14 PM
|
8 responses
21 views
0 likes
|
Last Post
by f.saeidi
Today, 01:55 PM
|
Comment