Twitter
RSS
Facebook

Relative Strength Comparison (RSC) The Key Success Tool In Trading – Part 3

By David Jenyns

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 ==> http://www.meta-formula.com/subscribe
-=-=-==-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-

Article Source: http://EzineArticles.com/?expert=David_Jenyns

Designing a Trading System in MetaStock- Part 2

In Part 1 of Designing a Trading System in MetaStock, I had discussed the major components you needed to be able to track to create a mechanical entry system. These were measures of price, liquidity, trend, and volatility. The question now is, how do we code this into MetaStock?

First, let me offer you the most valuable piece of knowledge I have acquired over the years about MetaStock formula writing. This one secret will turn you into a MetaStock master. Do you think I know all of MetaStock`s hundreds of pre-programmed formula and propriety indicators? Well, I`m good, but I`m not that good.

When coding in MetaStock, the key to getting it “right” is to write what it is you are trying to achieve “down in English”. Once you`ve done this, it is easy to convert it into a MetaStock formula.

Let`s look at an example. Our first entry condition is a measure of price. As mentioned in Part 1, you want to set a price minimum to remove speculative stocks. Please note that the values you select will depend on the exchange you are trading. Some markets tend to be more expensive than others. For this example, we are looking to design a long-term trend following system to trade on the Australian Stock Exchange.

In Australia anything under $1 could be classed as a speculative stock. So how do you stipulate that the stocks you want must be greater than $1? First, “write it in English”: You want stocks with a 21-day average closing price that is greater than $1. Now, you can convert this into a MetaStock formula.

Using the formula reference section in the MetaStock Programming Study Guide, you can check the syntax of a moving average. Once you have this information, it`s simply a matter of plugging in the correct numbers. Then, by using the “greater than” symbol, you can stipulate the price to be greater than $1. The MetaStock code will look like this:

Mov(c,21,s) > 1

Let`s move onto the next component, liquidity. This is a measure of how much money a stock trades. It is important to identify stocks that have enough money moving through them so that you`re never caught with a stock you can`t get out of. For this example, let`s say we require the 21-day average of volume multiplied by the closing price to be greater than $200,000. In MetaStock language this would be:

Mov(v,21,s)*C > 200000

In the next article I`ll go through the last two components needed to design a mechanical entry system in MetaStock. With this information, you will be well on your way to starting an effective, and profitable, trading system in MetaStock.

-=-=-==-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-
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 ==> http://www.meta-formula.com/subscribe
-=-=-==-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-

Article Source: http://EzineArticles.com/?expert=David_Jenyns

Technorati Tags:

Designing a Trading System in MetaStock – Part 1

By David Jenyns

In this three article series, I`m going to guide you through the process I use to design a trading system using MetaStock. I’ll cover the four major components that every successful trading system has in common, and then I’ll show you how to code these components into the MetaStock program. Please note that this is by no means investment advice and any information I cover is purely for illustrative purposes.

I am a technical analyst by trade. It is my belief that all fundamental and economic influences on a stock price are taken into consideration by the market. Therefore, I focus my attention on price action. All my trading systems are based on this understanding of the market, and the rules of my systems are built to respond to price actions. In this article, I’ll cover the basic rules of trading:

  • Entry rules (when you get into a position)
  • Exit rules (when you get out of one)
  • Money Management rules (how much do you put in a trade?)
  • Back-Testing (does the system work historically?)

These four components make up a proven formula for designing profitable trading systems in MetaStock. Let’s start with the first part.

A stock passing through a precise set of conditions creates entry signals before you will enter a trade on that security. I believe the rules set to signal an entry into a position should leave no room for individual judgment. I follow the KISS principal – that is they should Keep It Simple Simon.

Remember, there is no Holy Grail of entry systems. There is no MetaStock formula that will get you in at exactly the right time, everytime. With this in mind, it’s your goal to construct a simple, yet robust entry system.

Even though I always say that the entry is the least important component of any trading system, you still must have some way to enter a trade. Here are the points that I think are important to consider when identifying possible entry points.

PRICE: It is important to set price maximums/minimums because a stock’s price can determine its attributes. For example, speculative stocks tend to be cheaper, and blue chip shares tend to be more expensive.

LIDUIDITY: This is a measure of how much money the stock trades at. You need to set minimum levels of liquidity to keep you out of stocks that simply don’t trade enough. You can risk being trapped in stocks where the market is moving against you if they have a low liquidity.

VOLATILITY: This measurement tells you how much a stock moves. It is important to trade stocks that move enough for you to make a profit, yet aren’t so erratic that you can’t sleep at night.

TREND: This is the cornerstone of technical analysis. Remember that “the trend is your friend” and that you always want to trade with it, not against it. You will need a way to measure trend in your system.

TRIGGER: This is the point that will indicate it is time to enter a trade. The trigger condition occurs only at one point in time and doesn’t hold “true” over extended periods of time, such as with a moving average cross over.

When combined, these components are going to make up your entry rules. But, before we even begin coding this into MetaStock, you need to determine one of the most critical elements of any system. What time frame are you going to trade?

+ Short-term, such as a reversal trader

or

+ Long-term, such as a trend follower

There are distinct differences between these two types of systems and your choice here will have a marked effect on every other decision you make about your system.

Short-term systems tend to require a greater time commitment, and more money. However, the benefit of trading more often is that usually your profits are more consistent, and are realised more frequently.

Conversely, longer-term systems tend to require less time, and less money. However, since you are keeping your positions open longer, you need to wait until positions are closed out before you can collect any profits.

Generally, I steer my clients, particularly those who are just starting out, to a longer-term trend following system. It takes less time, less money, there is less risk and it is easier to do than short-term trading. In addition, trend following systems tend to have a higher win to loss ratios and are psychologically easier to follow because of this.

For the sake of this example, let us construct a trend following system. In the next two articles, I’ll explain how to code the four entry components of a trend following system into MetaStock.

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 ==> http://www.meta-formula.com/subscribe

Article Source: http://EzineArticles.com/?expert=David_Jenyns

Technorati Tags: , , , , , , , ,

Links to our most popular categories Alerts Backtesting Commodities Forex Gold Recent Articles Training Videos