PureBytes Links
Trading Reference Links
|
Hello,
First draw a Trendline.
Next Right click on the Tend Line and go to Propeties
In the lower bottom, you shall find a blank template for Study Id.
Click on the adjoining button and Select SU or RE or anyother as required.
Now run the formula selecting timeframe of more than a few days.
It shall work.
Cheers
Prashanth
----- Original Message -----
From: Tipss_Bse_Nse
To: amibroker@xxxxxxxxxxxxxxx
Sent: Tuesday, December 12, 2006 10:51 PM
Subject: [amibroker] Re: Trendline Crack
/*
SYNTAX study( STUDYID, CHARTID = 1 )
RETURNS ARRAY
FUNCTION generates an array equivalent to a trendline study drawn
by the user - allows detecting trendline breakouts from AFL.
STUDYID is a two-character identifier of the Study. identifiers
are: "UP" - uptrend, "DN" - downtrend,
"SU" - support, "RE" - resistance, "ST" - stop loss,
however you can use ANY identifiers (there are no limitations except
that AmiBroker accepts only 2 letter codes).
CHARTID - identifies the chart pane where the study was drawn - you
can find out what is the chart ID for given chart by looking in
Parameters dialog, Axes & Grid, Miscellaneous: Chart ID
or using GetChartID() AFL function.
EXAMPLE buy = cross( close, study( "re" ) ); Detailed description on
using studies in AFL is provided here
SEE ALSO GetChartID() function
SYNTAX GetChartID()
RETURNS NUMBER
FUNCTION returns the chart ID of current indicator formula. Returns
0 if used in Automatic analysis.
EXAMPLE Cross( graph0, Study( "RE", GetChartID() ) );
*/
Sell = Cross( Study( "SU" ), Close, GetChartID() );
Buy = Cross( Close,Study( "RE" ), GetChartID() );
Sell = Cross( Study( "Up" ), Close, GetChartID() );
Buy = Cross( Close,Study( "Dn" ), GetChartID() );
Sell = Cross( Study( "ST" ), Close, GetChartID() );
//Buy = Cross( Close,Study( "Dn" ), GetChartID() );
I AM ALSO USING THE ABOVE, THE RESULT IS NOTHING
REPLY ME
REGDS
siva
--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
>
> To use Study functions in analysis window you have to reference
the ChartID
> where the lines are drawn in the Study function
> ChartID is found in Parameters window for that chart
>
> --
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://www.aflwriting.com
>
>
> On 12/12/06, Tipss_Bse_Nse <aishvaryaus@xxx> wrote:
> >
> > dear all
> >
> > i want help for this signal
> >
> > the problem is if i scan with this nothing will be displayed
> > i draw 4 lines trendline and named as SU,UP,ST and Dn in sheet1
for
> > scanning.
> >
> >
> > Sell = Cross( Study( "SU") , Close);
> > Buy = Cross( Close,Study( "RE") );
> >
> > Sell = Cross( Study( "Up" ), Close);
> > Buy = Cross( Close,Study( "Dn", 1) );
> >
> > Sell = Cross( Study( "ST" ),Close );
> > Buy = Cross( Close,Study( "Dn" ));
> >
> > regds
> > SIVA
> >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.16/582 - Release Date: 12/11/2006 4:32 PM
|