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
Essence of the notion Value(s)
Collapse
X
-
Hello,
This is referring to the difference between Value and Values in NinjaScript. When you refer to Value[], you are referring to the primary data series in the script. If you have more than one data series in your script, then you can use Values[][] to refer to specific data series.
For example:
- Value[5] -- The value of the primary data series, 5 bars ago
- Values[0][5] -- The same thing as above
- Values[3][10] -- The value of the fourth data series, 10 bars ago
Dave I.NinjaTrader Product Management
-
Originally posted by NinjaTrader_Dave View PostValue[5] -- The value of the primary data series, 5 bars ago
The value of the primary data series, 6 bars ago( from zero... 5 is 6's number ). Isn't it, really?
Originally posted by NinjaTrader_Dave View PostValues[3][10] -- The value of the fourth data series, 10 bars ago
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by KonAdams, Today, 10:53 PM
|
0 responses
2 views
0 likes
|
Last Post
by KonAdams
Today, 10:53 PM
|
||
Started by JGriff5646, Today, 10:02 PM
|
0 responses
11 views
0 likes
|
Last Post
by JGriff5646
Today, 10:02 PM
|
||
Started by AdamDJ8, Today, 09:18 PM
|
0 responses
5 views
0 likes
|
Last Post
by AdamDJ8
Today, 09:18 PM
|
||
Started by knowmad, Today, 03:52 AM
|
2 responses
34 views
0 likes
|
Last Post
by knowmad
Today, 09:03 PM
|
||
Started by ETFVoyageur, Today, 07:05 PM
|
0 responses
11 views
0 likes
|
Last Post
by ETFVoyageur
Today, 07:05 PM
|
Comment