大智慧分时买卖带指标公式

当日成交总量:=DYNAINFO(8);

成交总金额:=DYNAINFO(10)/10000;

主动卖盘:=DYNAINFO(22);

主动买盘:=DYNAINFO(23);

成交笔数:=TICKCOUNT;

每笔手数:=DYNAINFO(53);

DRAWTEXTAbs(20,140,'个股盘口成交量观察'),colorFFFFFF;

DRAWTEXTABS(20,155,'日成交总量:'+NUMTOstRN(当日成交总量,0)+'手'),colorFF00FF;

DRAWTEXTABS(20,170,'日主动买入量:'+NUMTOSTRN(主动买盘,0)+'手'),colorFF00FF;

DRAWTEXTABS(20,185,'日主动卖出量:'+NUMTOSTRN(主动卖盘,0)+'手'),colorFF00FF;

DRAWTEXTABS(20,200,'日净:'+NUMTOSTRN(主动买盘-主动卖盘,0)+'笔'),Color00FF00;

DRAWTEXTABS(200,230,'每笔成交:'+NUMTOSTRN(每笔手数,1)+'手'),colorFF00FF;

DRAWTEXTABS(5,5,'指标网 www.zhibiaow.com'),linethick1,COLOR00EEff;

LOWV:=LLV(c,15);

HIGHV:=HHV(c,15);

RSV:=EMA((c-LOWV)/(HIGHV-LOWV)*100,3);

K:=EMA(rsv,3);

D:=MA(K,3);

zero1:20,POINTDOT,colorwhite;

zero2:80,POINTDOT,colorwhite;

zero3:0;

zero4:100;

PARTLINE(d,d>=REF(d,1),RGB(255,0,0),d<=REF(d,1),RGB(0,255,0));

PARTLINE(d>=REF(d,1),d),colorred;

PARTLINE(d<=REF(d,1),d),colorgreen;

a1:=BArslAST(REF(crOSS(k,d),1));

b1:=REF(c,a1+1)>c AND REF(K,a1+1)<K AND CROSS(k,d) AND k<30;

DRAWTEXT(IF(b1>0,1,0),d,'买'),coloryellow;

c1:=BARSLAST(REF(CROSS(d,k),1));

d1:=REF(c,c1+1)<c AND REF(K,c1+1)>K AND CROSS(d,k) AND k>70;

DRAWTEXT(IF(d1>0,1,0),d,'卖'),coloryellow;

中趋势线:=3*SMA((c-LLV(c,27))/(HHV(c,27)-LLV(c,27))*100,5,1)-2*SMA(SMA((c-LLV(c,27))/(HHV(c,27)-LLV(c,27))*100,5,1),3,1);

长趋势线:=3*SMA((c-LLV(c,55))/(HHV(c,55)-LLV(c,55))*100,5,1)-2*SMA(SMA((c-LLV(c,55))/(HHV(c,55)-LLV(c,55))*100,5,1),3,1);

DRAWGBK(中趋势线>=90,STRIP(RGB(100,0,100),RGB(100,0,100),2));

DRAWGBK(中趋势线<=10,STRIP(RGB(0,100,100),RGB(0,100,100),2));

DRAWGBK(长趋势线>=90,STRIP(RGB(150,0,150),RGB(150,0,150),2));

DRAWGBK(长趋势线<=10,STRIP(RGB(0,150,150),RGB(0,150,150),2));