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

[amibroker] PowSmooth Crash Test



PureBytes Links

Trading Reference Links




The test  function moves from 1 to 3, oscillates between 
3 and 2 for 10 days and gets the final price 2.
See the relative response of
MA [green]
EMA [yellow]
DEMA [blue] and
PowSmooth [red].
Dimitris Tsokakis
 
PS For your own test, paste in Indicator builder 
the
 
test=(Cum(1)<750)+(2+(Cum(1)%2))*(Cum(1)>=750 AND 
Cum(1)<760)+2*(Cum(1)>=760);EnableScript("jscript");<%dratio 
= VBArray( AFL( "test" ) ).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;Plot(test,"",1,8);Plot(PowSmooth,"",4,4);Plot((MA(test,3)+MA(test,2))/2,"",5,1);Plot((EMA(test,3)+EMA(test,2))/2,"",7,1);Plot((DEMA(test,3)+DEMA(test,2))/2,"",11,1);Title="SMOOTHING";






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:
powsmooth2.gif

Attachment: Description: "Description: GIF image"