PureBytes Links
Trading Reference Links
|
We have, sometimes, a ziggy indicator and we want to
smooth it but stay as close as possible,
passing through the saw-tooth line, without introducing
important delay.
You will think that we ask a lot of things, but here is an
attempt :
We will calculate the square root of the last two indicator
values, the third root of the last 3 values [the geometric
averages]
and, finally, take their arithmetic average. This smoothing
hybrid is interesting, fast and passes through ziggy points,
filtering enough noise out.
Paste in AA or IB the PowSmooth of Dratio
/*PowSmooth and an application to Dratio*/
<FONT
size=2>dratio=DEMA(1000*(H-L)/(H+L),20);EnableScript("jscript");<%dratio
= VBArray( AFL( "dratio" ) ).toArray();s=new Array();t=new
Array();s[0]=0;t[0]=0;for(i=1;i<dratio.length;i++){{t[i]=Math.pow((dratio[i]*dratio[i-1]*dratio[i-2]),1/3);}{s[i]=Math.pow((dratio[i]*dratio[i-1]),1/2);}}AFL.Var("s0")
=s
;AFL.Var("t0")=t;%>PowSmooth=(s0+t0)/2;Filter=1;AddColumn(dratio,"DRATIO");AddColumn(s0,"SQRT");AddColumn(t0,"THIRD");
<FONT
size=2>AddColumn(Powsmooth,"PowSmooth");Plot(dratio,"dratio",1,8);Plot(PowSmooth,"PowSmooth",7,1);
We may avoid, as you see in the att. gif, many unimportant
whipsaws, very dangerous when we work with a
Cross(Dratio,Level)
trading system and decrease losses without loosing the
accuracy of this delicate indicator.
Dimitris Tsokakis
PS Apply PowSmooth to positive
indicators
Yahoo! Groups Sponsor
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.
Attachment:
powsmooth.gif
Attachment:
Description: "Description: GIF image"
|