j01=HIGH-LOW;
j02=j01/2;
j03=IF(j01=0 ,IF(REF(CLOSE,1)<CLOSE,1,-1),j02);
j04=IF(CLOSE>LOW+j02 OR j01=0,1,-1);
j05=IF(CLOSE>=LOW+j02,IF(CLOSE-LOW-j02<>0,(CLOSE-LOW-j02)/j03*j04,0),(LOW+j02-CLOSE)/j03*j04);
j06=j01/REF(CLOSE,1)*100;
j07=j05*j06;
t000:0;
jv01=MA(VOL/INDEXV,120);
jv02=IF (VOL/INDEXV<jv01,0,(VOL/INDEXV)/jv01);
量价1:SUM(jv02*j07,duan);
量价2:SUM(jv02*j07,zhong);
量价3:SUM(jv02*j07,CHang);