Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Stocks & Commodities V.

28:7 (16-23, 55): An Anchored VWAP Channel For Congested Markets by Andrew Coles, PhD
INDICATORS

The Mystical, Mathematical MIDAS

An Anchored Vwap Channel


For Congested Markets
This indicator combines channel and envelope meth- change in market sentiment. In his lectures, Levine
odologies to accurately identify price reversals. repeatedly identified the ends of trends with signifi-
cant trend reversals. Yet this need not be the case;
the end of a trend will more likely herald a resting

P hysicist Paul Levine based his Midas phase in market activity.


(market interpretation/data analysis sys- Technicians describe resting phases as sideways
tem) approach to technical analysis on a moving (congested) markets defined by horizontal
mathematical modification of the volume support and resistance boundaries. These phases are
weighted average price (Vwap). Behind subdefined in terms of various patterns, the most com-
this modification is a well-thought-out philosophy mon being flags, pennants, triangles, and rectangles.
of what drives market prices. This philosophy can According to most observers, markets trend only 25%
be reduced to five basic tenets: of the time. Consequently, the ends of trends — and
the attendant change in trader sentiment — only lead
1 The underlying order of price behavior is a fractal to a genuine trend reversal in perhaps one in four
hierarchy of support and resistance levels. chart patterns.
2 This interplay between support and resistance is a In Figure 1 you see a textbook example of what
coaction between accumulation and distribution. Levine’s fifth tenet takes for granted. Here we have
a significant trend reversal with the first (red) Midas
3 This coaction, when considered quantitatively from
resistance curve launched from it. Then, as the trend
raw price and volume data, reveals a mathematical
develops, the swing highs (the smaller changes in
symmetry between support and resistance.
sentiment subsumed in a larger bearish psychology)
4 This mathematical symmetry can
be used to predict market tops and 1
5180

bottoms in advance. 5170


5160
5 Price and volume data — the 5150

volume weighted average price — 5140


5130
subsequent to a reversal in trend,
2
5120
and thus to a major change in 5110

market (trader) sentiment, is key to


3 5100
5090
this process of chart prediction. 5080
4 5070

The problem 5060


5050
While there is no obvious flaw in 5040
the logic that binds these five prin- 5030

ciples, there is one weakness in the


5020
KIM SCAFURO

1
METASTOCK

5010
final tenet involving what follows 18h 19h 20h 21h 08h 09h 10h 11h 12h 13h 14h 15h 16h 17h 18h 19h 20h 21h
the end of a trend and a significant 3 4
Figure 1: ONE-MINUTE chart of xetra DAX June 2009 futures. The circled area is a paradigm instance
of where the end of a trend equals the start of a new one. The subsequent downtrend sustains four Midas resistance
curves before terminating and heralding once again a trend change. This is marked by the launch of the first support
curve at the gray (1).

Copyright (c) Technical Analysis Inc.


Stocks & Commodities V. 28:7 (16-23, 55): An Anchored VWAP Channel For Congested Markets by Andrew Coles, PhD
5230 5230 INDICATORS
5220 5220
5210 5210
5200 5200
5190
Uptrend
5190 tendency. Typically, this would be a moving
5180 5180 average or linear regression line. The bands are
Uptrend high
5170 and start of 5170 constructed by a variety of techniques. Bollinger
5160 corrective phase 5160 bands, for example, use standard deviation, while
5150 5150 standard error bands use standard error. The result-
5140 5140 ing bands increase and decrease their proximity
5130 5130 to the central tendency continuously based on
5120 5120 changing volatility.
5110 5110
5100
Uptrend End of 5100 u Envelopes. Envelopes move at a fixed dis-
5090 corrective phase 5090 placement from a measure of central tendency
such as a moving average. For example, the
:25 :40 :55 :15 :30 :45 :00 :15 :30 :45 :00 :15 :30 :45 :00 :15 :30 :45 :00 :15 :30 :45 :00 :15 :30 :45 :00 :15
2009 09h 10h 11h 12h 13h 14h 15h

Figure 2: ONE-MINUTE chart of xetra DAX SeptEMBER 2009 futures. As the uptrend ends, moving average envelope projects an upper and
the MIDAS support curve moves into the price range. This centering effect means that it’s unable to capture lower boundary by adding and subtracting a fixed
the true swing highs and lows (magenta arrows) that define this gradually declining corrective phase, percentage (usually 3% to 4%) to a moving aver-
because in this case the end of a significant trend has not produced a genuine trend reversal. age. Unlike trading bands, the boundaries cannot
deviate from the central tendency because there
is nothing in their calculation that allows them to
are captured by Midas curves and/or are ideal launch points respond to changing volatility. The boundaries duplicate
for further Midas resistance curves. The trend ends at the gray the central tendency calculation.
“1” and a new Midas support curve is launched to support the
start of the new trend (gray arrow). u Channels. Price channels usually incorporate some mea-
Now contrast Figure 1 with Figure 2. Here we have an uptrend sure of central tendency such as a moving average or a
ending at 8:46 am on July 23, 2009, marked by the green arrow. linear regression line. However, they differ from the first
Thereafter, the market goes into a sideways corrective phase two insofar as the outer boundaries are fixed at upper and
for five and a half hours before creating a final low at 2:28 pm lower price extremities. For example, the standard deviation
and beginning a new aggressive uptrend. channel uses a linear regression channel and then creates
Note that the standard Midas curve launched at 8:26 am acts the fixed upper and lower boundaries by identifying the
as initial support to the rising trend (blue arrows) but as soon initial highs and lows of the price movement and projecting
as it is over, the curve moves into the corrective price range. It two lines forward from these initial highs and lows. There
is true that the curve then begins acting as a credible resistance is again nothing in the construction of the boundaries that
curve as the three blue down arrows indicate. However, its actual allows them to change according to changing volatility.
centered position within the broader price range is highlighted Unlike envelope boundaries, which are typically nonlinear,
by the upper and lower red boundary curves, which we shall channel boundaries are a form of a linear trendline above
examine in a moment. and below the central tendency.
In order to be continuously effective, Midas curves require
the end of a trend to usher in the start of another trend instead As I was searching for a method to contain a price series using
of a corrective phase. When this doesn’t occur, Midas curves Levine’s Midas, I came up with interesting results by melding
struggle to locate swing highs and lows in sideways markets. the channel and envelope methodologies. What these results
reveal is that there are more widespread connections between
VWAP displacement channel support and resistance levels than the fractal nature of Midas
and sideways markets demonstrates.
Paul Levine believed that his Midas curves worked because We can be introduced to the channel by reexamining Figure 2
the price and volume readings marking the start of the change and the red boundary curves. The upper red boundary has been
in trend (and in market sentiment) are intimately linked with fitted to the first immediate swing high of the corrective phase (that
subsequent changes in price and volume readings. But what is, uptrend high) marked with the green arrow at a displacement
additional associations are there between these price and vol- from the standard Midas curve of 0.23%, while the lower curve
ume data when they are adjusted in certain critical ways for has been fitted to a swing low that occurs an hour later (lower
sideways-moving markets? green arrow) at a displacement of 0.33%. Once the boundary
Several methods have emerged for containing a price series curves have been fitted to these initial swing highs and lows on
when it is moving sideways, and it will be helpful to begin with either side of the standard (blue) Midas curve, we can see from
a few definitions before discussing a Vwap-based solution for the subsequent dark magenta arrows how effectively the chan-
sideways markets: nel contains price in terms of the upper and lower boundaries.
It also supports the last low (labeled “end of corrective phase”)
u Trading bands. Trading bands surround a price series marking the beginning of an aggressive uptrend. On the way
by being created above and below a measure of central up, price pauses briefly against the upper red boundary inside

Copyright (c) Technical Analysis Inc.


Stocks & Commodities V. 28:7 (16-23, 55): An Anchored VWAP Channel For Congested Markets by Andrew Coles, PhD
5840
5830
INDICATORS
5820
5810
5800
5790
2
5780
5770 while the second smaller one is fitted at the black
1 5760 arrows at 0.8% and 0.13% (the standard Midas
curve is blanked out in both instances because it
5750
5740
5730
5720
is playing no effective role).
5710 Figure 3 shows that the curves of the
channel can often go on to play significant roles
5700
5690
5680 in capturing subsequent swing highs and lows.
The gray circles highlight this on two occasions
5670
5660
5650
5640
during November 20, 2009. On November 23,
5630 the market gaps up to the upper channel boundary
19 20 23 24 band and finds key support on it twice on Novem-
Figure 3: five-minute chart of xetra DAX December 2009 futures. Here, two channels are ber 24, with the second support being porous†.
launched in a downtrend and an uptrend and the curves of both go on to capture significant swing highs and Likewise, the second channel created in relation
lows and opening and closing price levels. to the smaller congestion on November 23 also
captures the closing price level on the same trading day. On
November 24, price gaps down to the upper curve of the first
the green box before it breaks out. Typically, there is then a channel and also finds further support there later in the trading
throwback (magenta oval) to this upper nonlinear boundary day, albeit with one of the bounces being porous.
line before the trend continues.
Capturing swing highs and lows
Channel application A Midas critic might make the lesser complaint that just as a
methodology standard Midas support/resistance curve fails to identify swing
Let’s expand on the methodology I just outlined. Here in two highs and lows in nontrending markets, it fails to capture the
quick steps is the procedure for applying the Midas displace- swing highs in rising trends and swing lows in falling trends.
ment channel: This would be a fair assessment. Where the end of a trend
leads to a genuine trend reversal as we have seen in Figure 1,
1 On a standard Midas curve moving to the middle the standard Midas S/R curves do a great job of capturing the
of a sideways (congested) price movement, the swing lows in uptrends and swing highs in downtrends. Yet it
upper boundary is fixed to the first swing high would also be helpful to have a curve that captures both sides
after (or at) the launch point and the lower to of an uptrend and a downtrend.
the first swing low. This fixing methodology Figure 4 is a five-minute chart of the German Eurex Bund
is similar to the Midas topfinder/bottomfinder December 2009 futures. It’s a busy chart extending over 14
curves in that the indicator is also anchored trading days from November 11 to November 30, 2009, and
to the trend by fixing it to the first significant of critical importance for anyone daytrading the Bund futures.
pullback. To appreciate the significance of what the channel captures, we
need to break the chart down into segments according to what
2 Inspired by the price envelope methodology, this fixing
is accomplished by each channel:
of two upper and lower curves is carried out by a percent
displacement from the original Midas curve. Percent n The first channel (black curves) is launched at the point
displacements are user-adjusted until there is a visual fit on the chart labeled (1) on the far left of the chart. Be-
to the first relevant swing high and low after the launch cause the standard Midas curve moved to the center of
point of the Midas curve. the range, it is blanked out. The upper curve is fitted at
the gray arrow at 0.25% while the lower one is fitted to
Trading implications for the channel the first swing low at 0.17%. Between them, they go on
Any indication that price is reversing against the upper or lower to capture all of the subsequent swing highs and lows in
band will imply that it will move back at least as far as to the the price range, albeit with some price porosity.
standard Midas curve or else to the opposite band. If price n The second channel (gray curves) is launched on November
breaks out, this is usually a significant occurrence because it 16 when price breaks through the upper band of the first
indicates a resumption of or change in trend. As indicated in channel. The second channel’s lower band is redundant
Figure 2, when price does break out, the outer boundary will (as lower bands often are in uptrends), but the upper band
often reverse its support/ resistance role. is fitted at the gray arrow at a displacement of 0.34%.
The standard Midas curve of a channel is retained in
Additional forecasting implications an uptrend. Here it conjoins with the upper band of the
Figure 3, a five-minute chart of the Xetra Dax December 2009 first channel and goes on to capture several swing lows
futures, contains two channels marked by (1) and (2). The first of the uptrend until it displaces downward from price on
larger one is fitted at the black arrows at 0.43% and 0.07%,
Copyright (c) Technical Analysis Inc.
Stocks & Commodities V. 28:7 (16-23, 55): An Anchored VWAP Channel For Congested Markets by Andrew Coles, PhD
Metastock code for the MIDAS displacement channel

For intraday use, the percentage displacement of the boundary curves {mid price}
will in nearly all cases be less than 1%, whereas on the daily charts pv:=MP()*V;
it will always be greater than 1%. {Midas calculation}
The MetaStock code for plotting the channel on the daily charts denom:=If(Cum(V)-ValueWhen(1,start,Cum(V))=0,1, Cum(V)-
and intraday charts can be seen below. The code reflects the following ValueWhen(1,start,Cum(V)));
algorithm for the channel: If(BarsSince(start), (Cum(pv)-ValueWhen(1,start,Cum(pv)))/
denom,MP());
{Adding percent displacement bands}
y xi – y xi – d y M:=If(BarsSince(start), (Cum(pv)-ValueWhen(1,start,Cum(pv)))/
MIDAS = denom,MP());
d ij
Q1:=Input(“percentage-upper”,1,50,1);
where: M * 1 + (Q1/100));
x i = cumulative volume on bar Q2:=Input(“percentage-lower”,1,50,1);
M * (1 – ( Q2/100))
y i = cumulative average price ((H+L)*0.5) * volume on bar
d i j = cumulative volume difference between bars i and j
= xi – xj Programming the PDB indicator in MetaStock for intraday charts

[ ]
{user defined input}
k sm:=Input(“startng month”, 1,12,1);
Upper displacement band = MIDAS 1 + sd:= Input(“starting day of month”, 1,31,1);
100 sh:=Input(“hour”,1,24,1);

[ ]
se:=Input(“minute”,0,60,0);
start:=sd=DayOfMonth() AND sm=Month() AND 2009 AND sh=Hour()
k AND se=Minute();
Lower displacement band = MIDAS 1 –
100 {mid price}
pv:=MP()*V;
{Midas calculation}
where k is the user-defined displacement. denom:=If(Cum(V)-ValueWhen(1,start,Cum(V))=0,1,Cum(V)-Val-
ueWhen(1,start,Cum(V)));
When the indicator is dropped onto a chart, MetaStock will prompt
If(BarsSince(start),(Cum(pv)-ValueWhen(1,start,Cum(pv)))/
for the percentage displacement for the upper and the lower band. denom,MP());
The fitting to the first significant swing high and low is a matter of trial {Adding percent displacement bands}
and error. Readers familiar with Paul Levine’s topfinder/bottomfinder M:=If(BarsSince(start),(Cum(pv)-ValueWhen(1,start,Cum(pv)))/
denom,MP());
indicator will appreciate the similarity between how the TB-F indica-
tor is fitted to the first significant pullback and how the M-DC is fitted: Q1:=Input(“percentage-upper”,0.001,2,0.001);
both involve a visual fit between data inputted and the best possible M * (1 + (Q1/100));
connection to the price extreme. Q2:=Input(“percentage-lower”,0.001,4,0.001);
M * (1 - (Q2/100))
Programming the PDB indicator in MetaStock for daily charts
{user defined input}
sm:=Input(“startng month”, 1,12,1);
sd:= Input(“starting day of month”, 1,31,1);
sy:=Input(“starting year”, 1980,2100,2000);
start:=sd=DayOfMonth() AND sm=Month() AND sy=Year();

November 19. During this time, however, the upper curve placement of 0.23% and captures the two swing highs
of the second channel continues to resist price between of November 30.
November 16 and November 20.
n The third channel (dotted black curves) is launched on These results produced from the upper curves of the three
November 20 because price began to displace upward channels are impressive and would be of real interest to a
from the second channel on the previous day. Here again daytrader, since they capture the intraday swing highs every
the lower curve is blanked out and the standard curve and day for 10 straight days, albeit with a small amount of poros-
upper curve remain on the chart. The upper curve is fitted ity.
at the gray arrow at a displacement of 0.20%. Thereafter, Figure 5 is an intraday downtrend in the Cme Euro Globex
it again captures all of the intraday highs for the next three FX December 2009 futures. The first channel (black curves)
days, while the standard Midas curve captures the intraday is launched at point (1) and fitted to the swing low at the gray
low of November 25 as price begins an accelerated trend arrow at a displacement of 0.10%. This time, the upper curve
requiring the application of a topfinder. is blanked out. There is a lot of porosity with the standard
curve, but the lower one does a good job of containing the
n Finally, a fourth channel (gray curves) is launched from trend. The second channel is launched at point (2) when price
the swing low on November 27 in the upper right of the breaks below the lower band of the first channel. It’s then fitted
chart. The upper curve is fitted at the gray arrow at a dis- at the gray arrow at a displacement of 0.14%. The standard

Copyright (c) Technical Analysis Inc.


Stocks & Commodities V. 28:7 (16-23, 55): An Anchored VWAP Channel For Congested Markets by Andrew Coles, PhD
124.2 INDICATORS
124.0
123.8
123.6
123.4
4
123.2 the lower support curve of the channel is fitted
3
123.0
at 0.08%. Subsequently over the next few days,
price is porous in relation to the standard curve
122.8
122.6
122.4 on another seven occasions highlighted by the
122.2
black arrows. All of them are captured by the
marginally displaced lower curve of the chan-
122.0
121.8
2 121.6 nel.
1
121.4
Figure 7 is another five-minute chart of the
Cme Globex Euro FX December 2009 futures
121.2
121.0
120.8 contract, this time highlighting porosity in a
11 12 13 16 17 18 19 20 23 24 25 26 27 30 downtrend. As can be seen, price is porous in
Figure 4: FIVE-MINUTE chart of EUREX Bund December 2009 futures. The chart spans 14 relation to the standard Midas resistance curve
trading days and the channel upper bands in this prolonged uptrend capture all of the swing highs. (dotted black line) from the outset, so the upper
curve of the channel is fitted to the first sign of
porosity at the gray arrow at a displacement of
0.10%. I also retained the lower curve on the chart
fitted at the lower gray arrow at a displacement
1.5010 1.5010
1
1.5000 1.5000
1.4990 1.4990
of 0.22%.
1.4980
2
1.4980 After the upper curve is fitted to the first porous
1.4970 1.4970 pullback, it captures all of the remaining swing
1.4960 1.4960 highs in the downtrend before price hesitates and
1.4950 1.4950 then breaks out at the gray oval on the far right
1.4940 1.4940 side. In the case of the lower band, it can be seen
1.4930 1.4930 in the gray boxes that price can produce porous
1.4920 1.4920 pivot areas even in relation to the channel curves.
1.4910 1.4910
This in turn could be eliminated by producing a
1.4900 1.4900
variation of the channel with two outer curves
instead of one.
1.4890 1.4890
1.4880 1.4880

Unique features
09:01 10:01 11:01 12:01 13:01 14:01 15:01 16:01 17:01 18:01 19:01 20:01 21:01 22:01 01:01 02:01 03:01 04:01 05:01 06:01 07:01 08:01 09:01 10:01 11:01 12:01
24

Figure 5: FIVE-MINUTE chart of CME Euro Globex FX December 2009 futures. This time, two
channels effectively contain the downtrend and the upper curve is blanked out in the downtrend.
Midas offers a number of unique features that
are unlike most other boundary indicators. The
channel requires a launch point reflective of a
Midas curve conjoins with the lower curve of the first channel change in underlying market psychology. Only the Raff regres-
for a period of time. The lower curve captures the swing lows sion channel incorporates a fixed launch point.
effectively. When price breaks down, there’s a brief throwback Unlike other boundary indicators, the channel incorporates
(circled) before the downtrend resumes. volume. Unlike other boundary indicators, the channel bands
are adjusted individually, not in parallel, so there may be a
Applying channels to porous price moves significant difference in the distance between the central curve
“Porosity” and “elasticity” are terms Paul Levine used to describe and the upper channel and the same curve and the lower one.
case s where price penetrated a Midas support/resistance curve Unlike some boundary indicators — such as the Donchian
before responding to it. The problem with this phenomenon channel, Raff regression channel, and standard deviation chan-
is that price can penetrate an S/R curve more deeply, so it is nel — the bands of the channel are nonlinear.
sometimes difficult to conclude whether we have a real case Finally, unlike all other band indicators, the displacement of
of porosity because the percentage seems too great. This can both of its bands is under constant review: adjustments are made
obviously affect trading confidence. at its launch point and then subsequently, whenever there is a
The problem can be avoided in an uptrend by using the lower new swing high or low, which marks either a wider or a narrow
(support) band. In a downtrend, it can be eliminated by using price extreme. This adjustability has definite price forecasting
the upper (resistance) band. implications.
Figure 6 is a five-minute chart of the Cme Globex Gbp FX
December 2009 futures with a gradually rising trend over three UK-based Andrew Coles holds a master’s degree and a doc-
trading days. The two outer black curves comprise the channel; torate in the history of science. He has a diploma in technical
the inner dotted line is a standard Midas support curve. Price analysis from Sta-UK and from the International Federation
is porous in relation to the standard curve from the very first of Technical Analysts (Ifta). He is also a Certified Financial
bar highlighted by the gray arrow on the left. At this first bar, Technician (Cfte). With his colleague David Hawkins, he is

Copyright (c) Technical Analysis Inc.


Stocks & Commodities V. 28:7 (16-23, 55): An Anchored VWAP Channel For Congested Markets by Andrew Coles, PhD

1.650

1.645

1.640
_____ [1992]. “Using Bollinger Bands,” Techni-
cal Analysis of Stocks & Commodities, Volume
1.635

1.630 10: February.


1.625 Coles, Andrew [2008]. “The Midas Touch, Part
1.620
1,” Technical Analysis of Stocks & Commodi-
ties, Volume 26: September.
1.615
_____ [2008]. “The Midas Touch, Part 2,”
1.610 Technical Analysis of Stocks & Commodities,
1.605
Volume 27: October.
Coles, Andrew, and David Hawkins [2009].
16 19 20 21 “Market Trend And Midas,” Technical Analysis
Figure 6: CME Globex GBP FX December 2009 futures. Price is porous in relation to a standard MIDAS of Stocks & Commodities, Volume 27: July.
curve from the outset but the lower curve contains this porosity throughout most of the subsequent move. _____ [2009]. “Applying Midas To Daily And
Weekly Charts,” Technical Analysis of Stocks
& Commodities, Volume 27: August.
_____ [2009]. “Midas And Intraday Charts,”
1.510
1.509
1.510
1.509 Technical Analysis of Stocks & Commodities,
Volume 27: September.
1.508 1.508
1.507 1.507
Hartle, Thom [1999]. “A Guide To Conquering
1.506 1.506
1.505 1.505
1.504 1.504
1.503
1.502
1.503
1.502 The Trading Markets: Kevin Haggerty,” Techni-
1.501
1.500
1.501
1.500 cal Analysis of Stocks & Commodities, Volume
17: August.
1.499 1.499
1.498 1.498
1.497 1.497
1.496
1.495
1.496
1.495
Levine, Paul [1995]. “Introducing The Midas
1.494
1.493
1.494
1.493 Method Of Technical Analysis,” Investment
1.492
1.491
1.492
1.491 Research.
Raff, Gilbert [1991]. “Trading The Regression
1.490 1.490
1.489 1.489
1.488 1.488
1.487
1.486
1.487
1.486 Channel,” Technical Analysis of Stocks & Com-
1.485
1.484
1.485
1.484 modities, Volume 9: October.
Reyna, George [2001]. “Volume Weighted Aver-
1.483 1.483
1.482 1.482
30 December age Price For Support And Resistance,” Technical
Figure 7: FIVE-MINUTE chart of CME Globex Euro FX December 2009 futures. Here, the Analysis of Stocks & Commodities, Volume
porosity problem is highlighted in a moderately sloping downtrend and again the channel produces a very 19: May.
effective resistance curve to deal with it. Sweeney, John [1988]. “WinMidas 2.1,” product
review, Technical Analysis of Stocks & Com-
currently writing a book on Midas for John Wiley & Sons. His modities, Volume 16: May.
website is www.midasmarketanalysis.com . Widner, Mel [1995]. “Signaling Change With Projection
Bands,” Technical Analysis of Stocks & Commodities,
Suggested reading Volume 13: July.
Andersen, Jon [1996]. “Standard Error Bands,” Technical Analy-
sis of Stocks & Commodities, Volume 14: September. S&C
Bollinger, John J. [2002]. Bollinger On Bollinger Bands
(McGraw-Hill).

Copyright (c) Technical Analysis Inc.

You might also like