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

Re: [amibroker] Re: Exrempsan question



PureBytes Links

Trading Reference Links

Thanks Mike!  This look very easy but it seems like it will work!

Louis
Louis

2008/4/9, Mike <sfclimbers@xxxxxxxxx>:

Assuming that your Buy logic is a crossing type signal as provided in
your example (i.e. Cross(MA...)). You could probably just introduce a
no signal zone using BarsSince.

Buy = Cross(...);
DeadZone = BarsSince(Buy) <= 10;
Signal = ...;
Sell = Signal AND NOT DeadZone;

Note that if a first Buy is fired, then crosses down and rises back
up to trigger a second Buy before the 10 days, the first Buy will
never be acted on and the dead zone will start over with the second
Buy.

Mike

--- In amibroker@xxxxxxxxxxxxxxx, "Louis Préfontaine"
<rockprog80@xxx> wrote:
>
> Buy = Cross (xxxx) ;
> Buy = ExRemSpan (Buy,10);
> Sell = Ref (Buy,-10);
>
>
>
> 2008/4/8, Louis Préfontaine <rockprog80@xxx>:
> >
> > Hi,
> >
> > Right now I have
> >
> > Buy = Cross (xxxx) ;
> > Buy = ExRemSpan (Buy,10);
> > Sell = Ref (Signal,-10);
> >
> > The systems exits after 10 days. I'd like to keep it open for at
least 10
> > days and then to close only when signal is met.
> >
> > I tried the Signal as you said but it didn't work...
Unfortunately...
> >
> > Thanks for your help,
> >
> > Louis
> >
> > 2008/4/8, Howard B <howardbandy@xxx>:
> > >
> > > Hi Louis --
> > >
> > > Does this do what you are thinking?
> > >
> > > Signal = Cross(xxxxxx);
> > > Buy = Ref(Signal,-5);
> > >
> > > Thanks,
> > > Howard
> > >
> > >
> > > On Mon, Apr 7, 2008 at 5:35 PM, Louis Préfontaine
<rockprog80@xxx>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I am trying to set a "no-signal" zone that would be followed
by a
> > > > signal that I would set by myself.
> > > >
> > > > As an example:
> > > >
> > > > Buy = Cross (Ma...
> > > > Buy= exremspan (Buy,5);
> > > > Sell=...
> > > >
> > > > I'd like the system to do NOTHING for 5 days, but then to
react on
> > > > whatever the signal I want to choose. I know this sound
simple, but I just
> > > > can't do it.
> > > >
> > > > Thanks,
> > > >
> > > > Louis
> > > >
> > >
> > >
> > >
> >
> >
>


__._,_.___

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 NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___