Latest News

February 4: Follow new BandBreak5 system HERE!!!

Follow my S&P500 and FOREX EUR/USD weekly forecast.

My BBS Trading expert was presented at the 2011 Trading Forum in Denver. More information?

Trade with my DSTfx01 forex robot, (or BandBreak5) watch the VIDEO.

View an excerpt of my last 1st, 2nd and 3rd article about the put/call ratio published in S&C magazine.

MetaStock formulas.

MetaTrader formulas.

Best offer "Capturing Profit with Technical Analysis"!

WINNER "Favorite Article" in the S&C Readers' Choice Award 2010 and 2011. Thank You!

AXIOM business books awards, bronze medal for my book! Thank You!

My YouTube videos

Sylvain Vervoort

SEARCH Stocata
Book Store

Ttitle, author, item# or ISBN

Capturing Profit with Technical Analysis

WINNER favorite article 2010 and 2011 Readers' Choice Award.

readers choice awards

AXIOM Business Books Awards, bronze medal.

AXIOM award

 

   special offers

  Facebook fan page

 

 


 

Stock Market Proprietary Indicators Part 2

Price Smoothing

If you want to determine the short-term market direction, there shouldn’t be any delay when you smooth the price trend.

You can accom­plish this using heikin-ashi recalculated prices and a short-term triple exponential moving average (TEMA).

Special offer: "Capturing Profit with technical Analysis"

 

In MetaStock® code, you can do this using the following formula:
haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
haCl:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/4;
haC:=Tema(haCl,5);

Figure 8.4 shows the effect of this smoothing technique.

Effect of TEMA on heikin ashi closing average smoothing

Figure 8.4: Effect of TEMA on heikin-ashi closing average smoothing technique.

Volume Smoothing

volume smoothing techniques

Figure 8.5: Result of the volume smoothing techniques.


In figure 8.5, taking a look at the volume bars of Dow Chemical at the top of the chart, you can see that determining the short-term volume trend is no simple task. The first action item is to limit single extreme-volume counts. So we compare the volume with a medium-term simple moving average of the previous volume, and limit an extreme value to no more than twice that moving average.
In MetaStock code, it can be done this way:
vave:=Ref(Mov(V,40,S),-1);
vmax:=vave*2;
vc:=If(V<vmax,V,vmax);

The second action item is to smooth without creating delays. One of the better methods of tracking the short-term trend of volume is by linear regression. You can smooth the linear regression slope with a short-term TEMA average, but the result will still not be smooth enough. So, in the final step, we maintain the previous calculated result over a period of two bars. The final result of this volume-trend smoothing can be seen as a digital value below the volume bars in figure 8.05.
In MetaStock code, it is done this way:
vtr:=Tema(LinRegSlope(vc,8),8);
Alert(vtr >= Ref(vtr,-1),2);

The arrows on the price bars in figure 8.5 correspond to the changes in price trend. A vertical up arrow represents vol­ume uptrend with price uptrend, while a vertical down arrow represents volume uptrend with price downtrend. The sideways up arrow represents a downtrend in volume during a correc­tion phase in a price downtrend. The sideways downward arrow represents a volume downtrend during a correction phase in a price uptrend. As you can see, this corresponds quite well with the short-term market direction.

SVAPO “Short-term Volume and Price Oscillator”

(I like the term SVAPO because it starts with my initials!)

SVAPO oscillator in action

Figure 8.6: SVAPO oscillator in action. Turning points in SVAPO gives profitable trades.

In the figure 8.6, you can see the SVAPO oscillator in action on the same chart as on the previous figure. Just using the turning points in the oscillator yields profitable trades.

In addition to calculating and smoothing the heikin-ashi closing average and smoothing the volume, we also include a minimum required price change before any volume is taken into consideration. This minimum change often will not be reached when the price is making candlestick doji’s. This is the price area with uncertainty, which is why it is probably best not to take the volume of these bars into consideration. Because volume often counts in millions, we divide the result by a medium-term average of the volume. This brings the oscillator swing somewhere around a more readable +/-10.

Since tops and bottoms of the SVAPO oscillator are not a fixed value, it is a good idea to have a reference to determine if the oscillator is beyond its normal upper or lower boundary; therefore, I added standard-deviation lines from the mean, with 1.5 at the upper end and 1.3 at the lower end, together with the zero reference.

This is the complete SVAPO MetaStock formula:
{calculate the heikin-ashi closing average haCl and get the input variables}
haOpen:=(Ref((O+H+L+C)/4,-1) + PREV)/2;
haCl:=((O+H+L+C)/4+haOpen+Max(H,haOpen)+Min(L,haOpen))/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<vmax,V,vmax);
{Basic volume trend}
vtr:=Tema(LinRegSlope(V,period),period);
{SVAPO result of price and volume}
SVAPO:=Tema(Sum(If(haC>(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 SVAPO defaultsThe defaults used for SVAPO are shown in figure 8.7 with a period of eight bars, a minimum per thousand price change of one; a standard deviation of 1.5 on the upper side; and 1.3 on the lower side, with 100 bars as the standard-deviation look back period.
 



Figure 8.7: The SVAPO defaults.



These defaults work well in all time frames, from min­ute and hourly charts to daily, weekly, and monthly charts. If you want very short-term signals, you can go as low as a 3-bar SVAPO.

Now that you know how to create SVAPO, I will discuss the SVAPO trading rules, entry/exit signals, and how to determine price targets.

Proprietary Technical Indicators Next -Previous -Part 1 -Part 2 -Part 3 -Part 4 -Part 5

STOCATA Stocks Technical Analysis HOME

 
Find a Stock ticker symbol, enter the ticker and find a chart, news, fundamentals and historical quotes here.

 

Enter Ticker Symbol:



 

 

 

 
Copyright © 2007 Stocata.org, All rights reserved.