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

Re: [EquisMetaStock Group] Empirical Mode Decomposition--- PREV?


  • Date: Fri, 19 Mar 2010 22:27:32 +1300
  • From: "Roy Larsen" <rlarsen@xxxxxxxxxx>
  • Subject: Re: [EquisMetaStock Group] Empirical Mode Decomposition--- PREV?

PureBytes Links

Trading Reference Links



Hi FP
 
The pk and va variables can function without PREV but bp is a different story.
 
Roy
 
 
----- Original Message -----
Sent: Friday, March 19, 2010 6:26 PM
Subject: [EquisMetaStock Group] Empirical Mode Decomposition--- PREV?

 

This formula was in the recent issue for TASC.. It is a cycle indicator but I think better reactive than the Schaff.
warning the PREV function makes it very slow hope you have a fast processor... Was wondering if anyone had a clever way to program without the PREV function here?

{TASC March 2010 - Ehlers}
Empirical Mode Decomposition
======================================

prd:=Input("number of periods",5,200,20);
dlta:=Input("Delta",0.01,5,0.1);
fra:=Input("fraction",0.01,0.5,0.1);
plot:=MP();

beta:=Cos(360/prd);
gam:=1/Cos((720*dlta)/prd);
alpha:=gam-Sqrt(gam*gam-1);
bp:=.5*(1-alpha)*(plot-Ref(plot,-2))+beta*(1+alpha)*PREV-alpha*Ref(PREV,-1);
pk:=If(Ref(bp,-1)>Max(bp,Ref(bp,-2)),Ref(bp,-1),PREV);
va:=If(Ref(bp,-1)<Min(bp,Ref(bp,-2)),Ref(bp,-1),PREV);
abp:=Mov(bp,2*prd,S);
apk:=Mov(pk,50,S);
ava:=Mov(va,50,S);
abp;
fra*apk;
fra*ava;

{End}



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4956 (20100318) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4956 (20100318) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___