MetaStock™ Zone Forum & FAQ Artykuły Linki Elliott Waves EasyLanguage™ Zone

A B C D E F G H I J K L M N O P R S T U V W Y Z #

Moving Averages with Res. & Sup. by Dennis Tilley
In this issue, Dennis Tilley uses support and resistance to confirm price and simple
moving average (SMA) crossover signals in his article "Moving averageswith resistance and support."

In MetaStock for Windows, you can easily recreate the SMARS indicators discussed in Tilley's article.
First, choose Indicator Builder from the Tools menu in MetaStock 6.5. Next, choose New and enter the following formulas:


Resistance and Support

LookBack := Input("Look Back Periods",1,1000,10);
Resistance :=ValueWhen(1,Cross(Mov(C, LookBack,S),C),HHV(H, LookBack));
Support :=ValueWhen(1,Cross(C,Mov(C, LookBack,S)),LLV(L, LookBack));
Resistance;
Support;

 


Resistance and Support * F

PrCnt:=Input("Percentage",0,100,10);
LookBack:= Input("Look Back Periods",1,1000,10);
Resistance:=ValueWhen(1,Cross(Mov(C,LookBack,S),C),HHV(H,LookBack));
Support:=ValueWhen(1,Cross(C,Mov(C,LookBack,S)),LLV(L,LookBack));
Resistance * ((100-prcnt)/100);
Support * ((prcnt/100)+1);

 

Note: that it's much easier to see the difference between the resistance and support * F lines and the actual resistance and support lines ifyou change the color and/or style of one of them.

To display the indicators in MetaStock 6.5, dragthe moving average indicator from the Indicator QuickList into the price window. Choose simple as the method,enter the time periods and then click OK.

Now, drag the resistance and support indicator from the QuickList into the price window.
You will be prompted to enter the lookback periods.
You should select the same time periods thatyou used for the moving average.

Finally, drag the "resistance and support* F"indicator into the price window.
You will be prompted to enter the percentageand the lookback periods.

If you would like the indicator to be a 10% difference from the resistance and support line, you would enter 10. Again, you should select the same time periodsyou used for the moving average.



Moving averages are a popular way to signal trends. Here's how to combine moving averages and the classic chart analysis of support and resistance for trading mutual funds.

M ost simple moving average systems require one or two additional confirmation signals to avoid excessive whipsaw trades. Such confirmation signals can be based on features of moving averages such as the crossover of multiple moving averages or the reversal of the moving average slope. Momentum, volatility, volume and other nontrend indicators can also serve to confirm moving average buy and sell signals.

In an effort to develop simple and robust stock and mutual fund trading systems, I have found that combining the simple moving average (SMA) with the concept of resistance and support very effective. Here is a mechanical system for combining these two tried-and-true tools to provide a robust, minimal-whipsaw, intermediate-term mutual fund trading system. I have used this system successfully for about four years to switch emerging markets funds and small-cap funds to and from a Standard & Poor's 500 index fund and/or a money market fund.

SMA STRENGTHS

I use the most common implementation of an SMA system, which is to buy when the price closes above the SMA and sell when the price falls below the SMA. The strengths of the SMA system compared to other trading techniques are objectivity, simplicity and its trend-following nature. The SMA is objective because it provides unambiguous buy and sell signals; thus, it can be back-tested and suitably optimized.

The simplicity of the SMA, in that it has only one parameter to fit (the lookback period), generally leads to a robust system. By robust, I mean that it stands a good chance of working in the future. As discussed in a recent STOCKS & COMMODITIES article by Jeffrey Owen Katz and Donna McCormick, a rule of thumb in evaluating trading systems is that the more parameters there is to optimize, the less robust the system is. Taken to the extreme, many fitting parameters can be used to curve-fit past data to eliminate all whipsaws while maintaining good performance. The potential of such a system working in the real world is nil.

The trend-following feature of the SMA is highly desirable because it resists becoming outdated as markets change character. Independent of the fundamentals driving the market, trend-following techniques are designed to capture extended runs in both bullish and bearish directions. This is especially true for intermediate time-scale movements in the stock market -- those where typical peak-to-trough and trough-to-peak movements are in the 10-30% range, with a corresponding time scale on the order of two to six months.

Dennis Tilley trades his own portfolio of mutual funds and stocks. He received a master's degree in mechanical and aerospace engineering from Princeton University in 1991 and works in spacecraft propulsion research and development. He can be reached at OPIECJ@xxxxxxxx

Excerpted from an article originally published in the September 1998 issue of Technical Analysis of STOCKS & COMMODITIES magazine. All rights reserved. © Copyright 1998, Technical Analysis, Inc.
Source / From: TOP
http://purebytes.com/archives/metastock/ http://www.equis.com

Equis and MetaStock® and MetaStock Professional® are registered trademarks of Equis International. Achelis Binary Wave®, The DownLoader®,
Expert Advisor®, OptionScope®, Quotecenter® and Smart Charts® are trademarks of Equis International, a Thomson Reuters company.

TradeStation® Pro, TradeStation® 2000i, OptionStation®, SuperCharts®, PowerEditor® and EasyLanguage®
are registered trademarks of TradeStation Technologies, Inc. Other names and marks referred to are the property of their respective owners.

All information provided on this website is for educational purposes only. Trading involves risk, including possible loss of principal and other losses.

Ten i inne materiały na tej stronie zostały zamieszczone zostały jedynie w celach edukacyjnych, nie ponoszę żadnej odpowiedzialno¶ci za ich stosowanie.

Gra na giełdzie i rynkach walutowych (FOREX) niesie ze sob± ryzyko poważnych strat finansowych!