Tax Deductible Items

The World of Finance


MetaStock Basics: The Alert Function

April 29th, 2009 · No Comments

The first function we will look at is the Alert function. It’s used in conjunction with other functions to extend a signal for a specified number of periods. In other words, it holds an expression as true for as long as we wish.

Now think about the alert function with gates and triggers in mind. Using this function we can hold a gate open for a specific period while waiting for a confirming trigger. This provides a vital ingredient to creating a fully automated system. However, before we get ahead of ourselves, let’s have a closer look at the Alert function’s syntax. That is, the way in which it’s coded into Metastock Pro.

SYNTAX Alert(Expression, Periods)

Expression _ The technical condition that you are wishing to hold true. This is usually your gate.

Periods _ The length of time that you wish to hold the expression as true.

EXAMPLE

Let’s see this function in action. The formula below identifies stocks that have had their volume 50% greater than the 21 period moving average of volume. This indicates that the interest within the stock has increased. Moreover, by using the Alert function we have extended the period that this condition exists from one period to five. That is to say, we have told the MetaStock system that for all intents and purposes the increase in volume on the initial period would provide the same signal for the following five periods.

Alert(V > Mov(V,21,S)*1.5,5)

The above formula can be broken down as follows:

Expression = V > mov(v,21,S)*1.5

Periods = 5

APPLICATION

We can add to this example, showing a more useful application.

Mov(C,5,S)> Mov(C,22,S) AND

Alert(V > Mov(V,21,S)*1.5,5)

This formula identifies securities that are in an uptrend (denoted by the 5 period simple moving average being greater than the 22 period simple moving average). Additionally, securities must exhibit a 50% increase in their average volume at least once within the previous five periods. If we were to remove the alert function, both conditions (i.e., `V > Mov(V,21,S)*1.5′ and the `Mov(C,5,S)> Mov(C,22,S)’ would have to be true simultaneously. This may not appear useful, however when combined with other functions (e.g. the cross function on page 41) you realise its power.

See this video to find more great MetaStock tips and advice:

VN:F [1.0.7_345]
Rating: 0.0/10 (0 votes cast)

Share/Save/Bookmark

Related pages:
  1. What is the MetaStock Cross Function? The Cross function identifies when one data array crosses...
  2. How to Use MetaStock’s Reference Function The MetaStock reference function is one of the most commonly...
  3. Identity Theft Alert - Effectiveness Of Identity Theft Alerts One of the most widely used procedures for keeping your...
  4. Function Modelling! What IS That? Function modelling Is the Foundation of ALL good Business Systems...
  5. Starting A Function Business Or A ‘Traditional’ Dot Com With Your Be In Possession Of Web Site Got a little bit of extra pocket money to invest?...

Tags: Finance

Drivers