Yes, you are right. Thanks for the correction.

Mike

--- In [email protected], Keith McCombs <kmcco...@...> wrote:
>
> Mike --
> For 5% below yesterday's close, I think you should have "Ref(Close, 
-1) 
> * .*9*5"
> -- Keith
> 
> Mike wrote:
> >
> > Time to read the user guide ;)
> >
> > http://www.amibroker.com/guide/ <http://www.amibroker.com/guide/>
> > http://www.amibroker.com/guide/AFL.html 
> > <http://www.amibroker.com/guide/AFL.html>
> > http://www.amibroker.com/guide/tutorial.html 
> > <http://www.amibroker.com/guide/tutorial.html>
> >
> > Specifically
> >
> > http://www.amibroker.com/guide/a_language.html 
> > <http://www.amibroker.com/guide/a_language.html>
> >
> > BuyPrice and SellPrice are just arrays (not functions) that you 
can
> > store the price in. e.g.
> >
> > // Means you bought at the Open
> > BuyPrice = Open;
> >
> > // Means your limit order of 5% below yesterday's close got filled 
at
> > 5% below or the Open, whichever was lesser.
> > BuyPrice = min(Ref(Close, -1) * .05, Open);
> >
> > Mike
> >
> > --- In [email protected] 
<mailto:amibroker%40yahoogroups.com>, 
> > Noah Bender <knowabender@> wrote:
> > >
> > > Hello all,
> > >
> > > I am new to amibroker and have a newbie question.
> > >
> > > How does buypirce and sellprice function work?
> > >
> > > examples would be appreciated. i am not sure how this value is
> > stored.
> > >
> > > thanks in advance
> > >
> >
> >
>


Reply via email to