log in     sign up for free
 
Combine your enthusiasm, energy, focus, devotion, and discipline to becoming the best trader you can be, but once you have done that, there is no point in agonizing over the details.
Jack D. Schwager
 
 
Home
systems (284)
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
 

Buy

MetaStock

     (special offer)
 
 
 

Buy

EOD data for MetaStock

     (special offer)
 
 
 

Buy

Realtime data for MetaStock

     (special offer)
 
 
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

Modified Optimum Elliptic Filter and Detrender

Formula for: MetaStock

indicator


 

 

Views:  1405

Added: July 19, 2007
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: MetaStock, indicator
 
Your Ad Here
> Dave,
> Thanks, I tried your code in MS 6.52, and it plots, but
> does not seem correct. The original EasyLanguage code is:
>
> Value1 = Close + 0.088*Value1[6];
> Value2 = Value1 - Value1[6] + 1.2*Value2[6] - 0.7*Value2[12];
> D = Value2[12] - 2*Value2[6] + Value2;
> Plot1(D,"D");
>
> So I modified yours to read
> Value1:=0.088*Ref(PREV,-6)+CLOSE;
> Value2:=(1.2*Ref(PREV,-6))-(0.7*Ref(PREV,-12));
> V3:=ROC(Value1,6,$)+Value2;
> D:=Ref(V3,-12)-2*Ref(V3,-6)+V3;
> D;

This seems like it's correct, and it does plot, but I don'thave any EasyLanguage numbers to compare to. I wrote up a C program to perform the computation, and the shape of the resulting plot seems identical to what metastock gives, but the actual numbers are off. Your line of thinking seems to me to be correct, however. I'll try to do some more verfication.

Jeff


Jeff,
I worked on this for a time last July. Incorporating Dave's improvements, I came up with the following for Ehlers code for the modified optimum elliptic filter and detrender as described on p.29. Although I'm not impressed with the output, this may be something you can use.

-Corey.

 

 



Code:

Modified Optimum Elliptic Filter and Detrender
{Ehlers TASC Jul 00, p. 29}
P1:=(H+L)/2;
V1:=P1 + 0.088*Ref(PREV,-5);
V2:=ROC(V1,6,$) + 1.2*Ref(PREV,-5) - 0.7*Ref(PREV,-11);
D1:=Ref(V2,-12) - (2*Ref(V2,-6))+V2;

S1:=0.13785*(2*D1-Ref(D1,-1))+0.0007*(2*Ref(D1,-1)-
Ref(D1,-2))+0.13785*(2*Ref(D1,-2)-
Ref(D1,-3))+(1.2103*PREV)-(0.4867*Ref(PREV,-1));

S2:=0.13785*(2*S1-Ref(S1,-1))+0.0007*(2*Ref(S1,-1)-
Ref(S1,-2))+0.13785*(2*Ref(S1,-2)-
Ref(S1,-3))+1.2103*PREV-0.4867*Ref(PREV,-1);
S1;
S2


 






Author: John Ehlers
Source: http://purebytes.com/archives/metastock/

 

View similar (indicator for MetaStock):

Volume Accumulator (Chaikin)
Exponential Moving Average - RSI Volatility-Adjusted
Squeeze Bollinger / Keltner / Momentum Indicator
Chaikin Money Flow Indicator
ATR Modified
Candle - Evening Star
Close Within a % Band of the MA
Dynamic Momentum Index
Volume - Support/Resistance
Target %
...
 
 
all formulas for MetaStock
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012