1, set the conditions first, {M = 3;; N= 10}
2. Set the basic function sum: = if (period = 1, 5, if (period = 2, 15, if (period = 3,30. if (period = 4,60, if (period = 5, totalfznum, 6545). MTIME:=MOD(FROMOPEN,TOTAL); CTIME:=IF(MTIMEREF(HHV(VOL, 10), 1)*3 and ABS(C/REF(C,1)-1;