以下是通达信阴阳乾坤带主图指标公式源码和使用说明
通达信阴阳乾坤带主图指标公式源码:
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
撤:IF(V4 =0,V4,0),colorblue;
主力进:IF(V4 =0,V4,0),COLORFF00FF;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
进场:IF(VB =0,VB,0),colorred;
大盘资金撤走:IF(VB =0,VB,0),colorgreen;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
线:EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金:STICKLINE(趋势线 =13,0,20,5,0),COLORCC9900;
AA:=(趋势线 =13)ANDFILTER((趋势线 =13),15);
DRAWTEXT(AA,30,'准备现金'),COLORCC9900;
买入股票:STICKLINE(趋势线 =13ANDV12 13,0,50,5,0),COLOR0099FF;
BB:=(趋势线 =13ANDV12 13)ANDFILTER((趋势线 =13ANDV12 13),10);
DRAWTEXT(BB,60,'神牛'),COLOR0099FF;
卖临界:STICKLINE(趋势线 90AND趋势线 REF(趋势线,1),100,95,15,1),COLORFFFF00;
见顶清仓:FILTER(趋势线 90AND趋势线 REF(趋势线,1)AND主力进 REF(主力进,1),8);
DRAWTEXT(见顶清仓,90,'神牛'),coloryellow;
CC:=(趋势线 =90ANDV12)ANDFILTER((趋势线 =90ANDV12),10);
STICKLINE(大盘资金进场AND趋势线 13,0,30,10,0),colorred;
STICKLINE(大盘资金撤走AND趋势线 90,0,30,10,0),colorgreen;
STICKLINE(主力进AND趋势线 13,0,40,10,0),COLORFF00FF;
STICKLINE(主力撤AND趋势线 90,0,40,10,0),colorblue;
强弱分界:50,colorgreen;
顶:90,colorred;
底:10,colorlired;
AA:=1;
MID:EMA(CLOSE,17)*AA,LINETHICK1,COLORFFFFFF;
UPPER:MID+2*STD(CLOSE,17),LINETHICK1,COLOR0000FF;
LOWER:MID-2*STD(CLOSE,17),LINETHICK1,COLOR00CC00;
UPPERO:MID+3*STD(CLOSE,17),LINETHICK1,COLORFF00FF;
LOWERO:MID-3*STD(CLOSE,17),LINETHICK1,COLOR00AA00;
LOCK:=IF(TIME 1160101,1,0);
VARA:=MA(CLOSE,20);
VAR1:IF(VARA REF(VARA,2),VARA,IF(VARA REF(VARA,2),VARA,VARA)),COLOR00FF00;
IF(VARA REF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLORFF00FF;
IF(VARA=REF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLORFF0000;
IF(VARA REF(VARA,2),VARA,DRAWNULL),LINETHICK2,COLOR00FF00;
买入:IF(VARA REF(VARA,2)ANDREF(VARA =REF(VARA,2),1),1,0),NODRAW,COLORAAAAAA;
DRAWICON(crOSS(LOW,LOWERO),LOWERO*0.96,11);
DRAWICON(CROSS(HIGH,UPPERO),HIGH,12);
TY:=CLOSE;
A1:=REF(TY,10)=HHV(TY,2*10+1);B1:=FILTER(A1,10);C1:=BacKSET(B1,10+1);HD:=FILTER(C1,10);
A2:=REF(TY,10)=LLV(TY,2*10+1);B2:=FILTER(A2,10);C2:=BACKSET(B2,10+1);LD:=FILTER(C2,10);
A:=REF(CLOSE,BArslAST(HD));B:=REF(CLOSE,BARSLAST(LD));
T1:=BARSLAST(HD) BARSLAST(LD)ANDNOT(HD);
T2:=BARSLAST(HD) BARSLAST(LD)ANDNOT(LD);
波峰:IF(T1,A,A),COLORFF00FF,POINTDOT;
STICKLINE(T1,A,A,1.5,0),COLORFF00FF;
波谷:IF(T2,B,B),COLOR80FF00,POINTDOT;
STICKLINE(T2,B,B,1.5,0),COLOR80FF00;
N:=10;
CG:ma((LOW+HIGH+CLOSE*2)/4,N);
FL:HHV(CG,3),COLORGREEN,POINTDOT;
FS:IF(CG FL,(CG-(FL-CG)),FL),COLORGREEN,;
FL1:HHV(CG,5),COLORGREEN,POINTDOT;
FS1:IF(CG FL1,(CG-(FL1-CG)),FL1),COLORGREEN,;
FL2:HHV(CG,7),COLORGREEN,POINTDOT;
FS2:IF(CG FL2,(CG-(FL2-CG)),FL2),COLORGREEN,;
FL3:HHV(CG,9),COLORFFABA3,LINETHICK2;
FS3:IF(CG FL3,(CG-(FL3-CG)),FL3),COLORFFABA3,LINETHICK2;
ZLZC1:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.618)),POINTDOT,LINETHICK2;
ZLZC2:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.5)),POINTDOT,LINETHICK2;
ZLZC3:=(HHV(H,144)-((HHV(H,144)-LLV(L,144))*0.382));
POLYLINE:(FS3 MA(FS3,5),FS3),COLOR1010F1,LINETHICK2;
stICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR000055;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000077;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR000099;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000BB;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLOR0000DD;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000FF;
STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHITE;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR555555;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORFFFFFF;
STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,1),COLORCYAN;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,3,0),COLOR990000;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLORCC0000;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORFF4400;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORFF8800;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORFFCC00;
STICKLINE(CLOSE REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORCYAN;
LC:=REF(CLOSE,1);:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(Abs((CLOSE-LC)),3,1))*100);
FF:=EMA(CLOSE,3);MA15:=EMA(CLOSE,21);DRAWTEXT(crOSS(FF,MA15),(LOW*0.98),'*'),COLORYELLOW;
DRAWTEXT(CROSS(88,RSI),(HIGH*1.02),'*背离'),COLORGREEN;
mtm:=C-REF(C,1);DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
买:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX 0,2)ANDCROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(买=1,5),LOW-0.03,'*拉升'),COLORLIMAGENTA;
通达信阴阳乾坤带主图指标公式截图