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

Re: [amibroker] Re: explore: sell after x days


  • To: <amibroker@xxxxxxxxxxxxxxx>
  • Subject: Re: [amibroker] Re: explore: sell after x days
  • From: "Tomasz Janeczko" <amibroker@xxxx>
  • Date: 18 Nov 2001 16:10:20 -0000
  • In-reply-to: <9t7age+7it9@xxxx>

PureBytes Links

Trading Reference Links

Hi,

No, correct use is 
Sell = ref( buy, -5 );

because you want to get sell signals that are the same as buy signals 5 bars ago (hence -5 ).
In other words for every buy signal that occured 5 bars ago you want a sell on current bar.

Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com

----- Original Message ----- 
From: <artast@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Sunday, November 18, 2001 4:38 AM
Subject: [amibroker] Re: explore: sell after x days


> Tomasz,
> 
> Maybe I misunderstood, but I believe the writer wants to sell in the 
> future, 5 days after buying (a positive "n" period). In my opinion 
> the right formula is
> 
> Sell = ref(buy,5);
> 
> Regards,
> artast
> 
> --- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> > Hello,
> > 
> > Use this:
> > 
> > Sell = ref( buy, -5 );
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > 
> > ----- Original Message -----
> > From: <aksjer46@xxxx>
> > To: <amibroker@xxxx>
> > Sent: Saturday, November 17, 2001 12:17 PM
> > Subject: [amibroker] explore: sell after x days
> > 
> > 
> > > Hi all, just got Amibroker and I'm playing around with 
> backtesting.
> > > There's probably a simple answer to this, but I can't find out 
> how to
> > > sell after 5 days. Have tried this:
> > >
> > > sell=iif(hold(0,5),0,1);
> > >
> > > but it doesn't work. I have also changed sell delay to 5 in 
> Settings
> > > but the stocks are sold the same day they get bought.
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
> 
> 
> 
> 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
> 
> 
>