Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I got done what I wanted. Initially I was wanting to create a List so that I could print things out in a specific order via Print() command for later use in excel.
But I figured out how to set up a DDE with NT and excel, so I am able to directly populate a spreadsheet the way I want.
Thanks.
Can you help answer these questions from other members on NexusFi?
You can use an ArrayList object. It is basically an array with a variable size, which allows you to add elements of various data types.
Step 1: create the array list:
private ArrayList myArray = new ArrayList();
You have now an empty ArrayList.
Step 2: Add elements to your array list:
myArray.Add((double)(Input[0]));
It is important to specify the data type that you add.
Step 3: Retrieve the stored value.
value = (double) myArray[5];
This will retrieve the 6th value that you have added.
Tip
When adding or retrieving a value, you need to specify the data type which is stored in the array list. Without adding (double) in front of the array element, neither adding nor retrieving a value will work.
Of course you can use other data types, for example you can add (string) values.
Basically the structure would be like the attached picture, where as certain conditions occur or are met, I can just throw the value in whatever index the next empty slot is.
Then be able to access the values later, or reset the container.