What is the MetaStock Cross Function?

The Cross function identifies when one data array crosses above another MetaStock data array. Similarly, when used in reverse, it shows when one data array crosses below another. Since this function’s parameters can be set to any data array, it can be quite versatile in identifying anything from a moving average crossover to an RSI crossover.

SYNTAX Cross(Data Array1, Data Array2)

Data Array 1 _ is the information that is required to cross above the second set of information.

Data Array 2 _ is the information that `data array 1′ crosses above.

EXAMPLE

The following formula identifies when an 8 period simple moving average crosses above a 21 period simple moving average:
Cross(Mov(C,8,S),Mov(C,21,S))

In the formula above:

Data Array 1 = Mov(C,8,S)

Data Array 2 = Mov(C,21,S)

Now imagine we wanted to identify when the 8 period simple moving average crosses below the 21 period simple moving average (which is the same as saying the 21 period simple moving average crossing above the 8 period simple moving average). We would simply swap the data arrays around.

Cross(Mov(C,21,S),Mov(C,8,S))

APPLICATION

Here’s a more complex and practical application applying the alert function and two cross functions at once:

Cross(RSI(14),30) AND

Alert(Cross(Mov(C,8,S),Mov(C,21,S)), 5)

This formula specifies that the RSI must cross above the oversold area (e.g. cross above the 30 line, denoted by `Cross(RSI(14),30)’). Additionally, the 8 period simple moving average must have crossed above a 21 period simple moving average at least once within the previous five periods. By using the alert function both crosses don’t necessarily have to occur simultaneously.

Related pages:
  1. MetaStock Basics: The Alert Function The first function we will look at is the Alert...
  2. How to Use MetaStock’s Reference Function The MetaStock reference function is one of the most commonly...
  3. Understanding The Function Of GDP Guidelines And Their Function In GMP Training The phrase Good Manufacturing training, or the abbreviated version of...
  4. Blue Cross Blue Shield Health Insurance Are you a business or individual in need of health...
  5. Function Modelling! What IS That? Function modelling Is the Foundation of ALL good Business Systems...

Previous post:

Next post: