Professional Documents
Culture Documents
Metastock D/C - Winner - Trading Software $500 - $1000: Get A Free Trial of Metastock With Market Data!
Metastock D/C - Winner - Trading Software $500 - $1000: Get A Free Trial of Metastock With Market Data!
*Applies to U.S. exchange-listed stocks, ETFs, and options. A $0.65 per contract fee applies for options trades.
Company Profile forecasts are hypothetical, based on user-defined assumptions, and not guaranteed. All investing involves risks, including loss of
principal. TD Ameritrade, Inc., member FINRA/SIPC. © 2019 TD Ameritrade.
Stocks & Commodities V. 28:6 (16-20): Fractal Dimension As A Market Mode Sensor by John F. Ehlers and Ric Way
TRADING SYSTEMS
Cycle Or Trend?
Fractal Dimension As
A Market Mode Sensor
You can use the fractal dimension as a natural way be defined by the fractal dimension that describes
to sense whether the market is in a cycle mode or sparseness at all magnification levels.
trend mode. To determine the fractal dimension of a generalized
pattern, we cover the pattern with a number N of small
Is
objects of several various sizes S. The relationship
the market trending or cycling? What in- of the number of objects in two sets of sizes is:
tuitively seems like an easy question to
answer is perhaps one of the most vexing in N2 S1 D
=
N1 S2
all technical analysis. If a trader knows the market
mode, then a straightforward approach could be log
N2
taken to adapt a trading strategy to that mode. We N1
D=
would apply a swing trading technique such as an S1
log
S2
overbought/oversold oscillator in cycle mode and a
trend-following technique such as a moving average As an example, we can start with a pattern that is a
crossing in trend mode. In this article, we address the line segment 10 meters long. We chose the two small
cycle/trend problem using the fractal dimension. dimensions as S1 = one meter and S2 = 0.1 meter.
A number of tools have been developed to differ- Placing boxes along the line, we can fit 10 one-meter
entiate between cycle and trend modes. For example, boxes on the segment, and therefore N1 = 10. Simi-
we can compare the trend slope over a full cycle larly, we can fit 100 0.1-meter boxes on the same 10
period to the amplitude swing of the cycle and use one-meter line segment, and therefore, N2 = 100. The
the ratio. More recently, we developed empirical fractal dimension of the line then computes to:
mode decomposition to separate the market into cycle
and trend mode components. In this article, we will 100
log
10
consider the fractal dimension as a natural way to D= = 1.0
1
determine whether the market is in a cycle mode or log
0.1
trend mode.
As a second example, we will use the pattern as a
Fractal dimension square that is 10 meters on a side instead of a line seg-
There is no argument that market prices are fractal. ment. Retaining the same sizes of our small boxes as
Price charts look similar regardless of time frame. If one meter and 0.1 meter on a side, respectively, we get
you remove the labels from a five-minute chart, a daily N1 = 100 and N2 = 10,000. When the square is our pat-
chart, and a weekly chart, you would have difficulty tern, the fractal dimension therefore computes to be:
telling them apart. Fractal shapes are self-similar be-
10000
cause they have the same roughness and sparseness log
100
regardless of time interval. This self-similarity can D= = 2.0
1
log
0.1
by John F. Ehlers and Ric Way
Copyright (c) Technical Analysis Inc.
WILLIAM L BROWN
Stocks & Commodities V. 28:6 (16-20): Fractal Dimension As A Market Mode Sensor by John F. Ehlers and Ric Way
Trend or cycle?
By its very design, the fractal dimen-
Figure 1: fractal dimension indicator in action. Here you see the fractal dimension indicator applied on the sion is a natural descriptor of trend
chart of Microsoft (MSFT). The indicator shows that MSFT is in a trend from mid-July 2008 until January 2009. From the modes and cycle modes in the market.
slope of the data, this is clearly a downtrend. Between January and mid-April 2009, the indicator is in the fuzzy region,
Its use provides you with another tool
and from mid-April begins another trend. This time the trend is up, as determined by the slope of the data.
to better apply your strategies for ei-
ther swing trading or trend-following
trading.
Suggested reading
Ehlers, John F., and Ric Way [2010].
“Empirical Mode Decomposition,”
Technical Analysis of S tocks
& C ommodities , Volume 28:
March.
‡EasyLanguage (TradeStation)
‡Mesa Software
0.75%
Amount > $1 million
IBKR
and not much higher charges
for smaller amounts
margin loan rates 1
Trading
Trading on
on margin
margin is
is only
only for
for sophisticated
sophisticated investors
investors with
with
high risk tolerance. You may lose more than your initial investment.
high risk tolerance. You may lose more than your initial investment.
Member - NYSE, FINRA, SIPC – *Interactive Brokers rated #1, Best Online Broker according to Barron’s Best Online Brokers Survey of 2020:
February 21, 2020. For more information see, ibkr.com/info - Barron’s is a registered trademark of Dow Jones & Co. Inc. [1] Margin Loan rate as
of 07/08/2020. IB calculates the interest charged on margin loans using the applicable rates for each interest rate tier listed on its website. Rates
shown apply to IBKR Pro clients only. Rates subject to change. For additional information on margin loan rates, see ibkr.com/interest
10-IB20-1374CH1358
We are honored to be recognized as a
top trading software provider in the
2020 Readers’ Choice Awards.
ninjatrader.com
subscribe or renew today!
Every Stocks & Commodities subscription
(regular and digital) includes:
• Full access to our Digital Edition
The complete magazine as a PDF you can download.
• Full access to our Digital Archives 8999
1 year.................
$
That’s 35 years’ worth of content!
2 years............ 149
• Complete access to WorkingMoney.com $ 99
The information you need to invest smartly and successfully.
3 years............ 199
• Access to Traders.com Advantage $ 99
Insights, tips and techniques that can help you trade smarter.
5 years..........
$
29999
That’s around $5 a month!