PureBytes Links
Trading Reference Links
|
<x-html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 5.50.3825.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT size=2>> One weakness of this method is that the indicator which
uses the inner window<BR>> data as its base security cannot be selected or
edited. This means you have<BR>> to delete the inner window contents
and start over if you need to change<BR>> parameters.<BR><BR>Formula:{see
manual for more tool specific structural details}</FONT></DIV>
<DIV><FONT size=2><BR>Use: - P {on} for selected plot Indicator {inner window's
base sec}<BR> - {several}
Variables with Input()
function<BR> - Custom RSI {see
re-post below, replacing the Close by P}<BR><BR>Regards,<BR>Ton
Maas<BR></FONT><A href="mailto:ms-irb@xxxxxxxxxxxxxxxx"><FONT
size=2>ms-irb@xxxxxxxxxxxxxxxx</FONT></A><BR><FONT size=2>Dismiss the ".nospam"
bit (including the dot) when replying.<BR>Homepage </FONT><A
href="http://home.planet.nl/~anthmaas"><FONT
size=2>http://home.planet.nl/~anthmaas</FONT></A></DIV>
<DIV><FONT
size=2></FONT><BR><A>////////////////////////=================/////////////////////////////</A><BR><FONT
size=2></DIV>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<STRONG>A.J. Maas</STRONG> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=metastock@xxxxxxxxxxxxx
href="mailto:metastock@xxxxxxxxxxxxx">metastock@xxxxxxxxxxxxx</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> maandag 2 augustus 1999 23:56</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Welles Wilder's Relative
Strength Index (RSI)</DIV>
<DIV><BR></DIV>
<DIV><FONT size=2><FONT size=2>
<DIV><FONT size=2>The formula for calculating the RSI is:
<BR>rsi=100-(100/(1+rs))</FONT></DIV>
<DIV><FONT size=2>where:</DIV></FONT>
<DIV><FONT size=2>rs = average of x day’s up closes divided by average of x
day’s down closes</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>Or, as can also be read in the MS65-man (p. 488)
:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2>The RSI is a fairly simple formula, but is difficult to
explain without pages of examples.</FONT> </DIV>
<DIV><FONT size=2>The basic formula is:</FONT></DIV>
<DIV><FONT size=2><BR>RSI=100-(100/(1+(U/D)))<BR></FONT></DIV>
<DIV><FONT size=2>Where:<BR>U = An average of upward price change.
<BR>D = An average of downward price change. <BR>MetaStock prompts you
to enter the number of time periods in the averages.</FONT></DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT size=2>This Custom RSI-formula printed below, too can be found on
Equis' Website, but now on page</FONT></DIV>
<DIV><FONT size=2><A
href="http://www.equis.com/customer/support/formulas/cf00075.html">http://www.equis.com/customer/support/formulas/cf00075.html</A> </FONT></DIV>
<DIV>Equis' Bill Forman suggested its use, and was accompanied by a brief
explanation, in an email</DIV>
<DIV>(Dated 19981102 - Subject: RE: Relative Strength Index) and as such his
mail contained some</DIV>
<DIV>more additional info to what is already been printed on the -below-
webpage itself.</DIV>
<DIV> </DIV>
<DIV>From eye-balling couldn't notice a difference between the on the
"cf00075.html" page printed</DIV>
<DIV>formula and the on the "cf00098.html" printed formula (as suggested by
Nicholas), but noticed</DIV>
<DIV>that the 75-version was parsed a little bit better and therefore easier to
read (when working on</DIV>
<DIV>your own version, eg to do some changes).</DIV>
<DIV>Applying other indicators for underlying values, naturaly, will force you
to do some work especially</DIV>
<DIV>to the "B:" function AND the further in "Z:" + "Y:" used underlays (eg
here the O,H,L,C,V will have</DIV>
<DIV>to be replaced by f.i. a H-L range or just another indicator type like
MACD() or etc. ................).</DIV>
<DIV>Note that the (by me added) at the end used "RSIV:" is an adjustment that
is only "opticaly" required</DIV>
<DIV>here, for in the way that this formula source code is here written, it is
not a straight RSI</DIV>
<DIV>< but it is now written for an > "Relative Strength Volume
Index"-indicator.</DIV>
<DIV> </DIV></DIV>
<DIV><FONT size=2>Regards,<BR>Ton Maas<BR><A
href="mailto:ms-irb@xxxxxxxxxxxxx">ms-irb@xxxxxxxxxxxxx</A><BR>Dismiss the
".nospam" bit (including the dot) when replying.</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV></FONT></FONT></DIV>
<DIV><FONT size=2>===========================================</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2><FONT size=2>Wilder uses his own form of "exponential"
smoothing in his RSI. That is<BR>why the function "Wilders Smoothing" was
added to version 6.5 of<BR>MetaStock for Windows 95 & NT. Basically,
on day 15 and all subsequent<BR>days, Wilder takes the previous average up close
and multiplies it by<BR>13, add today's up close (if any) and divides that value
by 14. He does<BR>the same with the average Down close. You then
divide the ups by the<BR>downs, add 1.00 to it and divide that into 100 and then
subtract that<BR>result from 100. You have the RSI. Note how he uses
a value multiplied<BR>by 13 and divides by 14 for a 14 time period
RSI.<BR><BR>To match this in a custom formula, you must use the "Wilders
Smoothing"<BR>function.<BR><BR>Here is a custom formula to use other than the
close in the calculation.<BR>It is posted on our web page.<BR><BR>Equis
Support<BR>http://www.equis.com/<BR><A
href="http://www.equis.com/customer/support/">http://www.equis.com/customer/support/</A><BR>Please
include previous email answers and questions in your response.
<BR><BR></FONT></FONT></DIV>
<DIV><FONT size=2><FONT face="Times New Roman" size=5></FONT></FONT> </DIV>
<DIV><FONT size=2><FONT face="Times New Roman"><FONT size=5>Custom Relative
Strength Index including Volume formula (for MetaStock 6.5+)</FONT>
</FONT></DIV>
<P><FONT face="Times New Roman"></FONT></P>
<P>{original Custom RSI <A
href="http://www.equis.com/customer/support/formulas/cf00075.html">http://www.equis.com/customer/support/formulas/cf00075.html</A> now
altered by Ton Maas for included Volume use}</P>
<P>This formula will request the price data array to use when plotting. If you
plan to use this in an exploration<BR>or system test, be certain you change the
default time periods and price data array selection to the inputs<BR>you wish as
the exploration or system test will not prompt for the input, it will use the
default values.<BR>For more information, please review the sections in the
MetaStock 6.5+ manual on inputs and variables.</P>
<P>Q:=Input("Time Periods",1,1000,14);<BR><BR>B:=Input("Field: 1=Close, 2=Open,
3=High, 4=Low,
5=Volume",1,5,1);<BR><BR>Z:=If(B=1,Wilders(If(ROC(C,1,$)>0,ROC(C,1,$),0),LastValue(Q)),</P>
<P>
If(B=2,Wilders(If(ROC(O,1,$)>0,ROC(O,1,$),0),LastValue(Q)),</P>
<P>
If(B=3,Wilders(If(ROC(H,1,$)>0,ROC(H,1,$),0),LastValue(Q)),</P>
<P>
If(B=4,Wilders(If(ROC(L,1,$)>0,ROC(L,1,$),0),LastValue(Q)),</P>
<P> Wilders(If(ROC(V,1,$)>0,ROC(V,1,$),0),LastValue(Q))))));<BR><BR>Y:=If(B=1,Wilders(If(ROC(C,1,$)<0,Abs(ROC(C,1,$)),0),LastValue(Q)),</P>
<P> If(B=2,Wilders(If(ROC(O,1,$)<0,Abs(ROC(O,1,$)),0),LastValue(Q)),</P>
<P>
If(B=3,Wilders(If(ROC(H,1,$)<0,Abs(ROC(H,1,$)),0),LastValue(Q)),</P>
<P>
If(B=4,Wilders(If(ROC(L,1,$)<0,Abs(ROC(L,1,$)),0),LastValue(Q)),</P>
<P>
Wilders(If(ROC(V,1,$)<0,Abs(ROC(V,1,$)),0),LastValue(Q))))));<BR><BR>RS:=Z/Y;<BR>RSIV:=100-(100/(1+RS));<BR>RSIV</P><!---END MAIN PAGE---></FONT>
<DIV>===============================================</FONT><BR><BR>-----
Original Message ----- <BR>From: "Glen Wallace"<BR>To: "MetaStock listserver"
<<A
href="mailto:metastock@xxxxxxxxxxxxx">metastock@xxxxxxxxxxxxx</A>><BR>Sent:
vrijdag 18 augustus 2000 21:21<BR>Subject: Re: Mixed Time-frames<BR><BR><BR>>
Ugo:<BR>> <BR>> Here's one way to do it in MetaStock Pro 7.02.<BR>>
<BR>-------------snip-----------------<BR></DIV></BODY></HTML>
</x-html>
|