Again, the Users Manual discusses the Ref() function: using a negative value will look into the data history and using a positive value will look into the future data.
Of course, looking into the future cannot be traded in real life, and its use in a system test should only be to do some sort of hindsight based statistical or other analysis. Use with caution.
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 C, 11 PRO w/QC & MDK
For custom MetaStock programming : http://www.wabbit.com.au
My SkyPE status : 
My SkyPE account : wabbit.com.au