PureBytes Links
Trading Reference Links
|
<SPAN
class=252123304-08062002>Lionel,
<SPAN
class=252123304-08062002>
Corrected and added
wording below to clean up text. Thanks.
Hope I have
captuted the intent and a few can find some utulity with this
approach
<SPAN
class=252123304-08062002>
<SPAN
class=252123304-08062002>Bill,
<SPAN
class=252123304-08062002>
<SPAN
class=252123304-08062002>Bill:
<SPAN
class=252123304-08062002>
I think you have an
error in
"The
interpretation of the indicator output is as follows:- .08 (80%) and lower
is divergence between the Close and the MACD"
<SPAN
class=252123304-08062002>
either .08 should be
.80 or (80%) should be 8%
<SPAN
class=252123304-08062002>
Which do you
mean?
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
----- Original Message -----
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black">From:
<A title=billhebert@xxxxxxxxxxx
href="mailto:billhebert@xxxxxxxxxxx">billhebert
To: <A title=metastock@xxxxxxxxxxxxx
href="mailto:metastock@xxxxxxxxxxxxx">metastock@xxxxxxxxxxxxx
Cc: <A title=mpc@xxxxxxxxxxxxxxxxx
href="mailto:mpc@xxxxxxxxxxxxxxxxx">mpc@xxxxxxxxxxxxxxxxx
Sent: Friday, June 07, 2002 7:28 PM
Subject: Re: Divergence between the Close
and an Indicator for MACD and RSI(14)
Maurice,
I will provide the code for a RSI(14) diveregence as well as a
MACD(12,26,--) divergence.
Sorry, it took a few days to locate. Out of town most of the week
(Newport Beach) with day job.
Attachment will show how it is used.
This formula shows divergence between price and the indicator not the
trend line divergence you
may be looking for when their are say increasing price peaks and
decreasing indicator peaks as
a leading indicator for a potetial price reversal.
Divergence Between the Close and an Indicator
The following formula will calculate the correlation of the Close
andthe MACD. It is written
using a "long form" MACD so that the time periods used by the MACD may be
changed.
This indicator shows "divergence" between the close and the
indicator:
Divergence Between the Close and MACD
Correl(((Sum(Cum(1)*(Mov(C,12,E)-Mov(C,26,E)),100))-(Sum(Cum(1),100)*Sum((Mov(C,12,E)-Mov(C,26,E)),100)/100))/((Sum(Power(Cum(1),2),100))-(Power(Sum(Cum(1),100),2)/100)),((Sum(Cum(1)*C,100))-(Sum(Cum(1),100)*Sum(C,100)/100))/((Sum(Power(Cum(1),2),100))-(Power(Sum(Cum(1),100),2)/100)),12,0)
The interpretation of the indicator output is as follows:
*** .8 (80% would givre a stock divergence*** .08 (8%) and lower is
divergence starting between the Close and the MACD.
- 1 is very strong divergence.+ 1 is very strong
correlation.
The formula was constructed this way so that most other indicators maybe
used in place of the MACD.For example here is the same indicator using the
RSI(14): Divergence Between the Close and
RSI
Correl(((Sum(Cum(1)*(RSI(14)),100))-(Sum(Cum(1),100)*Sum((RSI(14)),100)/100))/((Sum(Power(Cum(1),2),100))-(Power(Sum(Cum(1),100),2)/100)),((Sum(Cum(1)*C,100))-(Sum(Cum(1),100)*Sum(C,100)/100))/((Sum(Power(Cum(1),2),100))-(Power(Sum(Cum(1),100),2)/100)),12,0)
Bill
----- Original Message -----
From: "Maurice Cruz" <<A
href="mailto:mpc@xxxxxxxxxxxxxxxxx">mpc@xxxxxxxxxxxxxxxxx>
To: <<A
href="mailto:metastock@xxxxxxxxxxxxx">metastock@xxxxxxxxxxxxx>
Sent: Wednesday, June 05, 2002 6:08 PM
Subject: RSI divergence
> Hi,> > Is there an exploration formula out
there that would enable me to scan> for negative or positive
divergences on a 14 day RSI?> > Regards,> Maurice>
>
|