{分时图追涨停主图源码如下}
均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW;
分时线:=CLOSE;
REFDATE(分时线,DATE),DOTLINE,COLORLIBLUE;
{分时图追涨停副图源码如下}
总买单:SUM(IF(C>REF(C,1),V/1000,0),0),COLORRED;
总卖单:SUM(IF(C<REF(C,1),V/1000,0),0);
买入量:="VOL.MAVOL1#DAY"/100,NODRAW,COLORFFFFFF;
追入量:=买入量*2,NODRAW,COLORFFFFFF;
涨停量:=买入量*5,NODRAW,COLORFFFFFF;
A14:=V>买入量 AND V<追入量 AND C>DYNAINFO(3)*1.014 AND C<DYNAINFO(3)*1.043 AND 总买单>总卖单 ;
DRAWICON(A14,总买单,7);
A15:=V>追入量 AND V<涨停量 AND C>DYNAINFO(3)*1.043 AND C<DYNAINFO(3)*1.071 AND 总买单>总卖单;
DRAWICON(A15,总买单,1);
DRAWICON(V>涨停量 AND 总买单>总卖单,总买单,3);
A16:=REF(HHV(C,0),1);
A17:=REF(HHV(V,0),1);
A18:=A16/DYNAINFO(3)<1.05;
A19:=CROSS(C,A16) AND V>A17 AND A18 AND C>DYNAINFO(3)*1.014 AND C<DYNAINFO(3)*1.043;
A20:=CROSS(C,A16) AND V>A17 AND A18 AND C>DYNAINFO(3)*1.043 AND C<DYNAINFO(3)*1.071;
DRAWICON(A19 OR A20,总买单,5);
DRAWTEXT(A19 OR A20,总买单,'爆量买点'),COLORYELLOW;