[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Nested For-Loop problems



PureBytes Links

Trading Reference Links

On Sunday 19 of October 2003 02:29, nmolchanoff wrote:
> Hello,
>
> I was having a problem with an exploration that utiliized a nested
> for-loop.  After much trouble-shooting, I realized that the body of
> my code inside the loop was fine; it executes perfectly when not in
> the loop.
>
> So I then tried to do just a simple test loop like this:
>
>
> for( i = BarCount - per ; i < BarCount-1; i++ ) {
>     for( j=0.850; j<=0.950; j= j+0.001 ) {
> 	AddColumn(i, "I", 1.0);
> 	AddColumn(j, "J", 1.3);
>     }
> }

I'm not sure but:

i -> 64 iterations, multiply by
j -> 100 iterations, equals
6.400 columns for i and 6.400 for j

Does the system crashes also when you have something different than AddColumn 
in the loop?

-- 
Marek Chlopek
mchlopek@xxxxxxx

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/mk9osC/hP.FAA/3jkFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/