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.
The formula below identifies the highest value achieved by
the high during the entire loaded history in the chart:
In the formula above:
Data Array = H
A more useful application of this example could be:
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
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.
article is a snippet from the
MetaStock Programming Study Guide...
The Simple Secret to Make Metastock Easy & Identify Profitable
copyright 2007 www.meta-formula.com