通达信阴阳双带主图公式主图源码
DRAWTEXT_FIX(1,0.88,5,0,''),COLORRED;
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
Z4:=STRCAT(Z3,GNBLOCK);
Z5:=STRCAT(Z4,' ');
Z6:=STRCAT(Z5,FGBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z3,GNBLOCK)),LINETHICK1,COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z5,FGBLOCK)),LINETHICK1,COLORYELLOW;
DRAWKLINE(H,O,L,C);
DRAWNUMBER(ISLASTBAR ,C,C),COLORWHITE;
M1:MA(CLOSE,5),COLORWHITE,LINETHICK1;
M2:MA(CLOSE,13),COLORYELLOW,LINETHICK1;
M3:=MA(CLOSE,25),POINTDOT,COLORMAGENTA,LINETHICK1;
M4:MA(CLOSE,34),COLORGREEN,LINETHICK1;
M5:MA(CLOSE,55),COLORLIBLUE,LINETHICK2;
M6:=MA(CLOSE,108),POINTDOT,COLOR00CC99,LINETHICK1;
M7:=MA(CLOSE,108),COLOR0000FF,LINETHICK1;
M8:=MA(CLOSE,181),COLORBLUE,LINETHICK1;
YZB:=L=H AND (C+0.005-REF(C,1))/REF(C,1)*100
STICKLINE(YZB,REF(C,1),C,2.8,-1),COLORFFEEBB;
{DRAWBAND(M1,RGB(200,18,11),M2,RGB(2,191,0));
DRAWBAND(M4,RGB(96,18,21),M5,RGB(2,91,0));}
STICKLINE(M4 =M5,M4,M5,2,1),COLORFF00FF;
STICKLINE(M4 M5,M5,M4,2,1),COLOR66FF66;
STICKLINE(M1 =M2,M1,M2,1,1),COLOR99FFFF;
STICKLINE(M1 M2,M2,M1,1,1),COLORFF9933;
{DRAWBAND(M2,RGB(200,18,11),M3,RGB(2,191,0));
DRAWBAND(M7,RGB(96,18,21),M8,RGB(2,91,0));
STICKLINE(M7 =M8,M7,M8,0.02,1),COLORFF00FF;
STICKLINE(M7 M8,M7,M8,0.02,1),COLOR66FF66;
STICKLINE(M2 =M3,M2,M3,0.02,1),COLOR99FFFF;
STICKLINE(M2 M3,M3,M2,0.02,1),COLORFF9933; }
DRAWKLINE(H,O,L,C);
预警ZK1:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,LINETHICK4,COLORGREEN;
操盘ZD1:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK4,COLORRED;
趋势ZD2:=EMA(操盘ZD1,25),LINETHICK4,COLORBLUE;
DRAWKLINE(H,O,L,C);
STICKLINE(操盘ZD1 LOW AND 操盘ZD1 HIGH,操盘ZD1,MIN(MIN(OPEN,CLOSE),操盘ZD1),2,0),COLORYELLOW;
STICKLINE(操盘ZD1 MIN(C,O) AND 操盘ZD1 MAX(C,O),操盘ZD1,MIN(OPEN,CLOSE),2,0),COLORYELLOW;
STICKLINE(操盘ZD1 HIGH,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(操盘ZD1 HIGH,HIGH,LOW,0,0),COLORYELLOW;
VAR23:=100*XMA(XMA((C-REF(C,1)),6),6)/XMA(XMA(ABS((C-REF(C,1))),6),6);
回调买:=LLV(VAR23,2)=LLV(VAR23,7) AND COUNT(VAR23 0,2) AND CROSS(VAR23,MA(VAR23,2));
XG:=操盘ZD1 HIGH AND 回调买 AND L =操盘ZD1;
DRAWTEXT(XG,L-0.3,'▲资金异动▲'),COLOR0033FF;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,10000,10000),COLOR00AAAA,LINETHICK;
V2:=SMA(IF(C =REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*120/FROMOPEN*5,2,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
DY:=CURRBARSCOUNT=1 AND C REF(C,1);
DY2:=REF(V2,1)-DY;
XG2:=C O AND DY2 0.02 AND MA(C,5) MA(C,60) AND C/REF(C,1) =1.02 AND H 预警ZK1;
DRAWTEXT(XG2 AND L 操盘ZD1,L,'-----主力强买'),COLOR0033FF;
C2:=REF(C,1),NODRAW;
涨停:=REF(C,1)*1.1-C 0.01 AND H=C,NODRAW;
STICKLINE(涨停,OPEN,CLOSE,0001,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2 =(10-0.01*100/C2) AND L=C,1,0),NODRAW;
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORBLUE;
{DRAWTEXT(涨停,L-0.1,'涨停'),COLORYELLOW;
DRAWTEXT(跌停,H+0.3,'跌停'),COLORGREEN;}
AA1:=AMOUNT/V;
BB1:=L AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100
DD1:=L MA(C,5)*0.921;
EE1:=V MA(V,5)*1.5;
FF1:=BB1 AND CC1 AND DD1 AND EE1;
DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF;