PureBytes Links
Trading Reference Links
|
Keith,
Commentarly linked to indicator is called "interpretation"
and
it should be placed after indicator code (using Indicator
Builder)
as described in another tutorial:
Tutorial: Using interpretation window
Note: Please read <A
href="">How
to write your own chart commentary article before proceeding.
Interpretation window (View->Interpretation) shows chart-sensitive
commentaries. To add a interpretation just use Indicator builder and add
commentary code after the code for the indicator. Please note that to get the
best performance you should use the following optimization hint: after your
indicator code and before commentary code you should add the following line://--Indicator-End--
( two slashes (comment start), two dashes, Indicator-End and two dashes ).
When the parser is evaluating the formula in the "indicator" mode it stops
there, so commentary code is not executed and it saves time. When parser is in
other modes - entire formula is parsed/executed.
Example:Plot( Close, "Price", -1, 64 ); Plot( SAR( Prefs( 50 ), Prefs( 51 ) ), "SAR",-17, 8+16 ); //--Indicator-End--"The Parabolic SAR provides excellent exit points. ";
"You should Close long positions when the price falls below
the SAR AND Close Short positions when the price rises above the SAR.";
WriteIF( graph1 > Close, "SAR is above close", "SAR is below close" );
Best regards,Tomasz Janeczkoamibroker.com
----- Original Message -----
From: "Keith Bennett" <<A
href=""><FONT
size=2>kbennett@xxxxxxxxxx>
To: <<A
href=""><FONT
size=2>amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, May 11, 2003 1:41 PM
Subject: [amibroker] Guru commentary
> Hi,> > Having
written the guru chart commentary and checked that it appears > correctly
under the Commentary tab, how do I tie it to that > particular
Indicator?> > I presume it is necessary to use the Apply and/or
Save buttons, but > where to save it? I haven't "saved" any of the custom
indicators > although they seem to be saved automatically by AB. Is it
necessary > to set up another directory for the commentaries?>
> The tutorial does an excellent job of explaining how to write the
> commentary but doesn't seem to answer these quesstions. Any help
> appreciated.> > Keith> > >
------------------------ Yahoo! Groups Sponsor
---------------------~-->> Rent DVDs from home.> Over 14,500
titles. Free Shipping> & No Late Fees. Try Netflix for FREE!>
<FONT
size=2>http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/GHeqlB/TM<FONT
size=2>>
---------------------------------------------------------------------~->>
> Send BUG REPORTS to <FONT
size=2>bugs@xxxxxxxxxxxxx> Send SUGGESTIONS to
<FONT
size=2>suggest@xxxxxxxxxxxxx>
-----------------------------------------> Post AmiQuote-related messages
ONLY to: <FONT
size=2>amiquote@xxxxxxxxxxxxxxx > (Web page:
<FONT
size=2>http://groups.yahoo.com/group/amiquote/messages/<FONT
size=2>)> --------------------------------------------> Check
group FAQ at: <A
href=""><FONT
size=2>http://groups.yahoo.com/group/amibroker/files/groupfaq.html<FONT
size=2> > > Your use of Yahoo! Groups is subject to <A
href=""><FONT
size=2>http://docs.yahoo.com/info/terms/ >
> >
Yahoo! Groups Sponsor
ADVERTISEMENT
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 the Yahoo! Terms of Service.
|