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 -- discounts are available after registering.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I have an indicator that works just fine on ver 9.1 but I get an error when applied to 9.5 or higher. Placed on a 15 second chart to expedite, once the active bar closes I get a 'Vector is empty or invalid index' error. I have the code below. Any help would be appreciated.
Can you help answer these questions from other members on NexusFi?
this might be caused by your method that deletes the text, as you loop through elements of the drawing collection and delete elements from it during the loop. This can lead to a situation where you try to access an index that is not longer present in the collection, which would trigger the error.