Roy Larsen publishes a newsletter covering such topics; visit:
Harness the power of the MetaStock Formula Language.
Also I would recommend that you post your query to this forum as they specialise in MetaStock too:
Traders' Consortium.
I am a MetaStock user but works only with EOD data so cannot help with intraday queries, that's why I refer you to those two addresses above.
Eduardo.