PureBytes Links
Trading Reference Links
|
I tried an exploration using this formula ...result 0(zilch) buy
signals? This was over my 4,000 stock database. Should this be
anticipated??
Dick H.
--- In amibroker@xxxxxxxxxxxxxxx, "Thomas Z." <tzg@xxx> wrote:
>
> Interesting article.
>
>
>
> Buy = Day()==23 AND Close > EMA(C,200);
>
>
>
> Sell = BarsSince(Buy)==5;
>
>
>
> Plot(C,"Close",3,128);
>
> PlotShapes(Buy*shapeSmallCircle,5,0,L,-12);
>
> PlotShapes(Sell*shapeSmallCircle,4,0,H,12);
>
>
>
> _SECTION_BEGIN("MA1");
>
> P = ParamField("Price field",-1);
>
> Periods = Param("Periods", 15, 2, 200, 1, 10 );
>
> Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color",
colorCycle ),
> ParamStyle("Style") );
>
> _SECTION_END();
>
>
>
> Best Regards
>
> Thomas
>
> www.patternexplorer.com
>
>
>
>
>
> _____
>
> From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
On Behalf
> Of veszka
> Sent: Monday, January 08, 2007 1:46 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: Simple question
>
>
>
> No. I think the first code was the good for me:
>
> buy = close > ema(c,200);
>
> sell = barssince(buy)==5;
>
> But, the selling condition don't working good. I try to testing the
> following idea:
> http://www.tradingm
> <http://www.tradingmarkets.com/.site/stocks/commentary/lcbattlep/When->
> arkets.com/.site/stocks/commentary/lcbattlep/When-
> Do-Money-Managers-Like-to-Buy-Stocks-Heres-the-Answer.cfm
>
> Best regards,
> Veszka
> --- In amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com> ps.com,
> "Thomas Z." <tzg@> wrote:
> >
> > Yes, i know, but this is what veszka requested:
> >
> > How can I do the following:
> > buy when close price > EMA(200) and sell after with 5 days the date
> of
> > buy?
> > I can't create the condition of selling. Could anybody help me?
> > Thanks!
> >
> > Sure, probably he would rather buy at the cross:
> >
> >
> >
> > buy = cross(close,ema(c,200));
> >
> > sell = barssince(buy)==5;
> >
> >
> >
> > Best Regards
> >
> > Thomas
> >
> > www.patternexplorer.com
> >
> >
> >
> >
> >
> > _____
> >
> > From: amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com> ps.com
> [mailto:amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com>
ps.com]
> On Behalf
> > Of Anthony Faragasso
> > Sent: Monday, January 08, 2007 12:32 PM
> > To: amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com> ps.com
> > Subject: Re: [amibroker] Simple question
> >
> >
> >
> > Thomas Z.
> >
> >
> >
> > I do not believe this is what you want to do....you will have a buy
> signal
> > everyday the close is above the moving average and the sell signal
> will keep
> > getting pushed for every new buy signal. Run your code advice and
> you will
> > see the results....
> >
> >
> >
> > buy = close > ema(c,200);
> >
> > sell = barssince(buy)==5;
> >
> >
> >
> > Maybe you want something like this:
> >
> >
> >
> > buy = cross(close, ema(c,200));//buy signal when close crosses
> above moving
> > average.
> >
> > buy=exremspan(buy,5);//Removes excessive signals
> >
> > Sell = Ref( Buy, -5 );
> >
> >
> >
> >
> >
> > Anthony
> >
> > ----- Original Message -----
> >
> > From: Thomas Z. <mailto:tzg@>
> >
> > To: amibroker@xxxxxxxxx <mailto:amibroker@xxxxxxxxx
> <mailto:amibroker%40yahoogroups.com> ps.com> ps.com
> >
> > Sent: Monday, January 08, 2007 4:18 AM
> >
> > Subject: RE: [amibroker] Simple question
> >
> >
> >
> > Hi,
> >
> > buy = close > ema(c,200);
> >
> > sell = barssince(buy)==5;
> >
> > Best Regards
> >
> > Thomas
> >
> > www.patternexplorer <http://www.patterne
<http://www.patternexplorer.com>
> xplorer.com> .com
> >
> >
> >
> > _____
> >
> >
> > From: <mailto:amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com>
> ps.com> amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com> ps.com
> > [mailto:amibroker@xxxxxxxxx <mailto:amibroker%40yahoogroups.com>
ps.com]
> On Behalf Of veszka
> > Sent: Sunday, January 07, 2007 5:23 PM
> > To: amibroker@xxxxxxxxx <mailto:amibroker@xxxxxxxxx
> <mailto:amibroker%40yahoogroups.com> ps.com> ps.com
> > Subject: [amibroker] Simple question
> >
> > Hello!
> >
> > How can I do the following:
> > buy when close price > EMA(200) and sell after with 5 days the date
> of
> > buy?
> > I can't create the condition of selling. Could anybody help me?
> > Thanks!
> >
> >
> >
> >
> > _____
> >
> > avast! Antivirus <http://www.avast. <http://www.avast.com> com> :
Inbound
> message clean.
> >
> > Virus Database (VPS): 0701-2, 01/08/2007
> > Tested on: 1/8/2007 4:55:37 AM
> > avast! - copyright (c) 1988-2007 ALWIL Software.
> >
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.7/620 - Release Date: 1/8/2007 4:12 PM
|