--- In amibroker@yahoogroups.com, "Maurice Petterlin" <mozpet2...@...> wrote:
>
> --- In amibroker@yahoogroups.com, Graham <kavemanperth@> wrote:
> >
> > It works if you get the syntax correct
> > If you want the results in a scan you need to replace the GetChartID()
> > with the actual number for that chart pane, and you get this from the
> > chart parameters window
> > 
> > Apply this to a new chart pane
> > 
> > if( status("Action")==1 ) Chart = GetChartID();
> > else Chart = 2628; // from parameter window for chart ChartID
> > 
> > buy = cross( close, study( "RE" , Chart ) );
> > sell = cross( study( "SU" , Chart ), close );
> > 
> > SetChartOptions( 0, chartShowDates|chartWrapTitle );
> > GraphXSpace=10;
> > _N(Title = "{{NAME}} - {{INTERVAL}} {{DATE}} "+_DEFAULT_NAME()+" :
> > {{OHLCX}} {{VALUES}}" );
> > Plot( C, "", ParamColor( "Price Colour", colorGrey50), ParamStyle(
> > "Price Style", styleBar, maskPrice ) );
> > PlotShapes( shapeUpArrow*Buy, colorGreen, 0, L, -12 );
> > PlotShapes( shapeDownArrow*Sell, colorRed, 0, H, -12 );
> > 
> > it will only provide results for the section of chart that contains
> > the drawn, named study. The study name can only apply to one line, so
> > each line will need its own unique studyID name
> > eg, say you have 10 lines and name them S0,S1,S3,...S9 then use
> > 
> > sell = 0;
> > for( n=0;n<=9;n++)
> > {
> >     sell = sell or cross( study( "S"+n , Chart ), close );
> > }
> > 
> > -- 
> > Cheers
> > Graham Kav
> > AFL Writing Service
> > http://www.aflwriting.com
> > 
> > 
> > 
> > 
> > 
> > 2009/5/2 Maurice Petterlin <mozpet2001@>:
> > > --- In amibroker@yahoogroups.com, "Maurice Petterlin" <mozpet2001@> wrote:
> > >>
> > >> --- In amibroker@yahoogroups.com, "Mohammed" <softnews2003@> wrote:
> > >> >
> > >> > Hi all,
> > >> >
> > >> > I'm give up with this to code.
> > >> > I'm trying to use Study ID with my chart, I have plot a trend lien over
> > >> > the chart and assign RE for it , after that I do scan for the breakout
> > >> > but it is not give any result.
> > >> >
> > >> > Yes I have some of my trend lines broken and It should be showing in my
> > >> > scan.
> > >> >
> > >> > I'm using the following formula for my scan.
> > >> >
> > >> > Buy = Cross( Close, Study( "RE" ) );
> > >> >
> > >> > Please any one can help.
> > >> >
> > >> > Regards
> > >> >
> > >> I was just wondering if you had your question answered as I'm having the 
> > >> same problem. How do you scan for trendline breaks in Amibroker?
> > >>
> > > Unfortunately the example in the help file doesn't seem to work
> > > (taken from the help file)
> > > In this example we will detect if the closing price drops BELOW support 
> > > trend line. This is actually very simple:
> > >
> > > sell = cross( study( "SU" ), close, GetChartID() );
> > >
> > > So does the code work??
> > >
> > >
> >
> Thanks but what happens if you have multiple charts with one trendline drawn 
> on each and you wanted to check for trend line breaks. Is it possible to do 
> this with a scan
>
Does anyone know if you can scan multiple charts for trendline breaks (for 
drawn trendlines) not just one chart at a time?

Reply via email to