PureBytes Links
Trading Reference Links
|
I often have the impression that most indicators are actually telling less than the price chart, together with a trendline and a bunch of averages does. Any opinions?
Al
----- Original Message -----
From: Tom Supera
To: amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, October 28, 2001 8:55 AM
Subject: Re: [amibroker] smoothed RSI, Problem
Hi Hal,
I'm not sure what you mean.
Set the scale from 0 to 100.
I've changed the formula.Now the blue line is included.
Best regards
Tom Supera
/*smoothed RSI*/
t=2;
Smooth = 9;
MC = Wilders(C,Smooth);
Up=IIf(MC>Ref(MC,-1),abs(MC-Ref(MC,-1)),0);
Dn=IIf(MC<Ref(MC,-1),abs(MC-Ref(MC,-1)),0);
Ut=Wilders(Up,t);
Dt=Wilders(Dn,t);
RSIt=100*(Ut/(Ut+Dt));
Graph0=RSIt;
Graph1 = RSI (9);
pds = 9;
Title = "smoothed RSI red line = smoothed RSI blue line = original RSI " + WriteVal (RSI(pds),1)+ " % " + "periods (RSI): " + WriteVal ((pds),1);
----- Original Message -----
From: Hal Brehe
To: amibroker@xxxxxxxxxxxxxxx
Sent: Sunday, October 28, 2001 6:58 AM
Subject: [amibroker] smoothed RSI, Problem
Hi Tom,
Well, this day I must dedicate to being my weekly "thick headed" day.
I love what you've done with the "smoothed RSI", but I don't seem to beable to duplicate your results.
Here is my visual result:
And here is the code pasted directly from the indicator builder.
t=2;
Smooth = 9;
MC = Wilders(C,Smooth);
Up=IIf(MC>Ref(MC,-1),abs(MC-Ref(MC,-1)),0);
Dn=IIf(MC<Ref(MC,-1),abs(MC-Ref(MC,-1)),0);
Ut=Wilders(Up,t);
Dt=Wilders(Dn,t);
RSIt=100*(Ut/(Ut+Dt));
Graph1=RSIt;
Title = "smoothed RSI red line = smoothed RSI blue line = original RSI";
Would you kindly inform me of what dumb trick I'm pulling to NOT get your results?
Thanks much,
Hal
=================
At 10:13 AM 10/27/01 +0200, you wrote:
Hi,
Here's a better version.
It's interesting, when change the values for smooth with t.
Tom Supera
----- Original Message -----
From: "kailash pareek" <johnnypareek@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, October 27, 2001 8:57 AM
Subject: Re: [amibroker] smoothed RSI
> Hi TOM,
>
> It seems that something have lost in your code. When I
> tried to compare
> your smoothed RSIt with default one, there is no
> difference between them
> at all. Look below the code of yours.
>
> /*RSI 9*/
> t=9;
> C = Wilders(C,3);
> Up=IIf(C>Ref(C,-1),abs(C-Ref(C,-1)),0);
> Dn=IIf(C<Ref(C,-1),abs(C-Ref(C,-1)),0);
> Ut=Wilders(Up,t);
> Dt=Wilders(Dn,t);
> RSIt=100*(Ut/(Ut+Dt));
> Graph0=RSIt;
> Graph1=RSI(9);
>
> I have added " graph1=RSI(9); " and there is only one
> graph visible. Now change the the code as "
> graph1=RSI(14) "
> and there ARE both visible.
>
> I think you have got what I am pointing.
>
> Think about.
>
> regards
>
> Kailash K Pareek ( JOHNNY )
>
>
>
>
>
>
>
>
>
>
> --- Tom Supera <tom_supera@xxxx> wrote:
> > Hi,
> > Here I post my version of rsi. It's the same as the
> > original, but instead close, i use wilders(c,3).
> >
> > Look at the attachments.
> > If anyone of you has a better optimization of rsi,
> > please post it to the board.
> >
> > Tom Supera
> >
>
> > ATTACHMENT part 2 application/octet-stream
> name=146-1 smoothed RSI.afl
>
>
> > ATTACHMENT part 3 image/gif name=smoothed RSI
> periods 9-3.gif
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------=_NextPart_001_001B_01C15FB0.03287370
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.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Tom,</FONT></DIV>
<DIV><FONT face=Arial>I am not sure what your smoothed RSI really tells us. On
the one hand backtesting on this signal does not seem to give particularly
impressive results (the result is not negative though, and just slightly better
than buy and hold). So it is hardly suitable for a trading strategy.
</FONT></DIV>
<DIV><FONT face=Arial>On the other hand, comparing price charts directly to
the smoothed RSI I see that the smoothed RSi signal usually comes late, i.e. I
see more in the price chart than in the smoothed RSI. </FONT></DIV>
<DIV><FONT face=Arial>So what is it really good for? I am just
curious.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I often have the impression that most indicators are
actually telling less than the price chart, together with a trendline and a
bunch of averages does. Any opinions?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Al</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>
Tom Supera
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=amibroker@xxxxxxxxxx
href="mailto:amibroker@xxxxxxxxxxxxxxx">amibroker@xxxxxxxxxxxxxxx</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, October 28, 2001 8:55
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [amibroker] smoothed RSI,
Problem</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hi Hal,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I'm not sure what you mean.</FONT></DIV>
<DIV><FONT face=Arial size=2>Set the scale from 0 to 100.</FONT></DIV>
<DIV><FONT face=Arial size=2>I've changed the formula.Now the blue line is
included.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Tom Supera</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT color=#008000 size=2>
<P>/*smoothed RSI*/</P></FONT><FONT size=2>
<P>t=</FONT><FONT color=#ff00ff size=2>2</FONT><FONT size=2>;</P>
<P>Smooth = </FONT><FONT color=#ff00ff size=2>9</FONT><FONT size=2>;</P>
<P>MC = </FONT><FONT color=#0000ff size=2>Wilders</FONT><FONT
size=2>(<B>C</B>,Smooth);</P>
<P>Up=</FONT><FONT color=#0000ff size=2>IIf</FONT><FONT
size=2>(MC></FONT><FONT color=#0000ff size=2>Ref</FONT><FONT
size=2>(MC,-</FONT><FONT color=#ff00ff size=2>1</FONT><FONT
size=2>),</FONT><FONT color=#0000ff size=2>abs</FONT><FONT
size=2>(MC-</FONT><FONT color=#0000ff size=2>Ref</FONT><FONT
size=2>(MC,-</FONT><FONT color=#ff00ff size=2>1</FONT><FONT
size=2>)),</FONT><FONT color=#ff00ff size=2>0</FONT><FONT size=2>);</P>
<P>Dn=</FONT><FONT color=#0000ff size=2>IIf</FONT><FONT
size=2>(MC<</FONT><FONT color=#0000ff size=2>Ref</FONT><FONT
size=2>(MC,-</FONT><FONT color=#ff00ff size=2>1</FONT><FONT
size=2>),</FONT><FONT color=#0000ff size=2>abs</FONT><FONT
size=2>(MC-</FONT><FONT color=#0000ff size=2>Ref</FONT><FONT
size=2>(MC,-</FONT><FONT color=#ff00ff size=2>1</FONT><FONT
size=2>)),</FONT><FONT color=#ff00ff size=2>0</FONT><FONT size=2>);</P>
<P>Ut=</FONT><FONT color=#0000ff size=2>Wilders</FONT><FONT size=2>(Up,t);</P>
<P>Dt=</FONT><FONT color=#0000ff size=2>Wilders</FONT><FONT size=2>(Dn,t);</P>
<P>RSIt=</FONT><FONT color=#ff00ff size=2>100</FONT><FONT
size=2>*(Ut/(Ut+Dt));</P><B>
<P>Graph0</B>=RSIt;</P><B>
<P>Graph1</B></FONT><FONT face="Courier New" size=2> = </FONT><FONT
face="Courier New" color=#0000ff size=2>RSI</FONT><FONT face="Courier New"
size=2> (</FONT><FONT face="Courier New" color=#ff00ff size=2>9</FONT><FONT
face="Courier New" size=2>);</P></FONT><FONT size=2></FONT><FONT
face="Courier New" size=2>
<P>pds = </FONT><FONT face="Courier New" color=#ff00ff size=2>9</FONT><FONT
face="Courier New" size=2>;</P></FONT><B><FONT size=2>
<P>Title</B> = </FONT><FONT color=#ff00ff size=2>"smoothed RSI red line =
smoothed RSI blue line = original RSI</FONT><FONT face="Courier New"
color=#ff00ff size=2> </FONT><FONT color=#ff00ff size=2>"</FONT><FONT
face="Courier New" size=2> + </FONT><FONT face="Courier New" color=#0000ff
size=2>WriteVal</FONT><FONT face="Courier New" size=2> (</FONT><FONT
face="Courier New" color=#0000ff size=2>RSI</FONT><FONT face="Courier New"
size=2>(pds),</FONT><FONT face="Courier New" color=#ff00ff
size=2>1</FONT><FONT face="Courier New" size=2>)+ </FONT><FONT
face="Courier New" color=#ff00ff size=2>" % "</FONT><FONT face="Courier New"
size=2> + </FONT><FONT face="Courier New" color=#ff00ff size=2>"periods (RSI):
"</FONT><FONT face="Courier New" size=2> + </FONT><FONT face="Courier New"
color=#0000ff size=2>WriteVal</FONT><FONT face="Courier New" size=2>
((pds),</FONT><FONT face="Courier New" color=#ff00ff size=2>1</FONT><FONT
face="Courier New" size=2>)</FONT><FONT size=2>;</P></FONT></FONT></DIV>
<BLOCKQUOTE
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>
Hal Brehe </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=amibroker@xxxxxxxxxxxx
href="mailto:amibroker@xxxxxxxxxxxxxxx">amibroker@xxxxxxxxxxxxxxx</A></DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, October 28, 2001 6:58
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [amibroker] smoothed RSI,
Problem</DIV>
<DIV><BR></DIV><FONT size=3>Hi Tom, <BR><BR>Well, this day I must dedicate
to being my weekly "thick headed" day.<BR>I love what you've done with the
"smoothed RSI", but I don't seem to be able to duplicate your results.
<BR><BR>Here is my visual result:<BR><IMG height=206 alt="Smoothed RSI.jpg"
src="cid:001901c15fa7$a1564fd0$1f6e11ac@xxxx"
width=624><BR><BR>And here is the code pasted directly from the indicator
builder.<BR><BR></FONT><FONT face="Courier New, Courier"
size=1>t=</FONT><FONT face="Courier New, Courier" color=#ff00ff
size=1>2</FONT><FONT face="Courier New, Courier" size=1>;<BR>Smooth =
</FONT><FONT face="Courier New, Courier" color=#ff00ff size=1>9</FONT><FONT
face="Courier New, Courier" size=1>;<BR>MC = </FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>Wilders</FONT><FONT
face="Courier New, Courier" size=1>(<B>C</B>,Smooth);<BR>Up=</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>IIf</FONT><FONT
face="Courier New, Courier" size=1>(MC></FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>Ref</FONT><FONT
face="Courier New, Courier" size=1>(MC,-</FONT><FONT
face="Courier New, Courier" color=#ff00ff size=1>1</FONT><FONT
face="Courier New, Courier" size=1>),</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>abs</FONT><FONT
face="Courier New, Courier" size=1>(MC-</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>Ref</FONT><FONT
face="Courier New, Courier" size=1>(MC,-</FONT><FONT
face="Courier New, Courier" color=#ff00ff size=1>1</FONT><FONT
face="Courier New, Courier" size=1>)),</FONT><FONT
face="Courier New, Courier" color=#ff00ff size=1>0</FONT><FONT
face="Courier New, Courier" size=1>);<BR>Dn=</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>IIf</FONT><FONT
face="Courier New, Courier" size=1>(MC<</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>Ref</FONT><FONT
face="Courier New, Courier" size=1>(MC,-</FONT><FONT
face="Courier New, Courier" color=#ff00ff size=1>1</FONT><FONT
face="Courier New, Courier" size=1>),</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>abs</FONT><FONT
face="Courier New, Courier" size=1>(MC-</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>Ref</FONT><FONT
face="Courier New, Courier" size=1>(MC,-</FONT><FONT
face="Courier New, Courier" color=#ff00ff size=1>1</FONT><FONT
face="Courier New, Courier" size=1>)),</FONT><FONT
face="Courier New, Courier" color=#ff00ff size=1>0</FONT><FONT
face="Courier New, Courier" size=1>);<BR>Ut=</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>Wilders</FONT><FONT
face="Courier New, Courier" size=1>(Up,t);<BR>Dt=</FONT><FONT
face="Courier New, Courier" color=#0000ff size=1>Wilders</FONT><FONT
face="Courier New, Courier" size=1>(Dn,t);<BR>RSIt=</FONT><FONT
face="Courier New, Courier" color=#ff00ff size=1>100</FONT><FONT
face="Courier New, Courier"
size=1>*(Ut/(Ut+Dt));<BR><B>Graph1</B>=RSIt;<BR><BR><B>Title</B> =
</FONT><FONT face="Courier New, Courier" color=#ff00ff size=1>"smoothed
RSI red line = smoothed
RSI blue line = original RSI"</FONT><FONT
face="Courier New, Courier" size=1>;<BR><BR></FONT><FONT size=3>Would you
kindly inform me of what dumb trick I'm pulling to NOT get your
results?<BR><BR>Thanks much, <BR><BR>Hal<BR>=================<BR>At 10:13 AM
10/27/01 +0200, you wrote:<BR>
<BLOCKQUOTE type="cite" cite="">Hi,<BR>Here's a better version.<BR>It's
interesting, when change the values for smooth with t.<BR><BR><BR>Tom
Supera<BR><BR>----- Original Message -----<BR>From: "kailash pareek"
<johnnypareek@xxxx><BR>To:
<amibroker@xxxxxxxxxxxxxxx><BR>Sent: Saturday, October 27, 20018:57
AM<BR>Subject: Re: [amibroker] smoothed RSI<BR><BR><BR>> Hi
TOM,<BR>><BR>> It seems that something have lost in your code. When
I<BR>> tried to compare<BR>> your smoothed RSIt with default one,
there is no<BR>> difference between them<BR>> at all. Look below the
code of yours.<BR>><BR>> /*RSI 9*/<BR>> t=9;<BR>> C =
Wilders(C,3);<BR>> Up=IIf(C>Ref(C,-1),abs(C-Ref(C,-1)),0);<BR>>
Dn=IIf(C<Ref(C,-1),abs(C-Ref(C,-1)),0);<BR>>
Ut=Wilders(Up,t);<BR>> Dt=Wilders(Dn,t);<BR>>
RSIt=100*(Ut/(Ut+Dt));<BR>> Graph0=RSIt;<BR>>
Graph1=RSI(9);<BR>><BR>> I have added " graph1=RSI(9); " and there
is only one<BR>> graph visible. Now change the the code as "<BR>>
graph1=RSI(14) "<BR>> and there ARE both visible.<BR>><BR>> I
think you have got what I am pointing.<BR>><BR>> Think
about.<BR>><BR>> regards<BR>><BR>> Kailash K Pareek ( JOHNNY
)<BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>>
--- Tom Supera <tom_supera@xxxx> wrote:<BR>> > Hi,<BR>>
> Here I post my version of rsi. It's the same as the<BR>> >
original, but instead close, i use wilders(c,3).<BR>> ><BR>>>
Look at the attachments.<BR>> > If anyone of you has a better
optimization of rsi,<BR>> > please post it to the board.<BR>>
><BR>> > Tom Supera<BR>> ><BR>><BR>> > ATTACHMENT
part 2 application/octet-stream<BR>> name=146-1 smoothed
RSI.afl<BR>><BR>><BR>> > ATTACHMENT part 3 image/gif
name=smoothed RSI<BR>> periods 9-3.gif<BR>><BR>><BR>><BR>>
__________________________________________________<BR>> Do You
Yahoo!?<BR>> Make a great connection at Yahoo! Personals.<BR>> <A
href="http://personals.yahoo.com/"
eudora="autourl">http://personals.yahoo.com</A><BR>><BR>><BR>><BR>><BR>>
Your use of Yahoo! Groups is subject to <A
href="http://docs.yahoo.com/info/terms/"
eudora="autourl">http://docs.yahoo.com/info/terms/</A><BR>><BR>><BR><BR>------------------------
Yahoo! Groups Sponsor ---------------------~--><BR>Pinpoint the right
security solution for your company- Learn how to add 128- bit encryption
and to authenticate your web site with VeriSign's FREE guide!<BR><A
href="http://us.click.yahoo.com/yQix2C/33_CAA/yigFAA/dkFolB/TM"
eudora="autourl">http://us.click.yahoo.com/yQix2C/33_CAA/yigFAA/dkFolB/TM</A><BR>---------------------------------------------------------------------~-><BR><BR> <BR><BR>Your
use of Yahoo! Groups is subject to <A
href="http://docs.yahoo.com/info/terms/"
eudora="autourl">http://docs.yahoo.com/info/terms/</A>
<BR><BR><BR></FONT></BLOCKQUOTE><BR><BR><TT>Your use of Yahoo! Groups is
subject to the <A href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of
Service</A>.</TT> <BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_001_001B_01C15FB0.03287370--
Attachment:
Description: ""
|