PureBytes Links
Trading Reference Links
|
I've
seen your various posts and I keep meaning to ask you. I'm in
Auckland. More explicitly, I'm in Albany. But I will be shifting to
South Head (near Helensville) in October, as soon as my new house is
finished.
<FONT face=Arial color=#0000ff
size=2>
I
always learn something from each of your posts and I'm sure that others
appreciate the assistance you offer.
<FONT face=Arial color=#0000ff
size=2>
Thanks
from all of us.
<BLOCKQUOTE
>
<FONT face="Times New Roman"
size=2>-----Original Message-----From: Roy Larsen
[mailto:rlarsen@xxxxxxxxxxxxxx]Sent: Saturday, July 26, 2003 3:52
AMTo: equismetastock@xxxxxxxxxxxxxxxSubject: Re:
[EquisMetaStock Group] Barssince in
explorationRonI'm glad I got something right
first time. It hasn't been a good week inthat regard and I've looked a bit
of an idiot at times.Any function that uses "Nth" event can also
benefit from a simple piece ofinitialisation code. It works better than
IsDefined() or Is Undefined(), butthat's not really any sort of
recommendation I guess.Roy----- Original Message -----
From: "Ron" <ronber@xxxxxxxxxxxxx>To:
<equismetastock@xxxxxxxxxxxxxxx>Sent: Saturday, July 26, 2003 4:21
PMSubject: Re: [EquisMetaStock Group] Barssince in
exploration> Roy->> ...My example of..>
BarsSince(Cum(1)=1 OR C<=3)>10;> is probably not going to deliver
the result you are looking for - you will> need to modify the code for
that. However use of "Cum(1)=1 OR" willaddress> the BarsSince
failure that you have....>> Actually it does give me what I
want. And provdes a solution for other> instances where I want to
assure that some token hasn't exceeded/ fallen> below some value for x
days.> Thanks.>> Ron>> Roy Larsen
wrote:>> > Ron> >> > > I'm using the
following expression:> > >> > >
Barssince(C<=3)>10> > >> > > I take this to
mean that in the last 10 bars the ticker has been at> >
least> > 3.> > >> > > That would lead to
1's and 0's appearing in the column.> > >> > > In
many cases I'm getting N/A in the column. What is triggering that?>
> > What does it mean? I thought that the Barssince expression was
truly> > > boolean.> >> > BarsSince() should
be applied to an event (condition change) rather than> > just a
condition. There are two parts to the solution. First, you must> >
make> > your exploration scan more periods than the last 10 bars
(which you are> > probably already doing), and second, you should
add an "initialisation"> > event into the code. Cum(1)=1 is all
that's required in this case. Whatit> > does is it forces an
event that BarsSince() can use as a reference point> > when C<=3
doesn't.> >> > The problem you are seeing is because N/A
will be reported by any issue> > where "C<=3" was never true
during the scanned period.> >> > This trick of using an
initialisation signal is also useful with> > ValueWhen()>
> and one or two other functions. In most cases the value returned
whenthe> > init signal is given is quite irrelevant - what is
relevant it that> > the N/A> > period is eliminated or
drastically reduced.> >> > My example of..> >
BarsSince(Cum(1)=1 OR C<=3)>10;> > is probably not going to
deliver the result you are looking for - youwill> > need to
modify the code for that. However use of "Cum(1)=1 OR" will> >
address> > the BarsSince failure that you have.> >>
> Roy> >> >> >> > Yahoo! Groups
Sponsor> > ADVERTISEMENT> ><<A
href="">http://rd.yahoo.com/M=256694.3636030.4902496.1261774/D=egroupweb/S=1705375617:HM/A=1688501/R=0/SIG=11if1rb57/*<A
href="">http://webevents.yahoo.com/universal/seabiscuit/>>
>> >> >> > To unsubscribe from this group,
send an email to:> >
equismetastock-unsubscribe@xxxxxxxxxxxxxxx> >> >>
>> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service> > <<A
href="">http://docs.yahoo.com/info/terms/>.>>>>>
To unsubscribe from this group, send an email to:>
equismetastock-unsubscribe@xxxxxxxxxxxxxxx>>>>
Your use of Yahoo! Groups is subject to <A
href="">http://docs.yahoo.com/info/terms/>>To
unsubscribe from this group, send an email
to:equismetastock-unsubscribe@xxxxxxxxxxxxxxxYour
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|