Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
How to read /write a global array?
Collapse
X
-
Hi maxpi,
What are you using this array for? What you want to do is write out every element of the array into a text file as new individual lines. Then you can read all of the lines into a new array in your other indicator.
Please see the reference sample section of the forums and look for the StreamReader and StreamWriter samples.Josh P.NinjaTrader Customer Service
-
I want to make an indicator that runs on a tick chart but I want to display the results on a bar chart. Writing to a text file probably would be ok really, I had assumed there was a way in C# to simply have a global array but I guess it's sort of verboten...
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
26 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
15 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
9 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
10 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
17 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment