PureBytes Links
Trading Reference Links
|
You can fix an automatic set of trendlines with
this.
<FONT face=Verdana
size=2>======================================
peri:=Input("High line periods",2,500,3);{by
FREDCOM, 26Mai2003 --> V1.13}n:=Input("Low line
periods",2,500,3);hic:= H>Ref(HHV(H,peri),-1) AND
H>=Ref(HHV(H,peri),peri);y1t:=LastValue(ValueWhen( 2, hic=1, H
));y2t:=LastValue(ValueWhen( 1, hic=1, H ));x1t:=LastValue(ValueWhen( 2,
hic=1 , Cum(1) ));x2t:=LastValue(ValueWhen( 1, hic=1 , Cum(1)
));{at:=(y1t-y2t)/(x1t-x2t);bt:=y1t-at*x1t;}yt:=(y1t-y2t)/(x1t-x2t)*Cum(1)+y1t-(y1t-y2t)/(x1t-x2t)*x1t;
{yt:=at*cum(1)+bt;}e1:=H-yt;ret1:=LastValue(Cum(1)-(x1t+Int((x2t-x1t)/2)-1));seg1:=LastValue(Int((x2t-x1t)/2+Int(2*peri/5)){+peri-1});x1:=LastValue(Cum(1)-HHVBars(Ref(e1,-ret1),seg1)-ret1);y1:=LastValue(ValueWhen(1,x1=Cum(1),H));ret2:=LastValue(Cum(1)-(x2t+Int(4*peri/5)));seg2:=LastValue(Int((x2t-x1t)/2)+Int(4*peri/5));x2:=LastValue(Cum(1)-HHVBars(Ref(e1,-ret2),seg2)-ret2);y2:=LastValue(ValueWhen(1,x2=Cum(1),H));a:=(y1-y2)/(x1-x2);HiTL:=If(Cum(1)>x1t-5,(y1-y2)/(x1-x2)*Cum(1)+y1-(y1-y2)/(x1-x2)*x1,BarsSince(Cum(1)>x1t-5));loc:=
L<Ref(LLV(L,n),-1) AND L<=Ref(LLV(L,n),n);y1t:=LastValue(ValueWhen( 2,
loc=1, L ));y2t:=LastValue(ValueWhen( 1, loc=1, L
));x1t:=LastValue(ValueWhen( 2, loc=1, Cum(1)
));x2t:=LastValue(ValueWhen( 1, loc=1, Cum(1)
));yt:=(y1t-y2t)/(x1t-x2t)*Cum(1)+y1t-(y1t-y2t)/(x1t-x2t)*x1t;
{yt:=at*cum(1)+bt;}e1:=L-yt;ret1:=LastValue(Cum(1)-(x1t+Int((x2t-x1t)/2)-1));seg1:=LastValue(Int((x2t-x1t)/2+Int(2*n/5)){+n-1});x1:=LastValue(Cum(1)-LLVBars(Ref(e1,-ret1),seg1)-ret1);y1:=LastValue(ValueWhen(1,x1=Cum(1),L));ret2:=LastValue(Cum(1)-(x2t+Int(5*n/5)));seg2:=LastValue(Int((x2t-x1t)/2)+Int(4*n/5));x2:=LastValue(Cum(1)-LLVBars(Ref(e1,-ret2),seg2)-ret2);y2:=LastValue(ValueWhen(1,x2=Cum(1),L));{a:=(y1-y2)/(x1-x2);b:=y1-a*x1;}a:=(y1-y2)/(x1-x2);If(Cum(1)>x1t-5,(y1-y2)/(x1-x2)*Cum(1)+y1-(y1-y2)/(x1-x2)*x1,BarsSince(Cum(1)>x1t-5));HiTL
===================================
Use the explorer to look for cross
overs.
DusantChief Architect<A
href="">www.candlestrength.com
----- Original Message -----
From: "simonbr1970" <<A
href=""><FONT face=Verdana
size=2>simonbr1970@xxxxxxxxxxx<FONT face=Verdana
size=2>>
To: <<A
href=""><FONT face=Verdana
size=2>equismetastock@xxxxxxxxxxxxxxx<FONT face=Verdana
size=2>>
Sent: Monday, March 15, 2004 01:17
AM
Subject: Re: [EquisMetaStock Group] Trendline and
Alerts
<FONT face=Verdana
size=2>> Something like this should give you the crossover alert.>
> cross( mov(close,25,s), mov(close,9,e) )> > Still not
sure how you define the data array for a trendline that I > have added to
my chart ?????> > > --- In <A
href=""><FONT face=Verdana
size=2>equismetastock@xxxxxxxxxxxxxxx,
elnaseer dina > <<FONT
face=Verdana size=2>zebra7860@x...>
wrote:> > Is it possible to program an alert when two moving averages
cross > over in Metastock 8.0? I know that there are a lot of formulas
there > but I simply wanted two exponential moving averages to cross over
> and then Metastock to alert me with an up or down arrow.
Possible?> > Al> > > > Dusant <<A
href="">dusant@x<FONT
face=Verdana size=2>...> wrote:> > Create an expert and enter your
parameters in the alert tab.> > > > Dusant>
> Chief Architect> > <A
href=""><FONT face=Verdana
size=2>http://www.candlestrength.com/<FONT face=Verdana
size=2>> > ----- Original Message ----- > > From: simonbr1970
> > To: <FONT
face=Verdana size=2>equismetastock@xxxxxxxxxxxxxxx<FONT face=Verdana
size=2> > > Sent: Saturday, March 13, 2004 2:08 AM> >
Subject: [EquisMetaStock Group] Trendline and Alerts> > > >
> > Is it possible to get Metastock to trigger an alert when a stock
> > rises/falls below a trendline I have created?? > >
> > > > > > > > > >
Yahoo! Groups Links> > > > > > > >
> > > > > > Yahoo! Groups
SponsorADVERTISEMENT> > var lrec_target="_top"; var lrec_URL = new
Array(); lrec_URL[1] > = "<A
href=""><FONT
face=Verdana
size=2>http://rd.yahoo.com/SIG=12cvpuel6/M=276465.4309739.5546025.1261774<FONT
face=Verdana size=2>>
/D=egroupweb/S=1705375617:HM/EXP=1079263323/A=1854145/R=0/id=flashurl>
/SIG=11r3ikm62/*http://autos.yahoo.com?>
refsrc=onnetwork/ads/Q4/lrec/stock"; var >
link="_javascript_:LRECopenWindow(1)"; var lrec_flashfile > =
'http://us.yimg.com/a/ya/yahoo_autos/lrec_stock.swf?> clickTAG='+link+'';
var lrec_altURL > = "<A
href=""><FONT
face=Verdana
size=2>http://rd.yahoo.com/SIG=12cvpuel6/M=276465.4309739.5546025.1261774<FONT
face=Verdana size=2>>
/D=egroupweb/S=1705375617:HM/EXP=1079263323/A=1854145/R=1/id=altimgur>
l/SIG=11r3ikm62/*http://autos.yahoo.com?>
refsrc=onnetwork/ads/Q4/lrec/stock"; var lrec_altimg > = "<A
href=""><FONT face=Verdana
size=2>http://us.yimg.com/a/ya/yahoo_autos/lrec_stock.gif<FONT
face=Verdana size=2>"; var > lrec_width = 300; var lrec_height = 250;
> > > > ---------------------------------> >
Yahoo! Groups Links> > > > To visit your
group on the web, go to:> > <A
href=""><FONT face=Verdana
size=2>http://groups.yahoo.com/group/equismetastock/<FONT
face=Verdana size=2>> > > > To
unsubscribe from this group, send an email to:> > <A
href=""><FONT face=Verdana
size=2>equismetastock-unsubscribe@xxxxxxxxxxxxxxx<FONT
face=Verdana size=2>> > > > Your
use of Yahoo! Groups is subject to the Yahoo! Terms of > Service.
> > > > > > > > > >
---------------------------------> > Post your free ad now! Yahoo!
Canada Personals> > > > > >
Yahoo! Groups Links> > <*> To visit your group on the web,
go to:> <A
href=""><FONT face=Verdana
size=2>http://groups.yahoo.com/group/equismetastock/<FONT
face=Verdana size=2>> > <*> To unsubscribe from this group, send
an email to:> <A
href=""><FONT face=Verdana
size=2>equismetastock-unsubscribe@xxxxxxxxxxxxxxx<FONT
face=Verdana size=2>> > <*> Your use of Yahoo! Groups is subject
to:> <A
href=""><FONT face=Verdana
size=2>http://docs.yahoo.com/info/terms/<FONT face=Verdana
size=2>> > >
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/equismetastock/
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.
|