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

[amibroker] Multiple Fib Time Frame Indicator



PureBytes Links

Trading Reference Links

function needs a return statement.

A.
Example:[for commentary window]

function Comment(ind)
{
return WriteVal(ind);
}
Comment(MACD());


B.
In indicator builder you need a Title=... to see the result
Example:

function Comment(ind)
{
t=WriteVal(ind);
return t;
}
Title=Comment(MACD());

Dimitris Tsokakis

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



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/