[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] smoothed RSI, Problem



PureBytes Links

Trading Reference Links

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 be 
able to duplicate your results.

Here is my visual result:
Smoothed RSI.jpg

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/




--=====================_23994962==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
<font size=3>Hi Tom, <br>
<br>
Well, this day I must dedicate to being my weekly &quot;thick
headed&quot; day.<br>
I love what you've done with the &quot;smoothed RSI&quot;, but I don't
seem to be able to duplicate your results. <br>
<br>
Here is my visual result:<br>
<img src="cid:.0"; width=624 height=206 alt="Smoothed RSI.jpg"><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" size=1 color="#FF00FF">2</font><font face="Courier New, Courier" size=1>;<br>
Smooth =
</font><font face="Courier New, Courier" size=1 color="#FF00FF">9</font><font face="Courier New, Courier" size=1>;<br>
MC =
</font><font face="Courier New, Courier" size=1 color="#0000FF">Wilders</font><font face="Courier New, Courier" size=1>(<b>C</b>,Smooth);<br>
Up=</font><font face="Courier New, Courier" size=1 color="#0000FF">IIf</font><font face="Courier New, Courier" size=1>(MC&gt;</font><font face="Courier New, Courier" size=1 color="#0000FF">Ref</font><font face="Courier New, Courier" size=1>(MC,-</font><font face="Courier New, Courier" size=1 color="#FF00FF">1</font><font face="Courier New, Courier" size=1>),</font><font face="Courier New, Courier" size=1 color="#0000FF">abs</font><font face="Courier New, Courier" size=1>(MC-</font><font face="Courier New, Courier" size=1 color="#0000FF">Ref</font><font face="Courier New, Courier" size=1>(MC,-</font><font face="Courier New, Courier" size=1 color="#FF00FF">1</font><font face="Courier New, Courier" size=1>)),</font><font face="Courier New, Courier" size=1 color="#FF00FF">0</font><font face="Courier New, Courier" size=1>);<br>
Dn=</font><font face="Courier New, Courier" size=1 color="#0000FF">IIf</font><font face="Courier New, Courier" size=1>(MC&lt;</font><font face="Courier New, Courier" size=1 color="#0000FF">Ref</font><font face="Courier New, Courier" size=1>(MC,-</font><font face="Courier New, Courier" size=1 color="#FF00FF">1</font><font face="Courier New, Courier" size=1>),</font><font face="Courier New, Courier" size=1 color="#0000FF">abs</font><font face="Courier New, Courier" size=1>(MC-</font><font face="Courier New, Courier" size=1 color="#0000FF">Ref</font><font face="Courier New, Courier" size=1>(MC,-</font><font face="Courier New, Courier" size=1 color="#FF00FF">1</font><font face="Courier New, Courier" size=1>)),</font><font face="Courier New, Courier" size=1 color="#FF00FF">0</font><font face="Courier New, Courier" size=1>);<br>
Ut=</font><font face="Courier New, Courier" size=1 color="#0000FF">Wilders</font><font face="Courier New, Courier" size=1>(Up,t);<br>
Dt=</font><font face="Courier New, Courier" size=1 color="#0000FF">Wilders</font><font face="Courier New, Courier" size=1>(Dn,t);<br>
RSIt=</font><font face="Courier New, Courier" size=1 color="#FF00FF">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" size=1 color="#FF00FF">&quot;smoothed
RSI&nbsp;&nbsp;&nbsp;&nbsp; red line = smoothed
RSI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blue line = original
RSI&quot;</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: &quot;kailash pareek&quot; &lt;johnnypareek@xxxx&gt;<br>
To: &lt;amibroker@xxxxxxxxxxxxxxx&gt;<br>
Sent: Saturday, October 27, 2001 8:57 AM<br>
Subject: Re: [amibroker] smoothed RSI<br>
<br>
<br>
&gt; Hi TOM,<br>
&gt;<br>
&gt; It seems that something have lost in your code. When I<br>
&gt; tried to compare<br>
&gt; your smoothed RSIt with default one, there is no<br>
&gt; difference between them<br>
&gt; at all. Look below the code of yours.<br>
&gt;<br>
&gt; /*RSI 9*/<br>
&gt; t=9;<br>
&gt; C = Wilders(C,3);<br>
&gt; Up=IIf(C&gt;Ref(C,-1),abs(C-Ref(C,-1)),0);<br>
&gt; Dn=IIf(C&lt;Ref(C,-1),abs(C-Ref(C,-1)),0);<br>
&gt; Ut=Wilders(Up,t);<br>
&gt; Dt=Wilders(Dn,t);<br>
&gt; RSIt=100*(Ut/(Ut+Dt));<br>
&gt; Graph0=RSIt;<br>
&gt; Graph1=RSI(9);<br>
&gt;<br>
&gt; I have added &quot; graph1=RSI(9); &quot; and there is only 
one<br>
&gt; graph visible. Now change the the code as &quot;<br>
&gt; graph1=RSI(14) &quot;<br>
&gt; and there ARE both visible.<br>
&gt;<br>
&gt; I think you have got what I am pointing.<br>
&gt;<br>
&gt; Think about.<br>
&gt;<br>
&gt; regards<br>
&gt;<br>
&gt; Kailash K Pareek ( JOHNNY )<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --- Tom Supera &lt;tom_supera@xxxx&gt; wrote:<br>
&gt; &gt; Hi,<br>
&gt; &gt; Here I post my version of rsi. It's the same as the<br>
&gt; &gt; original, but instead close, i use wilders(c,3).<br>
&gt; &gt;<br>
&gt; &gt; Look at the attachments.<br>
&gt; &gt; If anyone of you has a better optimization of rsi,<br>
&gt; &gt; please post it to the board.<br>
&gt; &gt;<br>
&gt; &gt; Tom Supera<br>
&gt; &gt;<br>
&gt;<br>
&gt; &gt; ATTACHMENT part 2 application/octet-stream<br>
&gt; name=146-1 smoothed RSI.afl<br>
&gt;<br>
&gt;<br>
&gt; &gt; ATTACHMENT part 3 image/gif name=smoothed RSI<br>
&gt; periods 9-3.gif<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; __________________________________________________<br>
&gt; Do You Yahoo!?<br>
&gt; Make a great connection at Yahoo! Personals.<br>
&gt;
http://personals.yahoo.com<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/<br>
&gt;<br>
&gt;<br>
<br>
------------------------ Yahoo! Groups Sponsor
---------------------~--&gt;<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>
http://us.click.yahoo.com/yQix2C/33_CAA/yigFAA/dkFolB/TM<br>
---------------------------------------------------------------------~-&gt;<br>
<br>
&nbsp;<br>
<br>
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
<br>
<br>
<br>
</font></blockquote></html>

--=====================_23994962==_.ALT--

Attachment: Description: ""