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

RE: [amibroker] Fw: Graphs



PureBytes Links

Trading Reference Links










<span
>Dimitris<font
size=2 color=navy face=Arial>,

 

Are you sure you do not want this:

 

output2[ i ] = f * Close[ i ] + (<font
size=2 face=Verdana>1 - f) *
output2[ i - 1<span
> ]; // you had <font size=2
face=Verdana>output2[ <span
class=SpellE>i &#8211; <i
>2]<font size=2 color=navy
face=Arial>

 

You are multiplying times a bar 2 days ago
in the current formula.

 

Regards,

Peter

 



-----Original Message-----
From: Dimitris Tsokakis
[mailto:TSOKAKIS@xxxxxxxxx] 
Sent: Thursday, July 31, 2003 5:41
AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Fw: Graphs

 



Ooops, the attachement is lost !!





----- Original Message ----- 



<span
>From:<font
size=2 face=Arial> <a
href="" title="tsokakis@xxxxxxxxx">Dimitris Tsokakis






To:<font size=2
face=Arial> <a
href="" title="amibroker@xxxxxxxxxxxxxxx">amibroker@xxxxxxxxxxxxxxx






Sent:<font size=2
face=Arial> Thursday, July 31,
2003 12:36 PM





Subject:<font size=2
face=Arial> Graphs







 





I noticed some strange effect moving the graphs one bar forward.





The red curve is not the same, especially on the left side of the
graph.





Do we have here an undesirable resonance effect ?





How could I avoid this ?





Dimitris Tsokakis





 





I used the following code to compare EMA with its "Echo"





 





n=20;<font
size=2 face=Verdana>





output1[ <span
>0 ] = Close[ 0 ];output1[ 1 ] = Close[
1 ];<font
size=2 face=Verdana>





output2[ <span
>0 ] = Close[ 0 ];output2[ 1 ] = Close[
1 ];<font
size=2 face=Verdana>





f = 2/(n+1<span
>);<span
>





for( i = 2; i < BarCount; i++ )<span
>





{





output1[ i ] = f * Close[
i ] + (1 - f) * output1[ i - 1<span
> ];<span
>





output2[ i ] = f * Close[
i ] + (1 - f) * output2[ i - 2<span
> ];<span
>





}





Plot(Output1,"EMA",1,1<font
size=2>);<font size=2
face=Verdana>





<span
>Plot<font size=2
face=Verdana>(Output2,"ECHO
EMA",4,1);<font
size=2 face=Verdana>





 







<font size=2
face="Courier New">Send BUG REPORTS to
bugs@xxxxxxxxxxxxx<span
>
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to:
amiquote@xxxxxxxxxxxxxxx 
(Web page: <a
href="">http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: <a
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html


Your use of
Yahoo! Groups is subject to the Yahoo!
Terms of Service. 












Yahoo! Groups Sponsor


ADVERTISEMENT
<img
src="" width=300 height=250 border=0>










Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.