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
Where/how to initiate an object list...
Collapse
X
-
Hello b16_aln,
Thanks for your post.
You would not be able to retain the information in the script when reloading the script. Please see the help guide in understanding a script life cycle: https://ninjatrader.com/support/help...fecycle_of.htm
A solution would be to write your list data to a file and then read it back in when the script reloads. Here are links to writing and reading files:
-
Where/how to initiate an object list...
Hello,
I would like to understand where/how to initiate an object list within an indicator so that it doesn't get reset if it has collected any data when I change the chart paramaeters, e.g change the instrument or timeseries.
I have tried declaring in the namspace and then instigating in State==State.configure using If logic e.g; if(xxx.Count<1) xxx= new List<Object>(); however it resets whenever I change chart parameters.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by kujista, Today, 06:23 AM
|
2 responses
6 views
0 likes
|
Last Post
by kujista
Today, 08:08 AM
|
||
Started by f.saeidi, Today, 08:03 AM
|
0 responses
4 views
0 likes
|
Last Post
by f.saeidi
Today, 08:03 AM
|
||
Started by cre8able, 04-17-2024, 04:16 PM
|
7 responses
64 views
0 likes
|
Last Post Today, 08:01 AM | ||
Started by Aviram Y, 08-09-2023, 09:04 AM
|
11 responses
299 views
0 likes
|
Last Post
by arjandezeeuw
Today, 08:00 AM
|
||
Started by Christopher Leggit, 02-15-2024, 09:00 AM
|
3 responses
47 views
0 likes
|
Last Post
by rdtdale
Today, 07:57 AM
|
Leave a comment: