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

[amibroker] output in loops



PureBytes Links

Trading Reference Links

hi,

is there a way to get some output what is going on in "for" loops 
or "if" statements?

I tried putting in a WriteVal but this only seems to work outside the 
loop. I know I can store stuff inside arrays and look at it in the 
automatic analyses window but it is a real pain and can't really 
figure what is going on that way.. 

For some reason jumping out of a loop by setting the loop variable j 
to the max does not work properly. I am trying to find out what is 
going (where we are inside the loop) on but I can't find out how to 
get output like I used to in other languages just with println() or 
something. There is nothing to find in the documentation about this.

---- example: the WriteVal inside the if statement will not become 
visible inside the interpretation window.

if (h[j] > thigh) {
			
	Sell[ j ] = 1;
	SellPrice[ j ] = thigh;
	ta[i]=j;
	j = totcnt-1;
        WriteVal(j);
			
}

rgds, Ed


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/