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)
Hi anachronist. At this point, your code I transformed as follows:
I can not understand what the problem is the last line after "else" (CS1502 and CS1503). I tried to replace lines.RemoveAll(ld) in lines.Remove(ld). The indicator is compiled, but when you add the indicator ninja crash.
I have it compiled without any conditions "else". The lines ended on the next bar. So I changed to zero -90 000, so they went further to the right.
Can you help answer these questions from other members on NexusFi?
OK, here's what I came up with, now that I got a chance to test it myself.
Warning, if you try to run this on too much data, NinjaTrader will appear to freeze up, because it adds a new line on every single bar (each new close). I'd keep it under 1000 bars.
I suspected that there might be a problem with removing elements from a list during a loop traversing that same list, so instead I collected the elements to remove in another list for cleanup outside the first loop.