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

Re: [amibroker] Re: Help with Line Array Coding for Clayburg



PureBytes Links

Trading Reference Links

Sorry, did not look at the whole thing. Here is my best guess
Functions need to Return a value, and you can only have one value I think.
So can you do it without the function.

Cheers,
Graham
http://e-wire.net.au/~eb_kavan/

-----Original Message-----
From: kelek_94 [mailto:casalis@xxxxxxx] 
Sent: Saturday, May 22, 2004 10:42 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: writeif in functions ?

Thanks Graham,

but... ;-) that's not at all the problem :/

Even with a "real" condition nothing is displayed at all :/


--- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> You neeed something to be one for the statement to work
> WriteIf(indicator==1, "TrueText", "FalseText");
> 
> Cheers,
> Graham
> http://e-wire.net.au/~eb_kavan/
> 
> -----Original Message-----
> From: kelek_94 [mailto:casalis@x...] 
> Sent: Saturday, May 22, 2004 7:11 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] writeif in functions ?
> 
> Here is a very short piece of code in which I'm trying to display 
> information in the interpretation window from a function.
> 
> function comment(indicator)
> {
> 	"\nComment...\n";
> 
> 	WriteIf(1, "TrueText", "FalseText");
> 	WriteVal(indicator);
> }
> 
> Plot(MACD(),"MACD",colorBlue);
> 
> "---------";
> comment(MACD());
> "---------";
> 
> Unfortunately, the result is just :
> 
> Date: 21/05/2004
> 
> ---------
> ---------
> 
> Is there something wrong with this idea of printing text from a 
> function ?
> 
> 
> 
> 
> 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 
> Yahoo! Groups Links




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 
Yahoo! Groups Links



 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/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 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

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