k2:= 1000 * v/k 1; (1000 is mainly to enlarge the size of k2, which is convenient for setting the value of m below)
X: if (k2<M,100,0) observes more stocks, choose an empirical m value.
That is, when v is small enough to trigger k2