Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to declare a BarsArray class?
Collapse
X
-
Hi atrader, not sure I follow - you can work directly with BarsArray if you added instruments via the Add() method prior - http://www.ninjatrader-support.com/H...BarSeries.html
-
Thanks Bertrand! That is how to use the BarsArray. And what I am trying to do
is to make a function or methord. I am going to use the BarsArray as a parameter, so I need to declare it as an object. I believe that I should be able to do it. But I can not find any documentation about it.
Comment
-
Thans Josh! How can I declare the [] index?
Acturally, I only need one series of bars. When I call the function, I will use BarsArray[1] as the parameter for example. However, when I make the function, I need to declare it. So my question is how can I declare it when I creat my funciton? or if it is not supported, can you privde me with the structure of that class, so that I can create the class by myself?
Comment
-
Thank you again Josh! There are serval values in the
BarsArray[x], and I need to pass the whole content in the BarsArray[x] to my function. So how do I make the declaration? For example,
private void MyOwnFuction (int integerExample, 'BarsArray[x]' barsArrayINeed)
What should I use in the 'BarsArray[x]' part? (like the int in the integerExample)
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by argusthome, Yesterday, 10:06 AM
|
0 responses
20 views
0 likes
|
Last Post
by argusthome
Yesterday, 10:06 AM
|
||
|
Started by NabilKhattabi, 03-06-2026, 11:18 AM
|
0 responses
18 views
0 likes
|
Last Post
|
||
|
Started by Deep42, 03-06-2026, 12:28 AM
|
0 responses
14 views
0 likes
|
Last Post
by Deep42
03-06-2026, 12:28 AM
|
||
|
Started by TheRealMorford, 03-05-2026, 06:15 PM
|
0 responses
9 views
0 likes
|
Last Post
|
||
|
Started by Mindset, 02-28-2026, 06:16 AM
|
0 responses
38 views
0 likes
|
Last Post
by Mindset
02-28-2026, 06:16 AM
|

Comment