MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

 

Optimal Tracking Filter by John Ehlers


Type : Indicator, Name : Optimal Tracking Filter

inputs: Price((h+l)/2);

vars: lambda(0),
alpha(0);

Value1 = .2*(Price - Price[1]) + .8*Value1[1];
Value2 = .1*(H - L) + .8*Value2[1];
if Value2 <>0 then lambda = AbsValue(Value1 / Value2);
alpha = ( -lambda*lambda + SquareRoot(lambda*lambda*lambda*lambda + 16*lambda*lambda)) /8;
Value3 = alpha*Price + (1-alpha)*Value3[1];

Plot1(Value3, "AlphaTrack");

 

t-i-Optimal_Tracking_Filter.gif
Source / From: TOP
http://www.TradeStationZone.com

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!