October 3

5 comments

Better To Buy Strength or Weakness?

By Jeff Swanson

October 3, 2016

EasyLanguage, market studies, mean reversion, S&P Emini, stock index futures

Emotionally it’s a lot easier to buy on strength than to buy on weakness. Buying into a falling market feels unnatural. Your instincts warn that price may continue to fall resulting in lost capital. On the other hand buying when the market makes new highs feels more natural. Price is moving in your direction and the sky is the limit! However, with so many other aspects of trading what feels natural or easy is often the opposite of what you should be doing.

Trading psychology can make or break not only your mental state-of-mind but your trading account. In this post I’m going to compare these two different trading strategies on the S&P E-mini futures market and see which one produces better results. That is, we will look at a weak-trending bull market and a strong-trending bull market.

Trading Environment

Our strategy will be coded in EasyLanguage and tested on the E-mini going back to 1997. All the tests within this article are going to use the following assumptions:

  • Starting account size of  $25,000.
  • Dates tested are from 1997 through August 31, 2016.
  • A single contract will be traded
  • The P&L is not accumulated to the starting equity.
  • There are no deductions for commissions and slippage.
  • There are no stops or targets
  • Trades are executed on a daily bar chart

To compare buying into strength vs buying into weakness, two simple trading strategies will be created. Both strategies will go long only. All open positions are held for five days only.

Buy Into Strength – Buy New Highs

First let’s create a simple strategy that will study buying into strength. To do this we will look for three consecutive higher closes. At that point we will buy the open of the next bar.  Based on this pattern we are testing the market’s ability to follow through with continued higher closes. In short, we are buying into short-term strength in hopes it will continue into the near future. Below are the results of executing this test.

The strategy is far from profitable as the equity curve spends most of its time in negative territory. What this suggests is that short term bursts of strength are soon followed by falling prices. Remember, after we buy we only hold our position for five days and sell. It seems when we sell, price is often lower than when we bought.

Buy Into Weakness – Buy Pullbacks

Now let’s look at buying into pullbacks. We will use the same premise as buying into strength, but look to buy into a falling market.  That is, we will look for three consecutive lower closes. A lower close is a closing price which is lower than yesterday’s closing price. At that point we will buy the open of the next bar. This strategy will represent our buying into weakness.

What a difference! This strategy equity graph looks completely different and suggests that short-term weakness is often followed by price moving higher. If the two equity graphs are not enough to prove this point, let’s compare strategy performance .

ES Buy Strength or Weakness

Buy Strength

Buy Weakness

Net Profit

-$9,650

$61,300

Profit Factor

0.94

1.44

Total Trades

292

239

%Winners

56%

57%

Avg. Trade Net Profit

-$33.05

$256.49

Annual Rate of Return

-1.74%

6.60%

Sharpe Ratio

0.04

0.14

Max Drawdown (Intraday)

-$46,000

-$15,838

It’s important to remember these strategies are not trading systems per say. For example, both of these strategies have no stops so you would not blindly trade them. Think of these strategies as market indicators designed to highlight market behavior which might lead to a profitable trading edge. In this case there appears to be a significant bullish bias when buying into weakness as opposed to buying into strength.

How Stable Is Lookback Period?

The two strategies we tested above both used a 3-day lookback period and hold the position five days before closing it. Maybe this is a fluke? What does this test look like over different lookback periods? Are different lookback periods still profitable? While I want the holding period to remain short (five days) to mimic a short-term trading system, let’s look at different lookback periods and see if our strategy will remain profitable of several different values.

The first graph below shows buying into short-term strength with a lookback period of one through 10 days.

Notice the first two days after three consecutive days up produce some profit. But even then, the profit over such a long test period is not significant. Most of the bars show negative profit or profit around zero. In short, this does not appear to hold a market edge.

The next graph below shows buying into short-term weakness with a lookback period of one through 10 days. Notice with a loookback period between one and five we have profitable results. This shows some stability with the market behavior. However, beyond five days (one trading week), price often shows weakness.

So, it appears our short-term lookback period when buying into weakness has a nice profitable region and gives more credence to the market behavior of buying into weakness. The optimal lookback period appears to be four days. After four consecutive lower closes price can often have a strong rebound.

The idea of buying into short-term weakness seems to still hold merit for the S&P. The market edge appears for the 1-5 consecutive down days in both the futures and equity markets. This type of a market edge can lead to building a profitable trading system. Adding a market regime filter, dynamic stop, position sizing model and maybe a dynamic exit could turn this into a winning system.

What About Other Markets?

Lets take a look at some other popular markets. Lets first start with two other major stock indexes, the DOW and NASDAQ.

YM Buy Strength or Weakness

Buy Strength

Buy Weakness

Net Profit

$2,255

$8,590

Profit Factor

1.02

1.10

Total Trades

234

161

%Winners

56%

50%

Avg. Trade Net Profit

$9.64

$53.35

Annual Rate of Return

0.61%

2.08%

Sharpe Ratio

0.04

0.04

Max Drawdown (Intraday)

-$25,900

-$16,500

NQ Buy Strength or Weakness

Buy Strength

Buy Weakness

Net Profit

-$3,805

$109,250

Profit Factor

0.98

2.00

Total Trades

273

220

%Winners

55%

58%

Avg. Trade Net Profit

-$13.94

$496.59

Annual Rate of Return

-0.83%

9.89%

Sharpe Ratio

0.08

0.21

Max Drawdown (Intraday)

-$44,405

-$19,850

Now lets turn our attention to currency futures

EC Buy Strength or Weakness

Buy Strength

Buy Weakness

Net Profit

$33,393

-$18,069

Profit Factor

1.17

0.90

Total Trades

220

192

%Winners

54%

55%

Avg. Trade Net Profit

$151.79

-$94.11

Annual Rate of Return

5.62%

-3.60%

Sharpe Ratio

0.09

0.08

Max Drawdown (Intraday)

-$22,613

-$62,413

Finally, lets take a look at some other popular futures. First silver and gold.

SI Buy Strength or Weakness

Buy Strength

Buy Weakness

Net Profit

-$90,335

$22,395

Profit Factor

0.77

1.09

Total Trades

225

174

%Winners

52%

51%

Avg. Trade Net Profit

-$401.49

$128.71

Annual Rate of Return

-10.12%

4.23%

Sharpe Ratio

0.05

0.08

Max Drawdown (Intraday)

-$130,000

-$53,690

GC Buy Strength or Weakness

Buy Strength

Buy Weakness

Net Profit

-$8,540

$35,960

Profit Factor

0.96

1.24

Total Trades

220

176

%Winners

55%

53%

Avg. Trade Net Profit

-$38.82

$204.32

Annual Rate of Return

1.95%

5.90%

Sharpe Ratio

0.13

0.09

Max Drawdown (Intraday)

-$50,120

-$49,250

Finally, oil and U.S. 30-Year Treasuries.

US Buy Strength or Weakness

Buy Strength

Buy Weakness

Net Profit

-$625

$29,250

Profit Factor

1.00

1.23

Total Trades

234

187

%Winners

50%

52%

Avg. Trade Net Profit

-$2.67

$154.42

Annual Rate of Return

0.16%

5.13%

Sharpe Ratio

0.01

0.09

Max Drawdown (Intraday)

-$34,593

-$14,375

CL Buy Strength or Weakness

Buy Strength

Buy Weakness

Net Profit

-$71,810

-$75,250

Profit Factor

0.76

0.75

Total Trades

202

197

%Winners

50%

49%

Avg. Trade Net Profit

-$355.50

-$381.98

Annual Rate of Return

-8.98%

-9.21%

Sharpe Ratio

-0.11

-0.08

Max Drawdown (Intraday)

-$91,200

-$132,340

Jeff Swanson

About the author

Jeff has built and traded automated trading systems for the futures markets since 2008. He is the creator of the online courses System Development Master Class and Alpha Compass. Jeff is also the founder of EasyLanguage Mastery - a website and mission to empower the EasyLanguage trader with the proper knowledge and tools to become a profitable trader.

  • Hi Jeff,
    The performance of these two strategies are afected by markets conditions. A structural shift from different regime change complitely these results.
    For instance these test i suppose was conduct on a sample data from 2000-2016 on the E- mini S&P500.
    Try to change period (i.e. 1980-2000) and look what’s happen.
    So it’s a good idea to shift between Weekness to Strengh and Viceversa when structural conditions in markets, changes.

    • I agree the market dynamics changed around 2000. Prior to 2000 buying into strength did better – from what I recall. I wrote an article on that very subject years ago but, I can’t seem to find it. In any regard, buying weakness still maintains a clear edge 16 years later. If/When it changes, so must the trader and his systems.

  • I would write the code for the condition in a simpler manner (if I may suggest)

    if summation(iff(close>close[1],1,0),3)=3 then buy…

    of course you can change that 3 as your input

  • […] Better To Buy Strength or Weakness? [System Trader Success] Emotionally its a lot easier to buy on strength than to buy on weakness. Buying into a falling market feels unnatural. Your instincts warn that price may continue to fall resulting in lost capital. On the other hand buying when the market makes new highs feels more natural. Price is moving in your direction and the sky is the limit! However, with so many other aspects of trading what feels […]

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

    Learn To Code & Build Strategies
    Using EasyLanguage. 

    >