以下是通达信分时量比源码附图(无源码的请下载附件导入)
W:=VOL*CLOSE/100;
A2:=SUM(IF(W/8>20 AND CLOSE>REF(CLOSE,1),W,0),0);
A3:=SUM(IF(W/8>20 AND CLOSE<REF(CLOSE,1),W,0),0);
机构买:=A2;
机构卖:=A3;
TDXSTEP177:1.7;
昨高:=SUPAMO.主力资金线#DAY;
TT:=IF(HOUR>12,(HOUR-13)*60+MINUTE+120,(HOUR-9)*60+MINUTE-30);
量比:SUM(VOL,0)/TT/DYNAINFO(16),COLORYELLOW;
最高量:HHV(量比,480),DOTLINE,COLORRED;
量比突破1:=量比=最高量 AND 最高量<1.7;
T预警:IF(FILTER(量比>1/100 AND CLOSE>昨高,240) AND 机构买>机构卖 AND CLOSE<30 AND CLOSE>5 AND 最高量<5,最高量+0.025,0),COLORGREEN;
量比突破:IF(FILTER(CROSS(量比突破1,最高量),240) AND 机构买>机构卖 AND CLOSE<30 AND CLOSE>5,量比+0.3,0),COLORMAGENTA;
{-----------------------------------}
85733271.jpg
|