M:=13;
M1:=84;
M2:=210;
N:=21;
攻击线:=WMA(C,6),LINETHICK1,COLOR000075;
防守线:EMA(C,13),LINETHICK1,COLOR8080FF;
操盘线:SMA(C,M,1),LINETHICK1,COLOR408080;
牛熊线:MA(C,M1),LINETHICK2,COLOR5E5E2F;
半年线:=SMA(C,M2,1),LINETHICK1,POINTDOT,COLOR0000FF;
年线:IF(CURRBARSCOUNT<=210,SMA(C,M2,1),DRAWNULL),POINTDOT,LINETHICK1,COLOR00FF00;
{大幅涨跌}
ZT:=C>REF(C,1)*1.092 {AND C<REF(C,1)*1.105};
DT:=C<REF(C,1)*0.901 AND C>REF(C,1)*0.898;
{涨停}
STICKLINE(ZT,C,O,2,0),COLOR0000C8;
{涨幅5点以上}
DZ5:=C>REF(C,1)*1.05 AND C<REF(C,1)*1.092;
STICKLINE(DZ5,C,O,0.1,0),COLOR00B3B3;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
A:=REF(HY_INDEXC,1);
行业涨幅:IF(A>0,(HY_INDEXC-A)*100/A,0),COLOR00FFFF,NODRAW;
{cci}
TYP1:=(HY_INDEXH+HY_INDEXL+HY_INDEXC)/3;
行业:=(TYP1-MA(TYP1,N))*1000/(15*AVEDEV(TYP1,N));
行业慢:=SMA(行业,5,1),COLORC08000;
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,N))*1000/(15*AVEDEV(TYP,N)),COLORC0C0C0;
CCI慢:=SMA(CCI,5,1),COLOR408080;
NOTEXT行业1:IF(行业>-50,牛熊线,DRAWNULL),LINETHICK2,COLOR0000B5;
NOTEXT行业2:IF(行业>-5,牛熊线,DRAWNULL),LINETHICK2,COLOR00AEAE;
NOTEXT个股1:IF(CCI>-50,操盘线,DRAWNULL),LINETHICK1,COLOR0000B5;
NOTEXT个股2:IF(CCI>-5,操盘线,DRAWNULL),LINETHICK1,COLORC600C6;
NOTEXT个股3:IF(CCI>-5 AND CCI> 行业,操盘线,DRAWNULL),LINETHICK1,COLOR00CECE;
{标注流向}
换手率:=(vol/CAPITAL*100);
XG91:=COST(91);
XG84:=COST(83);
XG63:=COST(63);
XG51:=COST(51);
XG27:=COST(27);
XG10:=COST(10);
XG11:=COST(10);
{图标}
XGCB1:=(C-COSTEX(C,3))/C*100*3;
XGCB2:=MA(XGCB1,7);
累计仓率:=(XGCB1-XGCB2);
净流入:=(XGCB1-REF(XGCB1,1));
净流入万元:=净流入*V*C/10000;
{强弱区分}
TPOL:=REF(HHV(净流入,63),1);
TPOL1:=crOSS(净流入,TPOL)AND C>MA(C,10);
TPOL2:=FILTER(TPOL1,5);
DRAWICON(TPOL2,L*0.99,23);
TPOG:=REF(HHV(净流入,120),1);
TPOG1:=CROSS(净流入,TPOG) AND C>EMA(C,16);
TPOG2:=FILTER(TPOG1,3);
DRAWICON(TPOG2,L*0.99,38);
{跨档涨势}
kdZX:=净流入>2.1;
DRAWTEXT(KDZX,O*0.99,'○'),COLOR008080;
KDZ511:=净流入>3;
DRAWTEXT(KDZ511,O*0.99,'○'),COLOR0000FF;
KDZ51:=净流入>5.1;
DRAWTEXT(KDZ51,O*0.99,'○'),COLOR00FFFF;
KDZ63:=净流入>8.1 OR (净流入>5 AND C<防守线);
DRAWTEXT(KDZ63,O*0.99,'●'),COLOR00B5B5;
KDZ631:=净流入>16;
DRAWTEXT(KDZ631,O*0.99,'●'),COLORB500B5;
{画线}
DDHM:=REF(LLV(L,180),1);
STICKLINE(ISLASTBAR,DDHM,DDHM,500,-1),COLOR717171;
DRAWTEXT(ISLASTBAR, DDHM, ' 底线'),COLOR717171;
DDHM1:=IF(C>DDHM*1.42,DRAWNULL,IF(C>DDHM,DDHM*1.07,DRAWNULL));
STICKLINE(ISLASTBAR,DDHM1,DDHM1,25,-1),COLOR717171;
{0.14}
DD114:=IF(C>DDHM*1.42,DRAWNULL,IF(C>DDHM,DDHM*1.14,DRAWNULL));
STICKLINE(ISLASTBAR,DD114,DD114,60,-1),COLOR717171;
DRAWTEXT(ISLASTBAR, DD114, ' 14%'),COLOR717171;
{kdj}
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
{天龙区}
天龙攻击:=EMA(WINNER(C)*100,3);
NOTEXT趋势线:=EMA(天龙攻击,22);
季线:=MA(天龙攻击,35);
源码未复制完.......下载附件全源码