Wednesday, April 30, 2008

Sell In May And Go Away

There is a market saying that one should sell in May and go away. Statistically, May to October period is not a good time to be in the market.

If you look at the STI index, the period from May to October has underperformed the period from October to May.

The probability of win if you buy in May and exit in October is 50%. However there were 5 periods with double digit losses. For $10,000 invested in the beginning of 1988, the account would have shrunk to $4,050.

Entry DateEntry PriceExit DateExit Price% ChangeAccount Value
5/3/1988968.9010/3/19881023.105.59$10559
5/2/19891266.0010/2/19891375.308.63$11470
5/2/19901458.8010/1/19901103.40-24.36$8676
5/2/19911557.2010/2/19911357.00-12.86$7560
5/4/19921499.0010/1/19921351.00-9.87$6814
5/3/19931783.6010/1/19932015.3012.99$7699
5/3/19942296.5010/3/19942334.401.65$7826
5/2/19952070.1010/2/19952120.002.41$8015
5/2/19962406.2010/1/19962175.70-9.58$7247
5/2/19972004.3010/1/19971954.80-2.47$7068
5/4/19981494.9810/1/1998938.08-37.25$4435
5/3/19991892.4310/1/19992021.146.8$4737
5/2/20002172.0110/2/20001970.93-9.26$4298
5/2/20011735.7510/1/20011329.54-23.4$3292
5/2/20021737.5410/1/20021345.69-22.55$2550
5/2/20031278.5310/1/20031621.0626.79$3233
5/3/20041841.3910/1/20041986.967.91$3489
5/3/20052146.0410/3/20052302.037.27$3743
5/2/20062613.8710/2/20062571.45-1.62$3682
5/2/20073395.5710/1/20073734.949.99$4050


The picture reverses if you buy in October and exit in May. The probability of win increases to 70%. For $10,000 invested in the beginning of 1988, the account would have grown to $81,283.

Entry DateEntry PriceExit DateExit Price% ChangeAccount Value
10/3/19881023.105/2/19891266.0023.74$12374
10/2/19891375.305/2/19901458.806.07$13125
10/1/19901103.405/2/19911557.2041.13$18523
10/2/19911357.005/4/19921499.0010.46$20461
10/1/19921351.005/3/19931783.6032.02$27013
10/1/19932015.305/3/19942296.5013.95$30781
10/3/19942334.405/2/19952070.10-11.32$27296
10/2/19952120.005/2/19962406.2013.5$30982
10/1/19962175.705/2/19972004.30-7.88$28540
10/1/19971954.805/4/19981494.98-23.52$21828
10/1/1998938.085/3/19991892.43101.73$44033
10/1/19992021.145/2/20002172.017.46$47318
10/2/20001970.935/2/20011735.75-11.93$41673
10/1/20011329.545/2/20021737.5430.69$54462
10/1/20021345.695/2/20031278.53-4.99$51744
10/1/20031621.065/3/20041841.3913.59$58776
10/1/20041986.965/3/20052146.048.01$63484
10/3/20052302.035/2/20062613.8713.55$72086
10/2/20062571.455/2/20073395.5732.05$95190
10/1/20073734.94OpenOpen-14.61$81283

Sunday, April 27, 2008

SVAPO Case Study - Synear Food

This is the application of SVAPO indicator on Synear Food. The simple trading rules can be found in my earlier post on SVAPO Indicator



The trading record is given below:

Entry DateEntry PriceExit DateExit Price% ChangeBars HeldDraw Down %Max Gain %Bars Held
1/31/20071.82/5/20071.968.89308.88893
2/14/20072.12/21/20072.02-3.813-8.09520.95243
2/22/20072.122/27/20072.38.493-0.47178.49063
3/8/20071.753/13/20071.866.293-1.14296.85713
3/20/20071.793/23/20071.948.383011.73183
3/29/20071.914/3/20071.973.143-0.52366.80633
4/25/20071.894/30/20071.90.53304.76193
6/4/20071.766/7/20071.97.95309.65913
6/27/20071.857/2/20071.81-2.163-3.78381.62163
8/21/20071.658/24/20071.681.823-7.27272.42423
9/26/20071.6210/1/20072.1130.253030.24693
11/15/20071.9511/20/20071.7-12.823-12.820503
11/23/20071.6511/28/20071.745.453-4.84855.45453
12/19/20071.5812/26/20071.633.163-5.06333.16463
1/15/20081.51/18/20081.35-103-140.66673
1/22/20081.151/25/20081.215.223-14.78265.21743
1/25/20081.211/30/20081.2103-2.47939.09093
2/6/20081.072/13/20081.0703-5.60754.67293
2/15/20081.012/20/20081.1513.863-0.990121.78223
2/29/20080.623/5/20080.678.063-0.806511.29033
3/6/20080.6453/11/20080.515-20.163-21.70541.55043

There were a total of 21 trades with 14 winners and 7 losers.

Thursday, April 24, 2008

SVAPO Metastock Code

There is some problem when I try to paste the metastock code into the blog site. Some of the characters went missing. So I am posting the screenshot of the metastock formula.


You will need to do some typing to see this indicator in action.

Wednesday, April 23, 2008

SVAPO Indicator On Yanlord

SVAPO is an indicator presented by Sylvain Vervoort in the Nov 07 issue of the Stocks & Commodities magazine.

This indicator combines price and volume information into a Short-Term Volume And Price Oscillator.

The Metastock code for the indicator is given below:

{calculate the heikin ashi closing average haCl and get the input variables}

haO:=(Ref((O+H+L+C)/4,-1) + PREV)/2;

haCl:=((O+H+L+C)/4+haO+Max((O+H+L+C)/4,Max(H,haO))+Min((O+H+L+C)/4,Min(L,haO)))/4;

period:= Input("SVAPO period :", 2, 20, 8);

cutoff:= Input("Minimum %o price change :",0,10,1);

{Inputs for standard deviation bands}

devH:= Input("Standard Deviation High :", 0.1, 5, 1.5);

devL:= Input("Standard Deviation Low :", 0.1, 5, 1.3);

stdevper:= Input("Standard Deviation Period :", 1, 200, 100);

{Smooth HaCl closing price}

haC:=Tema(haCl,period/1.6);

{Medium term MA of Volume to limit extremes and division factor}

vave:=Ref(Mov(V,period*5,S),-1);

vmax:=vave*2;

vc:=If(V(Ref(haC,-1)*(1+cutoff/1000)) AND Alert(vtr>=Ref(vtr,-1),2), vc, If(haC<(Ref(haC,-1)*(1-cutoff/1000)) AND Alert(vtr>Ref(vtr,-1),2),-vc,0)),period)/(vave+1),period);

devH*Stdev(SVAPO,stdevper);

-devL*Stdev(SVAPO,stdevper);

zeroref:=0;

zeroref;

SVAPO;


The highlights of this indicator are as follows:


  1. In an uptrend market, price and volume are moving up. When calculating the oscillator, volume will be added

  2. In a downtrend market, price goes down while volume goes up. When calculating the oscillator, volume will be subtracted.

  3. When volume is moving down and price is in consolidation phase moving in either direction, volume will not be used to calculate the oscillator.

  4. Additional price and volume smoothing is done using triple exponential moving average (TEMA).

Let’s look at Yanlord as a case study.

Entry Rules :

  1. SVAPO (Red line) must be below the lower boundary (Green line)

  2. Today’s SVAPO must be greater than yesterday’s SVAPO

  3. If condition 1 and 2 are true, buy at tomorrow’s opening price.

Exit Rules:

  1. Exit the trade after 3 days.

The trading record is as follows:

Entry DateEntry PriceExit DateExit Price% ChangeBars HeldDraw Down %Max Gain %
11/23/20061.7311/28/20061.9512.723019.0751
1/10/20072.461/15/20072.43-1.223-3.65850
1/24/20072.361/29/20072.19-7.23-8.89830.8475
2/14/20072.082/21/20072.132.4303.8462
3/6/20071.783/9/20071.959.55309.5506
3/9/20071.953/14/200722.563-2.56416.1538
4/26/20072.345/2/20072.381.713-1.70942.1368
7/31/20073.248/3/20073.260.623-1.85193.7037
8/3/20073.268/8/20073.24-0.613-2.4544.2945
8/21/20072.798/24/20072.945.38307.5269
9/21/20073.29/26/20073.220.623-2.51.25
10/19/20073.710/24/20073.62-2.163-9.18920
11/15/20073.711/20/20073.42-7.573-7.56761.0811
1/11/20082.771/16/20082.65-4.333-6.49821.083
1/25/20082.481/30/20082.64.84307.6613
3/11/20082.083/14/20081.95-6.253-9.13469.6154
3/25/20081.83/28/20082.2826.673027.7778
4/23/20082.31OpenOpen4.331-1.73166.4935

There are a total of 18 trades with 11 winners and 7 losers.

Tuesday, April 22, 2008

STI Update

STI index broke closed at 3171 yesterday. It managed to break through 3200 but it could not stay above it.



Looking at the chart, the index needs to stay above 3130 which is the support line. This is also where the neckline resides. The index tried to break out of this neckline in early Apr but failed. It only managed to break this level after a pullback to 3035.

The index has moved from a low of 2745 on 17 Mar 08 to a high of 3181 on 7 Apr 08. Based on Fibonacci Retracement, the objective point for STI is at 3471.

Sunday, April 20, 2008

Dow Inverse Head And Shoulder

Dow broke through 12800 points on Friday boosted by better earnings result from Google which rose about 20%.



The Dow chart is looking like a breakout of an inverse head and shoulder pattern. During the beginning of the week, it looked as if the right shoulder would not be formed. However due to better earning results, the index managed to claw back and break out of the 12800 level which is where the neckline resides (point C).

The price objective based on this pattern is (B-A+C) which gives an objective level of 13950.

Sunday, April 13, 2008

Dow And VIX Update

On Friday's trading session, the Dow Industrial Average closed down 256.56 points at 12325.42. General Electric shocked investors with lower-than expected earnings and a profit warning that wiped $46.9 billion off its value and sent the overall market slumping.

The VIX closed at 23.46.




If you look at the VIX chart, you can draw a trend line ("Blue Line") connecting the bottom formed on Oct 07, Nov 07 and Apr 08 respectively. These 3 points marked the beginning of significant drop in the Dow Industrial Average ("Red Line").


The VIX is not painting a good picture for trading next week. So do trade with care.

Tuesday, April 8, 2008

COSCO Trend Score Case Study 2

Based on an initial investment of $10,000 dollars, your account would have grown to $130,000 in 4 years.

Entry Date

Entry PriceExit DateExit Price% ChangeAccount
1/2/20040.6153/9/20040.8843.09$14309
3/11/20040.894/27/20040.85-4.49$13667
5/28/20040.86/4/20040.755-5.63$12897
6/7/20040.7656/15/20040.745-2.61$12560
6/30/20040.7758/11/20040.85510.32$13857
9/7/20040.83511/2/20041.0424.55$17259
11/8/20041.1112/7/20041.131.8$17569
12/24/20041.165/3/20051.7550.86$26505
5/5/20051.85/18/20051.69-6.11$24885
6/1/20051.816/3/20051.79-1.1$24612
6/6/20051.828/26/20052.3830.77$32185
9/5/20052.5610/3/20052.55-0.39$32059
11/17/20052.2711/29/20052.311.76$32623
1/6/20062.321/24/20062.31-0.43$32483
3/16/20061.223/23/20061.2-1.64$31950
3/24/20061.234/10/20061.21-1.63$31430
4/11/20061.244/13/20061.22-1.61$30924
4/17/20061.225/16/20061.339.02$33713
7/5/20061.279/12/20061.5219.69$40351
9/15/20061.5712/19/20062.133.76$53974
12/29/20062.323/1/20072.7317.67$63511
3/21/20072.914/17/20072.88-1.03$62857
4/19/20072.94/20/20072.85-1.72$61775
4/27/20072.95/2/20072.83-2.41$60287
6/4/20072.748/8/20074.875.18$105610
9/3/20075.0511/13/20076.834.65$142204
12/12/20076.5512/14/20076.05-7.63$131354
3/31/20083.73OpenOpen-0.8$130303

This result is due to the super bull run that we had for the past 4 years.

COSCO Trend Score Indicator Case Study

This is a case study of trading COSCO based on Trend Score Indicator.

For more information on Trend Score indicator, please refer to my earlier post http://stockstudent.blogspot.com/2008/03/trend-score.html

I have assumed the following trading rules.

Entry (For long trades)
1. Trend Score for today is greater than 5.
2. Trend Score yesterday is less than or equal to 5.
3. If condition 1 and 2 are true, buy at the market open on the next trading day

Exit (For long trades)
1. Trend Score for today is less than 0
2. If condition 1 is true, sell at the market open on the next trading day.

The rules are the same as those used for YangZiJiang case study.

Trading record is as follows:

Entry DateEntry PriceExit DateExit Price% ChangeDraw Down %Max Gain %Bars Held
1/2/20040.6153/9/20040.8843.09054.471544
3/11/20040.894/27/20040.85-4.49-5.056230.337132
5/28/20040.86/4/20040.755-5.63-7.50.6254
6/7/20040.7656/15/20040.745-2.61-2.61442.61446
6/30/20040.7758/11/20040.85510.32-1.935516.12929
9/7/20040.83511/2/20041.0424.55034.131740
11/8/20041.1112/7/20041.131.8-1.80189.909919
12/24/20041.165/3/20051.7550.86-1.724158.620786
5/5/20051.85/18/20051.69-6.11-6.66673.33339
6/1/20051.816/3/20051.79-1.1-2.76240.55252
6/6/20051.828/26/20052.3830.77-0.549542.857154
9/5/20052.5610/3/20052.55-0.39-1.56253.12519
11/17/20052.2711/29/20052.311.76-3.52425.28638
1/6/20062.321/24/20062.31-0.43-51.29312.155212
3/16/20061.223/23/20061.2-1.64-5.73772.4595
3/24/20061.234/10/20061.21-1.63-3.2523.25211
4/11/20061.244/13/20061.22-1.61-2.419402
4/17/20061.225/16/20061.339.02021.311519
7/5/20061.279/12/20061.5219.69-2.362228.346548
9/15/20061.5712/19/20062.133.76046.496862
12/29/20062.323/1/20072.7317.67-2.155230.172440
3/21/20072.914/17/20072.88-1.03-3.78011.718218
4/19/20072.94/20/20072.85-1.72-4.82760.68971
4/27/20072.95/2/20072.83-2.41-2.41380.34482
6/4/20072.748/8/20074.875.18-1.0949111.678847
9/3/20075.0511/13/20076.834.65-2.178262.376250
12/12/20076.5512/14/20076.05-7.63-9.160302
3/31/20083.73OpenOpen-0.8-4.55765.09386

The winning probability is 46%. The average gain for the winning trade is 27% and average loss for the losing trade is 2.6%. The expectation is therefore positive.

Sunday, April 6, 2008

STI Turtle Trading Breakout

Dow closed at 12609.42 on Friday trading session. For the week ending 4 Apr 08, Dow was up 393 points.

STI closed at 3155.56, up 123 points for the week. If you look at the weekly chart for the STI, you can see that it is the 2nd consecutive “White” candle. Both “White” candles closed near the high which is a bullish sign.

The STI also broke through its 20 day high on 2 Apr 08. If you are a breakout player, then you will look to buy at this level.

Let’s take a look at a simple breakout system called Turtle Trading System. This system was popularized by Richard Donchian. It uses 20 day breakout as an entry rule for both long and short trades. The duration of the test is from Apr 1998 to 4 Apr 2008.

Let’s assume the following breakout rules:

Entry

  1. Today’s Close must be greater than the High of the previous 20 trading day
  2. If condition 1 is true, buy at the opening price on the next trading day.

Exit

  1. Today’s Close must be less than the Low of the previous 20 trading day
  2. If condition 1 is true, sell at the opening price on the next trading day.

The trading result is shown below:

Winning trades:

Entry Date

Entry Price

Exit Date

Exit Price

Change %

Draw Down %

Max Gain %

10/13/1998

1,019.80

2/4/1999

1,371.46

34.48

-3.3359

55.0402

3/5/1999

1,441.85

7/23/1999

2,066.30

43.31

-0.4466

55.8713

11/12/1999

2,155.49

1/20/2000

2,265.25

5.09

0

19.8308

10/18/2001

1,420.57

4/10/2002

1,741.56

22.6

-6.8648

30.1583

5/30/2003

1,344.08

9/11/2003

1,561.99

16.21

-0.0699

22.1825

9/25/2003

1,618.40

11/12/2003

1,703.51

5.26

-0.2713

11.5268

12/31/2003

1,765.85

3/12/2004

1,821.54

3.15

-0.0753

8.3291

7/1/2004

1,840.31

10/15/2004

1,945.21

5.7

-0.545

9.8679

1/4/2005

2,069.12

4/19/2005

2,120.51

2.48

-0.3446

5.9044

5/13/2005

2,175.59

10/20/2005

2,239.72

2.95

-1.7471

10.3034

11/21/2005

2,297.42

5/17/2006

2,525.14

9.91

-1.3728

16.0576

7/3/2006

2,435.35

3/6/2007

2,997.61

23.09

-4.7763

36.1702

4/5/2007

3,332.39

7/30/2007

3,467.36

4.05

-1.2336

10.6887

9/6/2007

3,374.01

11/12/2007

3,531.23

4.66

-0.1603

15.772

4/3/2008

3,124.61

Open

Open

0.99

-0.1421

1.6392

Average

12.262

-1.425706667

20.62282667

Losing trades:

Entry Date

Entry Price

Exit Date

Exit Price

Change %

Draw Down %

Max Gain %

3/28/2000

2,220.32

4/18/2000

2,057.69

-7.32

-10.7656

0.6454

4/8/2003

1,322.66

4/25/2003

1,233.67

-6.73

-6.7281

0.9413

11/2/2000

2,035.93

12/22/2000

1,906.38

-6.36

-7.0823

1.6474

1/14/2003

1,386.21

1/30/2003

1,309.24

-5.55

-6.0135

1.45

5/2/2001

1,735.75

7/9/2001

1,647.62

-5.08

-5.6834

1.0716

4/12/2004

1,902.82

4/30/2004

1,810.19

-4.87

-4.868

0.1813

2/1/2001

1,984.43

2/28/2001

1,914.77

-3.51

-3.5103

0.8012

7/20/2000

2,137.35

9/13/2000

2,081.77

-2.6

-6.021

3.9198

11/18/2004

2,048.25

12/10/2004

2,006.12

-2.06

-2.3977

1.3836

Average

-4.8977778

-5.896655556

1.337955556

There were a total of 24 trades with 15 winners and 9 losers. The average win is 12.26% and average loss is 4.89%.

STI Sideway To Bearish Tone

US market had a bad closing last night.  Dow plunged by 243 points.  It seems like we are seeing more volatility recently.  With earnings...