1、N 2 1 100 R:=DYNAINFO(3);HH:=DYNAINFO(5);LL:=DYNAINFO(6);F:=MAX(HH-R,R-LL);FF:=F/R*100;Q4:=IF(FF0 AND REF(ASKVOL(1),1)0,BUYVOL,0);VAR42:=IF(BUYVOLREF(ASKVOL(1),1) AND DYNAINFO(7)=REF(ASKPRICE(1),1) AND REF(BIDVOL(1),1)0,BUYVOL,0);VAR42A:=IF(VAR420,VAR42-REF(ASKVOL(1),1),0);VAR4B:=VAR41+VAR42A;VAR51:
2、=IF(BUYVOLREF(ASKVOL(1),1) AND DYNAINFO(7)REF(ASKPRICE(1),1) AND DYNAINFO(7)REF(ASKVOL(1),1)+REF(ASKVOL(2),1) AND DYNAINFO(7)=REF(ASKPRICE(2),1) AND REF(BIDVOL(1),1)0,BUYVOL,0);VAR52A:=IF(VAR520,VAR52-(REF(ASKVOL(1),1)+REF(ASKVOL(2),1),0);VAR5B:=VAR51+VAR52A;VAR61:=IF(BUYVOLREF(ASKVOL(1),1)+REF(ASKV
3、OL(2),1) AND DYNAINFO(7)REF(ASKPRICE(2),1) AND DYNAINFO(7)REF(ASKVOL(1),1)+REF(ASKVOL(2),1)+REF(ASKVOL(3),1) AND DYNAINFO(7)=REF(ASKPRICE(3),1) AND REF(BIDVOL(1),1)0,BUYVOL,0);VAR62A:=IF(VAR620,VAR62-(REF(ASKVOL(1),1)+REF(ASKVOL(2),1)+REF(ASKVOL(3),1),0);VAR6B:=VAR61+VAR62A;VARA2:=IF(SELLVOLREF(BIDV
4、OL(1),1) AND DYNAINFO(7)=REF(BIDPRICE(1),1) AND REF(ASKVOL(1),1)0,SELLVOL,0);VARAA:=IF(VARA20,SELLVOL-REF(BIDVOL(1),1),0);VARB1:=IF(SELLVOLREF(BIDVOL(1),1) AND DYNAINFO(7)REF(BIDPRICE(2),1),SELLVOL,0);VARB2:=IF(SELLVOLREF(BIDVOL(1),1)+REF(BIDVOL(2),1) AND DYNAINFO(7)=REF(BIDPRICE(2),1) AND REF(ASKVO
5、L(1),1)0,SELLVOL,0);VARBA:=IF(VARB20,SELLVOL-(REF(BIDVOL(1),1)+REF(BIDVOL(2),1),0);VARAB:=VARB1+VARBA;VARC1:=IF(SELLVOLREF(BIDVOL(1),1)+REF(BIDVOL(2),1) AND DYNAINFO(7)REF(BIDPRICE(3),1),SELLVOL,0);VARC2:=IF(SELLVOLREF(BIDVOL(1),1)+REF(BIDVOL(2),1)+REF(BIDVOL(3),1) AND DYNAINFO(7)=REF(BIDPRICE(3),1)
6、 AND REF(ASKVOL(1),1)0,SELLVOL,0);VARCA:=IF(VARC20,SELLVOL-(REF(BIDVOL(1),1)+REF(BIDVOL(2),1)+REF(BIDVOL(3),1),0);VARAC:=VARC1+VARCA;VARF:=IF(ASKVOL(1)SELLVOL,REF(ASKVOL(1),1)-ASKVOL(1),0);VAR10:=IF(ASKVOL(3)0 AND REF(ASKVOL(1),1)-ASKVOL(1)REF(BIDPRICE(1),1) AND REF(BIDVOL(1),1)-BIDVOL(1)0 AND REF(B
7、IDVOL(1),1)-BIDVOL(1)REF(BIDPRICE(3),1),REF(BIDVOL(3),1)-BIDVOL(2),0);VAR18:=IF(BIDVOL(3)REF(BIDPRICE(2),1),REF(BIDVOL(2),1)-BIDVOL(3),0);委买:=BIDVOL(1)+BIDVOL(2)+BIDVOL(3);委卖:=ASKVOL(1)+ASKVOL(2)+ASKVOL(3);委买总量:=SUM(委买,0);委卖总量:=SUM(委卖,0);WWW1:=SUM(BUYVOL,0)-SUM(SELLVOL,0);买卖存量:=REF(WWW1,1)+WWW1;流通:=
8、FINANCE(7)/10000;市值:=DYNAINFO(7)*FINANCE(7)/10000;流通:=FINANCE(7)/10000;QJ1:=CAPITAL/2500;QJ2:=CAPITAL/8000;QJ3:=CAPITAL/16000;QJ4:=CAPITAL/33000;QJ5:=CAPITAL/80000;QJ6:=CAPITAL/150000;QJ7:=CAPITAL/200000;QJ8:=CAPITAL/400000;XS:=IF(流通=1 AND 流通=5 AND 流通=10 AND 流通=20 AND 流通=50 AND 流通=100 AND 流通=300,QJ8
9、,0);门限:=XS;特门限:=XS*2.67;特大买:=IF(BUYVOL=特门限,BUYVOL,0);特大卖:=IF(SELLVOL=特门限,SELLVOL,0);大单买:=IF(BUYVOL=门限 AND BUYVOL=门限 AND SELLVOL=特门限,BUYVOL,0)*CLOSE,0);特卖金:=SUM(IF(SELLVOL=特门限,SELLVOL,0)*CLOSE,0);大买金:=SUM(IF(BUYVOL=门限 AND BUYVOL门限 AND SELLVOLBUYVOL,VARF+VAR10+VAR11+VAR12+VAR13-BUYVOL,0);撤AA:=IF(VAR14
10、+VAR15+VAR16+VAR17+VAR18SELLVOL,VAR14+VAR15+VAR16+VAR17+VAR18-SELLVOL,0);小撤买:=SUM(IF(撤 AA=门限,撤 AA,0),0);大撤卖:=SUM(IF(撤 BB=门限,撤 BB,0),0);总撤买:=小撤买+大撤买;总撤卖:=小撤卖+大撤卖;对敲买:=SUM(IF(VAR4B+VAR5B+VAR6B=门限,VAR4B+VAR5B+VAR6B,0),0);大对敲卖:=SUM(IF(VARAA+VARAB+VARAC=门限,VARAA+VARAB+VARAC,0),0);总敲买:=对敲买+大对敲买;总敲卖:=对敲卖+大
11、对敲卖;VARA:=IF(BUYVOL=REF(ASKPRICE(5),1),BUYVOL,0);上扫:=SUM(INTPART(IF(VARA=门限,BUYVOL,0),0);VARB:=IF(SELLVOL=门限,SELLVOL,0),0);总上扫:=上扫+大上扫;总下扫:=下扫+大下扫;每笔均额:=AMOUNT/dyNAINFO(51);大单笔数:=COUNT(大单买+大单卖+特大买+特大买,0);人均持股:=FINANCE(7)/FINANCE(50)*10000;主力买卖比:=大买金/大卖金;总成交:=特大买入+特大卖出+大单买入+大单卖出+小单买入+小单卖出+总敲买+总敲卖+总上扫
12、+总下扫;散户跟风系数:=小单买入/总成交*100;DRAWTEXTEX(CLOSE,1,20,30,机构买:+NUMTOSTR(特大买入,0),LINETHICK2,colorFFFF;DRAWTEXTEX(CLOSE,1,200,30,占:+NUMTOSTR(FLOOR(特大买入/总成交*100),0)+%),colorFFFF;DRAWTEXTEX(CLOSE,1,20,80,机构卖:+NUMTOSTR(特大卖出,0),colorFF00;DRAWTEXTEX(CLOSE,1,200,80,占:+NUMTOSTR(FLOOR(特大卖出/总成交*100),0)+%),colorFF00;D
13、RAWTEXTEX(CLOSE,1,20,140,大户买:+NUMTOSTR(大单买入,0),colorFF;DRAWTEXTEX(CLOSE,1,20,200,大户卖:+NUMTOSTR(大单卖出,0),colorFF00;DRAWTEXTEX(CLOSE,1,20,260,散户买:+NUMTOSTR(小单买入,0),colorFF00FF;DRAWTEXTEX(CLOSE,1,20,320,散户卖:+NUMTOSTR(小单卖出,0),colorFFFFAF;DRAWTEXTEX(CLOSE,1,20,380,特大标准:+NUMTOSTR(特单标准,2)+万元/单笔),colorFFFF00
14、;DRAWTEXTEX(CLOSE,1,200,140,占:+NUMTOSTR(FLOOR(大单买入/总成交*100),0)+%),colorFF;DRAWTEXTEX(CLOSE,1,200,200,占:+NUMTOSTR(FLOOR(大单卖出/总成交*100),0)+%),colorFF00;DRAWTEXTEX(CLOSE,1,200,260,占:+NUMTOSTR(FLOOR(小单买入/总成交*100),0)+%),colorFF00FF;DRAWTEXTEX(CLOSE,1,200,320,占:+NUMTOSTR(FLOOR(小单卖出/总成交*100),0)+%),colorFFFF
15、AF;DRAWTEXTEX(CLOSE,1,300,30,机构买:+NUMTOSTR(特买均价,2),colorFFFF;DRAWTEXTEX(CLOSE,1,300,80,机构卖:+NUMTOSTR(特卖均价,2),colorFF00;DRAWTEXTEX(CLOSE,1,300,140,大户买:+NUMTOSTR(大单买均价,2),colorFF;DRAWTEXTEX(CLOSE,1,300,200,大户卖:+NUMTOSTR(大单卖均价,2),colorFF00;DRAWTEXTEX(CLOSE,1,300,260,散户买:+NUMTOSTR(小单买均价,2),colorFF00FF;D
16、RAWTEXTEX(CLOSE,1,300,320,散户卖:+NUMTOSTR(小单卖均价,2),colorFFFFAF;DRAWTEXTEX(CLOSE,1,300,380,大单标准:+NUMTOSTR(大单标准,2)+万元/单笔),colorFFFF00;DRAWTEXTEX(CLOSE,1,770,1150,机构净量:+NUMTOSTR(特大买入-特大卖出,0),colorFFFF;DRAWTEXTEX(CLOSE,1,770,1210,大户净量:+NUMTOSTR(大单买入-大单卖出,0),colorFF00;DRAWTEXTEX(CLOSE,1,770,1270,大单买卖比:+NUM
17、TOSTR(主力买卖比,1),colorFF;DRAWTEXTEX(CLOSE,1,770,1330,大单笔数:+NUMTOSTR(大单笔数,0),colorFF00;DRAWTEXTEX(CLOSE,1,770,1390,笔均额:+NUMTOSTR(每笔均额,0),colorFF00FF;DRAWTEXTEX(CLOSE,1,770,1450,人均持股:+NUMTOSTR(人均持股,0)+),colorFFFF00;DRAWTEXTEX(CLOSE,1,480,380,散户跟风系数:+NUMTOSTR(FLOOR(散户跟风系数),2)+%),colorFFFF00;DRAWTEXTEX(CL
18、OSE,1,20,1150,买入:+NUMTOSTR(买入,0),colorFF;DRAWTEXTEX(CLOSE,1,20,1210,卖出:+NUMTOSTR(卖出,0),colorFF00;DRAWTEXTEX(CLOSE,1,20,1270,当前委买:+NUMTOSTR(委买,2),colorFF;DRAWTEXTEX(CLOSE,1,20,1330,当前委卖:+NUMTOSTR(委卖,2),colorFF00;DRAWTEXTEX(CLOSE,1,20,1390,平均委买:+NUMTOSTR(DYNAINFO(28)+DYNAINFO(28)+DYNAINFO(28)/3,2),col
19、orFF00;DRAWTEXTEX(CLOSE,1,20,1450,平均委卖:+NUMTOSTR(DYNAINFO(34)+DYNAINFO(35)+DYNAINFO(36)/3,2),colorFF00;DRAWTEXTEX(CLOSE,1,220,1150,小单撤买:+NUMTOSTR(小撤买,0),colorFFFFAF;DRAWTEXTEX(CLOSE,1,400,1150,+NUMTOSTR(FLOOR(小撤买/(总撤买+总撤卖)*100),0)+ %),colorFFFFAF;DRAWTEXTEX(CLOSE,1,220,1210,小单撤卖:+NUMTOSTR(小撤卖,0),col
20、orFFFFAF;DRAWTEXTEX(CLOSE,1,400,1210,+NUMTOSTR(FLOOR(小撤卖/(总撤买+总撤卖)*100),0)+ %),colorFFFFAF;DRAWTEXTEX(CLOSE,1,220,1270,大单撤买:+NUMTOSTR(大撤买,0),colorFFFFAF;DRAWTEXTEX(CLOSE,1,400,1270,+NUMTOSTR(FLOOR(大撤买/(总撤买+总撤卖)*100),0)+ %),colorFFFFAF;DRAWTEXTEX(CLOSE,1,220,1330,大单撤卖:+NUMTOSTR(大撤卖,0),colorFFFFAF;DRA
21、WTEXTEX(CLOSE,1,400,1330,+NUMTOSTR(FLOOR(大撤卖/(总撤买+总撤卖)*100),0)+ %),colorFFFFAF;DRAWTEXTEX(CLOSE,1,220,1390,总撤买单:+NUMTOSTR(总撤买,0),colorFF;DRAWTEXTEX(CLOSE,1,220,1450,总撤卖单:+NUMTOSTR(总撤卖,0),colorFF00;DRAWTEXTEX(CLOSE,1,480,30,总对敲买:+NUMTOSTR(总敲买,0),colorFFFF;DRAWTEXTEX(CLOSE,1,480,80,总对敲卖:+NUMTOSTR(总敲卖,
22、0),colorFF00;DRAWTEXTEX(CLOSE,1,480,140,小对敲买:+NUMTOSTR(对敲买,0),colorFF;DRAWTEXTEX(CLOSE,1,670,140,+NUMTOSTR(FLOOR(对敲买/总成交*100),0)+ %),colorFF;DRAWTEXTEX(CLOSE,1,480,200,小对敲卖:+NUMTOSTR(对敲卖,0),colorFF00;DRAWTEXTEX(CLOSE,1,670,200,+NUMTOSTR(FLOOR(对敲卖/总成交*100),0)+ %),colorFF00;DRAWTEXTEX(CLOSE,1,480,260,
23、大对敲买:+NUMTOSTR(大对敲买,0)+),colorFF00FF;DRAWTEXTEX(CLOSE,1,670,260,+NUMTOSTR(FLOOR(大对敲买/总成交*100),0)+ %),colorFF00FF;DRAWTEXTEX(CLOSE,1,480,320,大对敲卖:+NUMTOSTR(大对敲卖,0)+),colorFFFFAF;DRAWTEXTEX(CLOSE,1,670,320,+NUMTOSTR(FLOOR(大对敲卖/总成交*100),0)+ %),colorFFFFAF;DRAWTEXTEX(CLOSE,1,490,1150,进场筹码 :+NUMTOSTR(资金大
24、单进量,0),colorFFFF;DRAWTEXTEX(CLOSE,1,490,1210,出场筹码 :+NUMTOSTR(资金大单出量,0),colorFF00;DRAWTEXTEX(CLOSE,1,490,1270,筹码量差 :+NUMTOSTR(筹码量差,0),colorFF;DRAWTEXTEX(CLOSE,1,490,1330,当前上五档:+NUMTOSTR(委买总量,0),colorFF00;DRAWTEXTEX(CLOSE,1,490,1390,当前下五档:+NUMTOSTR(委卖总量,0),colorFF00FF;DRAWTEXTEX(CLOSE,1,490,1450,五档买卖差
25、:+NUMTOSTR(买卖存量,0),colorFFFF00;DRAWTEXTEX(CLOSE,1,770,30,上扫总计:+NUMTOSTR(总上扫,0),colorFFFF;DRAWTEXTEX(CLOSE,1,770,80,下扫总计:+NUMTOSTR(总下扫,0),colorFF00;DRAWTEXTEX(CLOSE,1,770,140,上扫单:+NUMTOSTR(上扫,0),colorFF;DRAWTEXTEX(CLOSE,1,940,140,+NUMTOSTR(FLOOR(上扫/总成交*100),0)+ %),colorFF;DRAWTEXTEX(CLOSE,1,770,200,下
26、扫单:+NUMTOSTR(下扫,0),colorFF00;DRAWTEXTEX(CLOSE,1,940,200,+NUMTOSTR(FLOOR(下扫/总成交*100),0)+ %),colorFF00;DRAWTEXTEX(CLOSE,1,770,260,上扫大单:+NUMTOSTR(大上扫,0),colorFF00FF;DRAWTEXTEX(CLOSE,1,940,260,+NUMTOSTR(FLOOR(大上扫/总成交*100),0)+ %),colorFF00FF;DRAWTEXTEX(CLOSE,1,770,320,下扫大单:+NUMTOSTR(大下扫,0),colorFFFFAF;DR
27、AWTEXTEX(CLOSE,1,940,320,+NUMTOSTR(FLOOR(大下扫/总成交*100),0)+ %),colorFFFFAF;rc:=DYNAINFO( 3);s2:=sma(c,2,1);s6:=sma(c,6,1);dk:=2*(s2-s6);STICKLINE(dk0,rc,rc+dk,0,1),COLORRED;STICKLINE(dk=1 AND 流通=5 AND 流通=10 AND 流通=20 AND 流通=50 AND 流通=100 AND 流通=300,QJ8,0);门限:=XS;特门限:=XS*2.67;特大买:=IF(BUYVOL=特门限,BUYVOL,
28、0);特大卖:=IF(SELLVOL=特门限,SELLVOL,0);大单买:=IF(BUYVOL=门限 AND BUYVOL=门限 AND SELLVOL特门限,SELLVOL,0);特大买入:=SUM(特大买,0);特大卖出:=SUM(特大卖,0);大单买入:=SUM(大单买,0);大单卖出:=SUM(大单卖,0);大买:=特大买入+大单买入;大卖:=特大卖出+大单卖出;r:=DYNAINFO(3);q:=DATACOUNT;hh:=DYNAINFO(5);LL:=DYNAINFO(6);f:=MAX(hh-r,r-LL);q1:=r-f*1.01;q2:=r-2*f*1.0125;白鲨大单势态 1:=SMA(大买,3,1); 白鲨大单势态:=SMA(大卖,3,1);kh:=HHV(MAX(大买,大卖),0);kL:=LLV(MIN(大卖,大买),0);kb:=(q1-q2)/(kh-kL);ky:=(q1+q2-kb*(kh+kL)/2;白鲨大单势态*kbq+kyq,COLORGRAY;白鲨大单势态 1*kbq+kyq,colorred;