MetaStock Highest Function

Provided By www.meta-formula.com

The Highest function returns the highest value from the selected `data array', from the entire data loaded into the chart. For example, assume that you have three years of history loaded in your chart. By using the Highest function to return the highest value of the close, MetaStock will search through the whole three years for the highest closing value.

SYNTAX Highest(Data Array)

Data Array _ The highest value of this data array will be identified in the entire chart.

EXAMPLE

The formula below identifies the highest value achieved by the high during the entire loaded history in the chart:

Highest(H)

In the formula above:

Data Array = H

APPLICATION

A more useful application of this example could be:

H>0.95* Highest(H)

This formula firstly identifies the highest price the security has reached in the entire chart. It then takes 5% from this value (denoted by `*0.95') and compares this to the present period's high value. MetaStock checks that the current high is greater than this price (denoted by `H>'). In other words, this formula checks to see if the present period's high is within 5% of the highest price from the data loaded in the chart.

Looking at Figure 3.6, we can see this example applied to the chart.

 

Figure 3.6 _ Highest Function

EXERCISES

Construct formulas for the following:

1. Return the value of the all time high of the 14 period RSI:

(hint: you will need to use the RSI function referred to on page 102):

__________________________________________________

2. Return the all time highest closing price.

__________________________________________________

This article is a snippet from the
MetaStock Programming Study Guide...

"Discover The Simple Secret to Make Metastock Easy & Identify Profitable Trades"

Click Here To Find For More About
The MetaStock Programming Study Guide

copyright 2007 www.meta-formula.com