Bruce, in the chart below I show what I mean. Upper chart is the "valuewhen" version, lower part I scale out until the cycle is finished. It is only 1 part of the scaling In/Out program, and I omitted multiple levels and scaling in but it clearly shows what I mean with a cycle. I attached the code. I do not believe it can be simplyfied,
rgds, Ed ----- Original Message ----- From: Bruce To: [email protected] Sent: Tuesday, December 29, 2009 9:34 PM Subject: [amibroker] Re: ABTool / multidimensional arrays Ed - I'd have to see the specific code for scale in/out to be able to tell. As I mentioned, I was just optimizing the posted code. But, I generally tell people that 95% of loops can be replaced with array logic. There are a few things (say the 5%) that I've run into that require looping. Nested looping, though, should be avoided at all costs, and a way can usually be found around it. You're right about ValueWhen. I used AMA2 on purpose, though, because it has some other important uses in portfolio mixes that I plan to show some examples of soon, and thought it would be good to mention it. Anyway, sounds like your moving along now. -- Bruce --- In [email protected], "Edward Pottasch" <empotta...@...> wrote:
<<pp.PNG>>
