Something Darvas, Something New: Modifying The Darvas Technique For Today's Markets

You might also like

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

Stocks & Commodities V.

23:6 (16-22): Something Darvas, Something New by Daryl Guppy


CLASSIC TECHNIQUES

Modifying The Darvas Technique For Today’s Markets

Something Darvas,
Something New
In the May 2005 STOCKS & COMMODITIES,
BOX STACKING
Daryl Guppy discussed classic Darvas-style
trading. Here, he modifies the technique to fit
modern-day markets, given that markets are Modern D_Box 2
more volatile these days than they were in the
1960s.

by Daryl Guppy
Ghost D_Box Stop-loss 2
he increased volatility of mod-
ern-day trading has reduced the

T risk control elements of the


Darvas approach, which was
originally developed and ap-
plied to less volatile markets. Ghost D_Box
Ghost D_Box

Intermediate
stop-loss
Intermediate
stop-loss

The Darvas box and trailing-stop approach is


designed to keep you in a long-term steady
Modern D_Box 1 Intermediate
trend, since the stop-loss level remains unal- stop-loss
tered for extended periods in the face of sub-
stantial price moves. But in the volatile mar- F1
kets of today, this kind of strategy could ex- Stop-loss 1
pose you to an unexpectedly high level of risk.

GTE TOOLBOX
To bring this classic trading style into modern
markets, I made four modifications. Each modi-
fication is consistent with the underlying logic
FIGURE 1: BOX STACKING. Here, ghost D_Boxes are used as a volatility stop-loss solution. Note how
of the Darvas method.
the trailing stops are based on the height of the last box.

MODERN DARVAS RULES


The new rules are shown in bold:
The most significant change is using the close to initiate
■ Trade is initiated by a new high for the trade entries and exits. Although this is only a minor change,
rolling 12- or six-month period. it does substantially increase the reliability of Darvas-style
trading in modern markets.
■ All entry decisions are based on the high of the
Since the Darvas trading approach was developed in a
price series.
market where high volatility was unusual, the original ap-
■ All exit decisions are based on the close of proach used the bottom of the most recent D_Box as a stop-loss
the series. point. The stop-loss point was only raised after a new D_Box
■ Entry action is triggered by the first trade at the had been formed. The stop-loss is lifted upward on a regular
trigger price. basis and does not lag far behind the current price action.
■ Exit action is managed on the day after the In modern markets, prices often move upward very quickly
trigger close. in a typical momentum-driven sharp trend. There is no threat
to the underlying trend in this action, but the speed of the
■ Action is triggered by the close.
move is not adequately managed using the Darvas stop-loss
■ Stop-loss calculation uses ghost boxes where approach. To accommodate for this, I developed a “ghost”
necessary to handle modern volatility. D_Box (Figure 1).

Copyright (c) Technical Analysis Inc.


Stocks & Commodities V. 23:6 (16-22): Something Darvas, Something New by Daryl Guppy

IN WITH THE NEW DARVAS TRADING MODIFICATIONS


The ghost box uses the height of the last D_Box, measured in
cents, to capture the current volatility of the stock. If a new
D_Box does not develop quickly, you use a stepped trailing
stop-loss based on the height of the last box.
To understand the reasoning behind using a ghost box, let’s Price Classic
return to the original D_Box calculation, which essentially New high
establishes the three-day bullish range — the top of the box — for the year
and the three-day bearish range — the bottom of the box.
The solution uses the most recent calculation of these Mid-Trend
New high
combined ranges, which is easily identified by the most recent for six months
D_Box. The height of this D_Box is an important guide Breakout
because it captures the bullish and bearish range. This range Second D_Box after
goes upward above the existing D_Box as prices move. This breakout from downtrend
is done by simply duplicating the box and stacking it on top of
the previous valid D_Box. This captures the permissible range
of price activity. FIGURE 2: DARVAS TRADING MODIFICATIONS. There is one modifi-
cation where the trade is initiated by the second valid D_box after the
Each new ghost D_Box is activated by a close above the initial downtrend breakout.
value of the previous ghost box. It is a useful calculation point
that provides a margin of safety when changing the stop-loss
point. If we stay too close to bullish activity, we may get of the downtrend breakout. So you need to look for an entry
shaken out of the trend trade too early. point where there is greater confirmation the new breakout is
likely to turn into a trend. You cannot apply the Darvas
DOWNTREND DARVAS method until the downtrend breakout has been signaled,
The classic Darvas trading technique is well suited to bull perhaps by a price and volume surge. Thus, you use the high
markets. It is less suited to markets that have taken a tempo- of this initial rally to set the top of the first Darvas box and
rary shock and that offer many downtrend reversal entry then set the bottom using the classic rules. The alert signal
opportunities. The downtrend breakout Darvas technique is does not come until prices break above the initial high of the
modified to trade in these environments. By modifying the first box.
technique further, the approach can be applied to young bull Figure 3, which is a chart of Singapore-listed Giant Wire-
markets. This is not true downtrend breakout trading, but it less Technologies, Ltd., shows a successful application of
does help you identify strong young trends. The base modern this downtrend breakout trading. As soon as the top and
rules remain the same, but one is added (shown in bold). bottom of the second Darvas box are confirmed, aggressive
The breakout rules are: traders use this D_Box breakout signal as an early entry into
new uptrends. This allows greater participation in the devel-
■ Trade is initiated by the second valid D_Box oping trend. Conservative traders prefer to wait for the
after the initial downtrend breakout (Figure 2). breakout signal from the second D_Box, since this increases
■ All entry decisions are based on the high of the their confidence in the stability of the new trend. The bottom
price series. of the second D_Box is now the stop-loss point and there is
■ All exit decisions are based on the close of the a better probability of any price fall finding some nearby
series. support. This makes it easier to implement the stop-loss
■ Entry action is triggered by the first trade at the strategy.
trigger price.
■ Exit action is managed on the day after the trigger OLD AND NEW
close. Action is triggered by the close. Even though the Darvas technique can be applied in downtrend
■ Stop-loss calculation uses ghost boxes where nec- breakout trading, it is not successful in all cases. It works very
essary to handle modern volatility. well in uptrends that continue, and also provides a useful
stop-loss strategy—but not if the trend breaks and slips into
Since Darvas trading is based on new 12-month strength a prolonged sideways pattern. The Darvas approach can be
and bullish breakouts, it is not designed to work with applied to trending stocks, but it does not in itself confirm the
downtrend breakout trading. Once you move into smaller stock will trend after the downtrend breakout.
time frames and apply the technique to breakouts, its reliabil- The search for a valid Darvas box starts with a new high for
ity is reduced. So why not modify it using six-month highs as the selected period. The classic Darvas approach uses a new
a starting point? 12-month high. This is a good tactic for a strong and estab-
By applying the Darvas technique to a downtrend breakout, lished bull market and has a good level of reliability of around
it is likely that you won’t get into the trade close to the point 80%. However, in modern markets, using a new high for the
Copyright (c) Technical Analysis Inc.
Stocks & Commodities V. 23:6 (16-22): Something Darvas, Something New by Daryl Guppy

GIANT WIRELESS DAILY CHART

D_Box 7

D_Box 6
Entry signal D_Box 5
Alert signal

D_Box 4

D_Box 3

D_Box 2 D_Box 3
D_Box 1

Box confirmation entry

FIGURE 3: USING DARVAS FOR BREAKOUT TRADING. Giant Wireless (GWTRF) successfully applied modern Darvas trading to an emerging trend, earning an 80%
return in eight months.

six-month period also returned good results with an accept- brokerages. He is the author of seven books and publishes a
able level of reliability of around 70%, placing this technique weekly newsletter that applies technical charting analysis to
in the select group of very successful trend approaches. these markets. He also runs trading workshops in Australia,
Asia, China, and the US. He may be contacted via his website
at www.guppytraders.com.
Even though the Darvas technique
can be applied in downtrend RELATED READING
Darvas, Nicholas [1960]. How I Made Two Million Dollars
breakout trading, it is not successful In The Stock Market, American Research Council.
in all cases. Ford, Matthew. MetaStock formulas, Tutorials In Applied
Technical Analysis, Guppytraders.com.
Very aggressive applications of the Darvas technique use a Guppy, Daryl [2005]. “Darvas-Style Trading,” Technical
new high for a three-month period. But I found this to be a less Analysis of STOCKS & COMMODITIES, Volume 23: May.
successful application, with reliability shrinking to between _____ [2004]. Trend Trading, John Wiley & Sons.
50% and 60%. In strong bear markets, the failure rate is much _____ [2003]. Better Stock Trading, John Wiley & Sons.
higher, since there are generally many more false downtrend • www.guppytraders.com
breakouts in bearish conditions. The technique can be used to
See our Traders’ Tips section for program code implementing
capture early downtrend breakouts and developing trends, but
Daryl Guppy’s technique. For code found in this article, see our
there are many other more effective techniques for trading in Subscriber Area of www.Traders.com. Login requires your sub-
these conditions. scriber number.
S&C
Daryl Guppy is active in Australian, Asian, and Chinese
markets, and provides certified professional training for

Copyright (c) Technical Analysis Inc.


Stocks & Commodities V. 23:6 (16-22): Something Darvas, Something New by Daryl Guppy

Bullish Bullish Bearish


AUSTRALIAN PHARMACEUTICALS Sell

Sell

D_Box with only 4 bars Buy

Buy

METASTOCK
SIDEBAR FIGURE 1: METASTOCK EXPERT ADVISOR FOR MODIFIED DARVAS TECHNIQUE

METASTOCK FORMULAS FOR DARVAS TECHNIQUE


A MetaStock expert advisor developed by technician Mat- Name of Indicator: Darvas Box End
thew Ford implementing the modified Darvas technique was Formula:
originally published in my weekly newsletter, Tutorials In end:=BarsSince(Fml(“New Darvas High”)) <
Applied Technical Analysis. These free formulas can be BarsSince(Ref(Fml(“New Darvas Low”),-1));
def:=IsDefined(end) AND IsUndefined(Ref(end,-1));
downloaded from www.guppytraders.com under the Trend
(def AND Ref(def,-1)=0)+ (end AND Fml(“New Darvas Low”))
Trading Formula button.
Name of Indicator: Darvas Box High
Name of Indicator: Darvas High Formula:
Formula: dbe:=Fml(“Darvas Box End”);
Periods:=100; { this is the only place the number of periods is dbhi:=If(dbe AND IsDefined(Ref(dbe,-1)), Fml(“Darvas High”),
set} PREVIOUS);
If((Ref(H,-3) >= Ref(HHV(H,Periods),-4)) If(dbhi=0,H+0.0000001,dbhi)
AND Ref(H,-3) > Ref(H,-2)
AND Ref(H,-3) > Ref(H,-1) Name of Indicator: Darvas Box Low
AND Ref(H,-3) > H, Formula:
Ref(H,-3), PREVIOUS ); dbe:=Fml(“Darvas Box End”);
bl:=If(dbe AND IsDefined(Ref(dbe,-1)), Fml(“Darvas Low”),
Name of Indicator: New Darvas High PREVIOUS);
Formula: If(bl=0,L-0.0000001,bl)
dh:= Fml(“Darvas High”);
def:=IsDefined(dh) AND IsDefined(Ref(dh,-2)); Name of Indicator: Darvas Poss Sell
(def AND Ref(def,-1)=0) + (dh AND Ref(dh,-1)<>dh); Formula:
dsl:=L < Fml(“Darvas Box Low”);
Name of Indicator: New Darvas Low def:=IsDefined(dsl) AND IsDefined(Ref(dsl,-1));
Formula: (def AND Ref(def,-1)=0)+(dsl AND (Ref(dsl,-1)<dsl))
dh:= Fml(“Darvas High”);
ndl:=(Ref(L,-3) < Ref(L,-2) AND Ref(L,-3) < Ref(L,-1) Name of Indicator: Darvas Sell
AND Ref(L,-3) < L AND Ref(H,-2) < dh Formula:
AND Ref(H,-1) < dh AND H < dh); sell:=BarsSince(Fml(“Darvas Box End”)) <
def:=IsDefined(dh) AND IsDefined(Ref(dh,-1)); BarsSince(Fml(“Darvas Poss Sell”));
(def AND Ref(def,-1)=0)+ (ndl AND (Ref(ndl,-1) < 1)) def:=IsDefined(sell) AND IsDefined(Ref(sell,-1));
((def AND Ref(def,-1)=0) + (sell = 0 AND Ref(sell,-1)=1))
Name of Indicator: Darvas Low
Formula: Name of Indicator: Darvas Buy
If( Fml(“New Darvas Low”) , Ref(L,-3), PREVIOUS); Formula:

Copyright (c) Technical Analysis Inc.


Stocks & Commodities V. 23:6 (16-22): Something Darvas, Something New by Daryl Guppy

dc:= Fml(“darvas sell”); Sell: down arrow graphic, formula Fml(“Darvas Sell”)
{ change the following line to H>Fml(“Darvas Box Hi”) .. for
Classic Darvas} Alerts tab
db:= C>Fml(“Darvas Box Hi”) AND Buy: formula Fml(“Darvas Buy”) and some suitable text message
(BarsSince(Fml(“darvas box end”)) < BarsSince(Fml(“darvas such as “buy on next open”
sell”))); Sell: formula Fml(“Darvas Sell”) and some suitable text message
dto:=If(db AND PREVIOUS=0,1,If(dc,0,PREVIOUS)); such as “sell on next open”
dto AND (Ref(dto,-1) =0)
Sidebar Figure 1 on page 4 demonstrates the Darvas
Using these formulas, you can create a new MetaStock MetaStock Expert Advisor using the modern modification of
Expert Advisor for the Darvas technique: only buying on a close above the box. Darvas Box High (the
upper thin line) and Darvas Box Low (lower thin line) have
Trends tab
Bullish C >= Fml(“Darvas Box Low”); been added to this chart. Remember, these indicators only
Bearish C < Fml(“Darvas Box Low”); move up after a valid Darvas box has been formed. The
actual Darvas box is drawn to the left, by hand, as shown by
Symbols tab the thick black box.—DG
Buy: up arrow graphic, formula Fml(“Darvas Buy”)

Copyright (c) Technical Analysis Inc.

You might also like