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

Re: [amibroker] Re: What's AFL for 'selling on close 3 days later'



PureBytes Links

Trading Reference Links

check the help screens for AFL functions

it sets the delays for (buy,sell,short,cover)


On Tue, 29 Mar 2005 14:06:07 -0000, Dickie Paria <babui@xxxxxxxxx> wrote:
> 
> 
> Thanks - the 'sell=ref(buy,-3)' worked just fine.  Quick qts - what
> is the 'zeros' mean in 'settradedelays(0,3,0,0)?  Is it H,L,O ?
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "W Schmidt" <william.schmidt@xxxx>
> wrote:
> > On Tue, 29 Mar 2005 06:28:51 +0800, Graham <kavemanperth@xxxx>
> wrote:
> >
> > >
> > > A few ways of doing it
> > >
> > > buy = exremspan(buy,3);
> > > sell = ref(buy,-3);
> > >
> > > or
> > >
> > > settradedelays(0,3,0,0);
> > > sell = buy;
> > >
> > > there are more ways to do it as well.
> > >
> > >
> > > On Mon, 28 Mar 2005 21:13:52 -0000, Dickie Paria <babui@xxxx>
> wrote:
> > >>
> > >>
> > >> //IF X=1 THEN Buy Next Bar AT C+.05 STOP;
> > >> Buy=Ref(x,-1);
> > >> BuyPrice=Ref(C+.05,-1);
> > >> Sell=Ref(x,-1);
> > >> SellPrice=Close;
> > >>
> > >> The above is for selling on close on the same day you bought a
> > >> particular stock/future.  How would you write the above - if you
> wanted
> > >> to sell on close 3 days after a buy?  Thanks
> > >>
> > >>
> > >> 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 other support material please check also:
> > >> http://www.amibroker.com/support.html
> > >>
> > >>
> > >> Yahoo! Groups Links
> > >>
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Cheers
Graham
http://e-wire.net.au/~eb_kavan/


------------------------ Yahoo! Groups Sponsor --------------------~--> 
In low income neighborhoods, 84% do not own computers.
At Network for Good, help bridge the Digital Divide!
http://us.click.yahoo.com/EpW3eD/3MnJAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/