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

[amibroker] Re: output in loops



PureBytes Links

Trading Reference Links

thanks for reply. Sorry if I ask things that have been asked before 
or explained before. 

If I look at the documentation of Amibroker there is a lot to be 
found but sometimes it is very hard to find and solutions to problems 
are described but often I only bump into them by accident. That's why 
I maybe ask too many questions ..

regards, Ed 

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Hello,
> 
> This was explained before.
> WriteVal does not really write anything. It just returns string. 
And string is outputted
> only when used on global scope. 
> 
> So please use:
> 
> _N( output = "" );
> 
> if (h[j] > thigh) 
> {
> 
> Sell[ j ] = 1;
> SellPrice[ j ] = thigh;
> ta[i]=j;
> j = totcnt-1;
> output = output + WriteVal(j);
> 
> }
> 
> output; // printed out here
> 
> One of the future versions will include normal printf function to 
make it more straightforward.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "ed2000nl" <pablito@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Sunday, October 05, 2003 5:58 PM
> Subject: [amibroker] output in loops
> 
> 
> > 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
> > 
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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/ 
> > 
> > 
> >


------------------------ 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/