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 PaulMohn, Yesterday, 06:59 PM
|
1 response
23 views
0 likes
|
Last Post Today, 07:32 AM | ||
Started by milfocs, Yesterday, 07:23 PM
|
1 response
9 views
0 likes
|
Last Post Today, 07:31 AM | ||
Started by cmtjoancolmenero, Yesterday, 05:05 PM
|
2 responses
31 views
0 likes
|
Last Post Today, 07:24 AM | ||
Started by naanku, Yesterday, 07:25 PM
|
1 response
10 views
0 likes
|
Last Post Today, 07:23 AM | ||
Started by nissan200sx55, Yesterday, 06:25 AM
|
3 responses
15 views
0 likes
|
Last Post Today, 07:21 AM |
Comment