Trend Mode & Cycle Modes
Trend Mode & Cycle Modes
Trend Mode & Cycle Modes
IDENTIFYING
TREND MODES and CYCLE MODES
Left-Brained Concepts
for Traders in their Right Minds
John Ehlers
Author
MESA, and Trading Market Cycles
Rocket Science for Traders
Cybernetic Analysis for Stocks and Futures
Website
www.mesasoftware.com
TRADING IS EASY
John Ehlers
TRADITIONAL TECHNOLOGIES
John Ehlers
Trend Mode
Data Smoothers (moving averages, etc.)
Cycle Mode
Oscillators (RSI, Stochastic, etc.)
Compromise Solutions
Adaptive moving averages, KAMA, VIDYA, etc.
I have found them not to be very effective.
Trend = Black
Cycle = Red
Composite = Blue
CYCLE RECOVERY
John Ehlers
EasyLanguage Code:
Inputs:
Period(20),
Delta(.1);
Vars:
gamma(0),
alpha(0),
beta(0),
BP(0);
beta = Cosine(360 / Period);
gamma = 1 / Cosine(720*delta / Period);
alpha = gamma - SquareRoot(gamma*gamma - 1);
BP = .5*(1 - alpha)*(Close - Close[2]) + beta*(1 + alpha)*BP[1] - alpha*BP[2];
Plot1(BP,BP", Red, 2);
10
11
Period(20),
Delta(.1);
Vars:
gamma(0),
alpha(0),
beta(0),
BP(0),
Power(0),
count(0),
RMS(0),
PtoP(0);
beta = Cosine(360 / Period);
gamma = 1 / Cosine(720*delta / Period);
alpha = gamma - SquareRoot(gamma*gamma - 1);
BP = .5*(1 - alpha)*(Close - Close[2]) + beta*(1 + alpha)*BP[1] - alpha*BP[2];
Power = 0;
For count = 0 to Period - 1 Begin
Power = Power + BP[count]*BP[count] + BP[count + Period / 4]*BP[count + Period / 4];
End;
RMS = SquareRoot(Power / Period);
PtoP = 2*1.414*RMS;
Plot1(PtoP, "PP", Yellow, 2);
12
TREND VIGOR
John Ehlers
14
Fourier Transform
Fourier Transform for Traders (free)
www.mesasoftware.com
MESA
15
John Ehlers
QUESTIONS?
16
John Ehlers
17