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)
Help is needed. The code I wrote gives an error "ARRAY BOUNDS. WRONG INDEX VALUE: 73"
The logic is this, I summarize the volume when the volume begins to grow after the decline. I do the summation through a dynamic array, since in the future we will need the values of the first and last element in the array.
Tell me what could be the error.
Can you help answer these questions from other members on NexusFi?
I haven’t used Tradestation Easylanguage for years since I moved to Ninjatrader but most likely, I’d check the arguments to Array_Sum to see they are valid. In particular, I think arrays are 0 index based which means start index will be 0 and last index will be n-1 (for array of size n elements).
Where can I find the EasyLanguage debugger?
As I understand it, in EasyLanguage Array indexes start at 0, and array size is equal to the value of MaxIndex plus one.
the debugger is built-in into the development environment and you can find more information in the platform help. Alternatively you can use the print reserved word to find out what is going within your code.
Check the indices you are using within Array_Sum. From glancing at your code it's not guaranteed that you the array size >= lastVol.