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
Change Line Category
Collapse
X
-
Change Line Category
Is it possible that I can change the Line Category Name so the Line properties are listed with the Plots?
Tags: None
-
Hello,
Thank you for the question.
The Lines and Plots groups are generated automatically when you add Plots or Lines so they would be seperate.
You can create a public double property that can go in the Plots that sets or gets the Line value, here is a simple example:
Code:protected override void Initialize() { Add(new Plot(Color.Red, "PlotTest")); Add(new Line(Color.Black, 0, "ZeroLine")); } [XmlIgnore()] [Category("Plots")] public double LineValue{ get{ return Lines[0].Value; } set{ Lines[0].Value = value; } }
I look forward to being of further assistance.JesseNinjaTrader Customer Service
-
Thank-you Ninjatrader_Jesse.
I'll just leave the original Line then as having duplicate Line parameters might cause confusion. I was hoping it's category could just be renamed to "Plots" and it would display with the Plots but that's not the case.
Also an FYI the link at the bottom of the page " Parameter sequencing" goes to a blank page.
http://ninjatrader.com/support/forum...15&postcount=1
Link to blank page.
For more information on how to arrange the indicator/strategy's chart label, please see this reference sample: http://www.ninjatrader-support.com/v...3814#post23814
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Rogers101, 05-05-2024, 11:30 AM
|
3 responses
21 views
0 likes
|
Last Post
by Rogers101
Today, 12:48 AM
|
||
Started by nightstalker, 05-04-2024, 02:05 PM
|
5 responses
53 views
1 like
|
Last Post
by nightstalker
Today, 12:13 AM
|
||
Started by MSerag, Yesterday, 11:52 PM
|
0 responses
8 views
0 likes
|
Last Post
by MSerag
Yesterday, 11:52 PM
|
||
Started by DynamicTest, Yesterday, 11:18 PM
|
0 responses
3 views
0 likes
|
Last Post
by DynamicTest
Yesterday, 11:18 PM
|
||
Started by dcriador, Yesterday, 01:43 AM
|
3 responses
20 views
0 likes
|
Last Post
by dcriador
Yesterday, 11:17 PM
|
Comment