I am learning NinjaScript, (slowly) and have found something I don't understand in the supplied indicators, e.g. the SMA. I cannot find a Plot instruction anywhere. Is there an explanation of this that anyone can point me at please? I have written some simple indicators now, and as far as I am aware, I have to use Plot to get them on the screen.
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
Absent Plot instruction
Collapse
X
-
Absent Plot instruction
Hello.
I am learning NinjaScript, (slowly) and have found something I don't understand in the supplied indicators, e.g. the SMA. I cannot find a Plot instruction anywhere. Is there an explanation of this that anyone can point me at please? I have written some simple indicators now, and as far as I am aware, I have to use Plot to get them on the screen.Tags: None
-
I see, Plot is not an instruction, but just a sort of specification object that describes how a plot will look, and Value.Set will plot the associated DataSeries.
If that is the case, how come I can say Plot0.set(........
and get a plot of ........ ? Surely I should have to say Value.Set ?
I thought at first that this was connected to the Add statement because the Wizard set it to :-
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
but if I replace "Plot0" in this statement with "Fred", or whatever, and recompile, it has no effect whatever. So what does "Plot0" do in the Add instruction.
I have done a bit of object oriented programing, I can program in Visual C++, but this is downright confusing.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by cre8able, Today, 05:53 PM
|
1 response
10 views
0 likes
|
Last Post
by cre8able
Today, 08:20 PM
|
||
Started by johnMoss, 03-04-2024, 01:53 PM
|
3 responses
47 views
0 likes
|
Last Post
by AndyM
Today, 06:13 PM
|
||
Started by algospoke, Today, 06:01 PM
|
0 responses
8 views
0 likes
|
Last Post
by algospoke
Today, 06:01 PM
|
||
Started by Wessel, 03-23-2024, 02:37 PM
|
3 responses
25 views
0 likes
|
Last Post Today, 04:58 PM | ||
Started by martini, Yesterday, 04:45 PM
|
4 responses
32 views
0 likes
|
Last Post
by martini
Today, 04:48 PM
|
Comment