PureBytes Links
Trading Reference Links
|
That bit of code is just to check that the slope of the relative strength is increasing. Yr 9-10 maths !
Attached is a better version which uses linregslope to do the same thing better (thanks to Steve W for pointing this function out) and checks the slope over 3 different timeframes to ensure the watch list created is comprehensive.
Geoff
----- Original Message -----
From: David Holzgrefe
To: Geoff Mulhall
Sent: Thursday, May 17, 2001 9:06 AM
Subject: Stan Weinstein
Hi Geoff I enjoyed reading how you created the Weinstein formula
I gather the code below for ma strenght means todays mashort is greater than yesterdays multiplied by the marelstr (5) ?
maRelStr = 5;
cond3 = ma(close,maShort) > ref(ma(close,maShort), -1 * maRelStr);
Thanks David
------=_NextPart_001_002B_01C0DF01.70D766E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#00ffff>
<DIV><FONT face=Arial size=2>David,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>That bit of code is just to check that theslope of
the relative strength is increasing. Yr 9-10 maths !</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Attached is a better version which uses linregslope
to do the same thing better (thanks to Steve W for pointing this function out)
and checks the slope over 3 different timeframes to ensure the watch list
created is comprehensive.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> <FONT face=Arial size=2>Geoff</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=dtholz@xxxx href="mailto:dtholz@xxxx">David
Holzgrefe</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=gmulhall@xxxxxxxx
href="mailto:gmulhall@xxxx">Geoff Mulhall</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, May 17, 2001 9:06
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Stan Weinstein </DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi Geoff I enjoyed reading how you created the
Weinstein formula</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I gather the code below for ma strenght means
todays mashort is greater than yesterdays multiplied by the marelstr (5)
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>maRelStr = 5;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>cond3 = ma(close,maShort) >
ref(ma(close,maShort), -1 * maRelStr); </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks
David</FONT></DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_001_002B_01C0DF01.70D766E0--
Attachment:
Attachment:
Description: "Description: Binary data"
|