Kreangast,
The purpose of the Forum is not to write your codes for you. The forum
is designed to assist you to fix mistakes when you write your code or
get stuck overcoming a limitation of the coding language or end up
results that are far from what you expected. When requesting coding
assistance, to get a prompt reply you should post your best attempt at
achieving the goal. When it can be seen that you have put in
some effort yourself, then, one of the Fourm members will give you
their time to help you. "Give a man a fish.... teach a man to fish..." Use the MS
Users Manual and the free Equis Formula Primer to guide you along.
There are a lot
of people here who are willing to assist you to write your code, but if
you want other people to do all the work for you, then please seek the
services of a contract programmer.
wabbit
"The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
Edsgar W. Dijkstra
MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC & MDK
For custom MetaStock programming : http://www.wabbit.com.au
My SkyPE status : 
My SkyPE account : wabbit.com.au