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.

No comments:

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...