*Note: The article presented here is written by authors not affiliated with hashemian.com.
This site is not responsible for any errors, omissions, or objectionable content.
Exercise care before engaging in business with any companies mentioned in this article.

Go to: /articles/2006/02/27/ for other articles.

(MT) Metastock Part 3: Relative Strength Comparison (RSC) The Key Success Tool In Trading By Stock Market Sectors

In Part 2, of Designing a Trading System in MetaStock I covered how to code the first two of the four major components of a mechanical entry system. I had explained the coding of price and liquidity. In this article, I will cover the steps for coding the remaining two components, trend and volatility, into MetaStock. In the end, you will have the complete codes for a mechanical entry system.

Let`s begin with trend identification. Remember, `the trend is your friend` when trading. You always want to trade with the trend, not against it. Think of it this way, if you were swimming in the sea, and got yourself caught in a rip tide, is it easier to swim with the current or against it? It is the same with trading with a trend.

There are many ways to identify trends, and it`s not particularly important which method you use. You just need to use one. One of my preferred methods for identifying trending stocks is to find stocks that are trading at their current highs. You can do this by stipulating that the highest high price must have been achieved in the last `x` number of days.

Once again, the variables you use will depend on the time frame you are trading. But for this example, you want the highest high price in the last 240 days to have occurred in the last 20 days.

Using the formula reference section in the MetaStock Programming Study Guide, you can find the syntax of the highest high function, and then plug in the details. Then, using the `less than` symbol, you can specify the number of days must be less than 20. In MetaStock language that would be:

HHVBars(H,240) < 20

The final component to our entry system is the volatility measure. The aim of including this formula is to identify stocks that move enough for us to make a profit, yet aren`t so erratic that they keep you up at night. There are a few ways to measure volatility. However, my favourite is the ATR method. The ATR indicates how much a stock will move, on average, over a certain period.

For example, a one-dollar stock might move five cents on average over the last 20 days. You can divide this value by the price of the stock and you will have the average percentage movement of a stock. With these values, you can stipulate a minimum and maximum daily volatility value.

For example: You may want the ATR, divided by the average closing price, over the last 21 days, to be greater than 1.5%. Therefore, the average minimum volatility must be greater than 1.5%.

Additionally, you may want the ATR divided by the closing price, over the last 21 days, to be less than 6%. This sets the average maximum volatility at less than 6%. In MetaStock language that would be:

ATR(21)/Mov(C,21,S)*100 > 1.5 and ATR(21)/Mov(C,21,S)*100 < 6

Putting all our code together, you see what your entry system looks like:

C>1 and Mov(v,21,s)*C > 200000 and HHVBars(H,240) < 20 and ATR(21)/Mov(C,21,S)*100 > 1.5 and ATR(21)/Mov(C,21,S)*100 < 6

You now have now a workable entry system. Not only did you construct a robust system, but it also adheres to the KISS principal (Keep It Simple Simon). This system can be cut and pasted into the Explorer within MetaStock. However, the entry is only the beginning of a successful trading system. In later parts of this series, you`ll find the rest of the components that you need to design a profitable trading system.

-=-=-==-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=- David Jenyns is recognized as the leading expert when it comes to MetaStock and designing profitable trading systems.

His MetaStock website offers a huge free collection of trading related tips and tricks. Gain free access now. Click Here ==> www.meta-formula.com/subscribe -=-=-==-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-

Article Topics
Adsense Advertising Bankruptcy Blog Credit Card
Debt Google Ira Marketing Mortgage
Real Estate Rental Retirement Rss Search Engine
Seo Stocks Tax
Recent Articles

Read Financial Markets  |   Home  |   Blog  |   Web Tools  |   News  |   Articles  |   FAQ  |   About  |   Contact

© 2001-2008 Robert Vahid Hashemian
Support the effort
Liked this page?
Please consider creating a link to it
from your Web site.

hashemian.com
هاشمیان.com

 Home

 Blog

 Web Tools Add Free Web Tools custom Google Toolbar button (Requires Toolbar >V4)
Usage

 News

 Articles

 FAQ

 About

 Contact

 Financial Markets Book
Read Complete Book



BOOK
Brisingr (Inheritance, Book 3)
Christopher Paolini
$27.50


BOOK
Eclipse (The Twilight Saga, Book 3)
Stephenie Meyer
$19.99


BOOK
Three Cups of Tea: One Man's Mission to Promote Peace . . . One School at a Time
David Oliver Relin
$15.00


BOOK
Duma Key: A Novel
Stephen King
$28.00


BOOK
Gardner's Art Through the Ages, Volume I, Chapters 1-18 (with ArtStudy Student CD-ROM and InfoTrac )
Christin J. Mamiya
$129.95

|-mt-metastock-part-3-relative-strength-comparison-rsc-key|

more…



aStore - Hashemian.com on Amazon

Visits: Powered by hashemian.com

 

 

 

 

 

Search Hashemian.com





NEW SAS 9.1.3 Intelligence Platform: Web Application...
$61.71
Ends: Thu Sep 11, 2008 01:26:58 EST


LOT OF 3 AMERICAN COIN SILVER FIDDLE PATTERN SPOONS
$9.99
Ends: Wed Sep 10, 2008 22:25:17 EST


3 ANTIQUE ENGLISH PEWTER PLATES MID 1700s TO MID 1800s
$76.00
Ends: Wed Sep 10, 2008 22:33:20 EST


stainless steel 3 bay sink,restaurant,meat processing
$125.00
Ends: Thu Sep 11, 2008 13:57:23 EST


3 1/2 Blue LCD Digital AMP Panel Meter DC 100A + Shunt
$24.99
Ends: Wed Sep 10, 2008 23:00:00 EST

more…