How do you do that ?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Set back an Array to Null Value
Collapse
X
-
Then just declare the array again on each OnBarUpdate() pass. Declaring an array with the same name as an existing array replaces the existing array.Originally posted by baba123 View PostIt is a custom array : int[ ] MyArray =new int {0,0,0}
To be more specific I want to clear all the value in my array on each bar update
If you just want to reset all the elements of the array to zero, use Array.Clear(MyArray, 0, MyArray.Length).
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
125 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
105 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
85 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
105 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
85 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment