You might be able to do that without the MetaStock Developer's Kit.
Check in the Formula Assistance section of the forum.
http://forum.equis.com/forums/3040/ShowForum.aspx
Or do you already have the MDK and want to know if you can do it with that?
Equis International, Inc.
A Reuters Company
90 S. 400 W Suite 620
SLC, UT 84101