SY,
MS is a fully-evaluated program; do a search if you don't understand the ramifications of this. The easiest way to deal with this in your MSX code is to use a newBar trigger code to only signal the entry/exit on a newBar.
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