Search

(mt) Metastock Part : Relative Strength Comparison (rsc) The Key Success Tool In Trading By Stock Market Sectors

In Part , 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 days to have occurred in the last 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 . In MetaStock language that would be:

HHVBars(H,) . and ATR()/Mov(C,,S) and Mov(v,,s)C > and HHVBars(H,) . and ATR()/Mov(C,,S) <

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.

Shubham Ganeshwadi

Shubham Ganeshwadi

Hi, I’m Shubham Ganeshwadi, Your Blogging Journey Guide 🖋️. Writing, one blog post at a time, to inspire, inform, and ignite your curiosity. Join me as we explore the world through words and embark on a limitless adventure of knowledge and creativity. Let’s bring your thoughts to life on these digital pages. 🌟 #BloggingAdventures

Leave a comment

Your email address will not be published. Email is optional. Required fields are marked *

Your experience on this site will be improved by allowing cookies Cookie Policy