Professional Documents
Culture Documents
Building Trading Systems
Building Trading Systems
On NonLinear Filters
Presented by John Ehlers
Disclaimer
Each speaker at the TradeStationWorld Conference acts independently, and no
speaking topic, session, seminar or content is affiliated with, or approved,
sponsored or endorsed by, TradeStation Technologies, Inc. or any of its
affiliates. Topics, sessions and seminars are solely for educational purposes. The
speaker roster and session/seminar content are subject to change without notice.
No investment or trading advice regarding any security, group of securities,
market segment or market is intended or shall be given. Any examples used in
sessions, seminars or speaking topics are for illustrative purposes only -- they
should never be construed as recommendations or endorsements of any kind.
No particular trading strategy, technique, method or approach discussed will
guarantee profits, increased profits or the minimization of losses.
Past
performance, whether actual or indicated by simulated historical tests, is no
guarantee of future performance or success.
Testimonials may not be representative of the experiences of other customers
and are not indicative of future performance or success.
TradeStation Technologies, Inc., the host of the conference, and TradeStation
Securities, Inc. (Member NASD, SIPC and NFA), the conference's premier
sponsor, are affiliated companies. "TradeStation," as used in this presentation,
refers to the trading analysis software products, platforms and services that
have been developed by TradeStation Technologies.
k(0), VIDYA(0);
Ehlers Filter
Unlike most nonlinear filters, it is a FIR filter
Analogous to determining sharpness of a piece of
paper creased and draped over the edge of a table
Price((H+L)/2), Length(20);
Vars:
Array:
Coef[50](0), Distance2[50](0);
Median Filter
Rank-order filter
Easy to compute
Often used to sharpen video images
Useful to smooth impulsive type noise by ignoring
outliers
Filt(0);
Price((H+L)/2), Threshold(.0025);
Vars:
Price((H+L)/2), N(20);
Vars:
NonLinear Laguerre
A Laguerre filter warps time in the filter coefficients
Enables extreme smoothing with just a few filter terms
Price((H+L)/2), Length(20);
Diff(0), HH(0), LL(0), count(0), alpha(0), L0(0), L1(0), L2(0), L3(0), Filt(0), FIR(0);
MAMA
KAMA
EHLERS
VIDYA
FRAMA
Med-MA
Smoothness Responsive
KAMA
5
6
VIDYA
6
5
MAMA
7
1
Ehlers
1
3
Median
8
7
Median-MA
4
8
FRAMA
2
4
Laguerre
3
2
Score
11
11
8
4
15
12
6
5
Efficiency Tips
Precede indicator or strategy name with a special
character like ! or * or =
This moves your custom indicators and strategies to the
top of the TradeStation list
Optimization Tips
Optimize one parameter at a time for efficiency
Iterate if necessary
Length Optimization on EC
29 Year SF Performance
24 Year JY Performance
6 Year EC Performance
Object Lesson:
You cant make money
unless the market moves
CSCO
All Trades
Long Trades Short Trades
$8,348.00 $5,093.00
$3,255.00
$12,873.00 $7,775.00
$5,098.00
($4,525.00) ($2,682.00) ($1,843.00)
2.84
2.9
2.77
RTN
All Trades
Long Trades Short Trades
$3,980.00
$2,194.00
$1,786.00
$4,366.00
$2,510.00
$1,856.00
($386.00)
($316.00)
($70.00)
11.31
7.94
26.51
$42.00
$42.00
$0.00
72
45.83%
33
37
2
36
58.33%
21
15
0
36
33.33%
12
22
2
15
66.67%
10
4
1
8
62.50%
5
2
1
7
71.43%
5
2
0
$115.94
$390.09
($122.30)
3.19
$4,320.00
($437.00)
$141.47
$370.24
($178.80)
2.07
$4,179.00
($437.00)
$90.42
$424.83
($83.77)
5.07
$4,320.00
($241.00)
$265.33
$436.60
($96.50)
4.52
$1,320.00
($215.00)
$274.25
$502.00
($158.00)
3.18
$1,320.00
($215.00)
$255.14
$371.20
($35.00)
10.61
$944.00
($35.00)
9
3
72.83
105.1
27.67
0
3
6
34.28
57.33
23.45
15
4
2
56.07
71.7
22.75
33
2
1
72.88
103
17.5
33
4
1
36.86
40.4
28
0
3
6
53.56
87.73
25.16
15
15 Yrs, 10 Dys
$0.00
($243.00)
($243.00)
$4,661.00
12/1/2004 13:00
($1,859.00)
($817.00)
5/9/2005 13:00
($699.00)
($685.00)
($733.00)
($250.00)
9/24/2003 13:00
($215.00)
($35.00)
SUMMARY
Eight (or more) systems can be created using
NonLinear Moving Averages as a basis
The systems have four components