以下是通达信专王副图指标源码
通达信专抄底短线王副图指标源码:
v1:=(C-MA(C,13))/MA(C,13)*(-100);
下降线:EMA(v1/10+EMA(C,10),3);
:LLV(EMA(H,3),1);
中轨:HHV(EMA(H,3),3),colorred,linethick2;
f:=100*(C-REF(C,1))/REF(C,1);
var1:=IF(C REF(O,1)ANDf 0,1,0);
var2:=IF(C REF(O,2)ANDf 0,1,0);
var3:=(var1=0ANDREF(var1,1)=1ANDvar2=0ANDREF(var2,1)=1);
红k:=IF(var3,L,H),colorred,POINTDOT;
STICKLINE(var3,OPEN,C,5,0),colorred;
vv:=STICKLINE(var1=1ANDREF(var1,1)=0ANDvar2=1ANDREF(var2,1)=0,O,C,3,0),coloryellow;
rsv:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
k:=SMA(rsv,3,1);
d:=SMA(k,3,1);
j:=(3*k-2*d);
p:=(H+C+L)/3;
var5:=j REF(j,1)ANDj REF(j,3)ANDj kANDj 40ANDk REF(k,1);
DRAWTEXT(var3ANDvar5,L*0.98,'买'),colorwhite;
DRAWICON(FILTER(j REF(j,1)ANDj 80ANDk REF(k,1),8),H*1.01,2);
a1:=REF(C,3)=HHV(C,10);
b1:=FILTER(a1,3);
c1:=BACKSET(b1,4);
hd:=FILTER(c1,3);
a2:=REF(C,3)=LLV(C,10);
b2:=FILTER(a2,3);
c2:=BACKSET(b2,4);
ld:=FILTER(c2,3);
a:=REF(C,BARSLAST(hd));
b:=REF(C,BARSLAST(ld));
t1:=BARSLAST(hd) BARSLAST(ld)ANDNOT(ld);
t2:=BARSLAST(hd) BARSLAST(ld)ANDNOT(hd);
峰:IF(t2,a,a),colorff00ff,POINTDOT;
STICKLINE(t2,a,a,5,0),colorff00ff;
谷:IF(t1,b,b),color80ff00,POINTDOT;
STICKLINE(t1,b,b,5,0),color80ff00;
va1:=MA(C,3)=HHV(MA(C,3),7);
va2:=MA(C,3) MA(C,5);
va3:=MA(C,5) MA(C,10)*1.01;
va4:=COUNT(MA(C,1) REF(C,1),2)=2;
DRAWTEXT(FILTER(va1ANDva2ANDva3ANDva4ANDf 3,1),H*1.02,'出'),colorwhite;
va5:=MA(C,3)=LLV(MA(C,3),7)ANDMA(C,3) MA(C,5)ANDMA(C,5)*1.02 MA(C,10)ANDj REF(j,1)ANDj REF(j,3);
va6:=(FILTER(va5,5));
DRAWTEXT(va6,L*0.98,'
VAR6:=REF(LOW,1)*0.83;
VAR7:=LOW*0.1;
VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;
VAR9:=EMA(VAR8,60);
VARA:=EMA(VAR6,60);
VARB:=VARA-2;
VARC:=IF(C =VAR9,VARB,VARA);
VARD:=MA(C,80)-MA(C,10)/17;
抄底:FILTER(VARC-VARB=0ANDCROSS((EMA(EMA(EMA(C,2),2),2)-REF(EMA(EMA(EMA(C,2),2),2),1))/REF
(EMA(EMA(EMA(C,2),2),2),1)*100,MA((EMA(EMA(EMA(C,2),2),2)
-REF(EMA(EMA(EMA(C,2),2),2),1))/REF(EMA(EMA(EMA(C,2),2),2),1)*100,3)),4);
V1:=MA(C,3)=HHV(MA(C,3),7);
V2:=MA(C,3) MA(C,5);
LC20:=REF(CLOSE,1);
RSI20:=SMA(MAX(CLOSE-LC20,0),4.1,1)/SMA(ABS(CLOSE-LC20),4.1,1)*100;
STICKLINE(CROSS(RSI20,11)*1,-10,20,2,0),COLORYELLOW;
VAR3A:=3;
VAR2A:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7)ANDCOUNT(DX 0,2)ANDCROSS(DX,MA(DX,2)),1,0);
加仓:IF(FILTER(YXF=1,5),20,-10),STICK,LINETHICK3;
A51:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA((C-LLV(L,55))/(HHV(H,55)-LLV
(L,55))*100,5,1);
FY:=EMA(A51,5);
A54:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
VAR2:=TROUGHBARS(3,15,1)
VAR3:=PEAKBARS(3,15,1)
VAR4:=IF(VAR2=1,50,0);
VAR5:=IF(VAR3=1,50,0);
底部:=IF(VAR4=50,10,0);
头部:=IF(VAR5=50,20,60);
未来买入:IF(底部=10ANDREF(底部,1)=10ANDREF(底部,2)=0,50,0),COLOR0000CC,LINETHICK2;
未来卖出:IF(头部=20ANDREF(头部,1)=20ANDREF(头部,2)=60,20,60),COLORGREEN,LINETHICK2;
参考买入延迟线:底部,LINETHICK1,COLORMAGENTA;
LT:=100;
LU:=0;
LV:=38.2;
LA:=REF(CLOSE,1);
LB:=((SMA(MAX((CLOSE-LA),0),5,1)/SMA(ABS((CLOSE-LA)),5,1))*100);
LC:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
LE:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
LF:=SUM(IF(((LC 0)AND(LC LD)),LC,0),10);
LG:=SUM(IF(((LD 0)AND(LD LC)),LD,0),10);
LH:=((LF*100)/LE);
LI:=((LG*100)/LE);
LJ:=MA(((ABS((LI-LH))/(LI+LH))*100),5);
AV:=(LB+LJ);
LK:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
LL:=(LB-LK);
LM:=(AV+LL);
LO:=((((2*CLOSE)+HIGH)+LOW)/4);
LP:=LLV(LOW,34);
LQ:=HHV(HIGH,34);
LR:=EMA((((LO-LP)/(LQ-LP))*100),13);
LS:=EMA(((0.667*REF(LR,1))+(0.333*LR)),2);
向导线:=LLV(LM,1);
STICKLINE((向导线 225),95,90,4,1),COLORFFCC00;
STICKLINE((向导线 235),100,95,4,1),COLORRED;
STICKLINE(CROSS(235,向导线),100,90,4,1),COLOR00FF00;
STICKLINE((LM (0-1)),0,5,4,1),COLOR00FF00;
STICKLINE((LM (0-5)),5,10,4,1),COLORYELLOW;
STICKLINE(CROSS(向导线,(0-3)),0,10,4,1),COLORRED;
BIAS1:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
BIAS2:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;
BIAS3:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
BIAS:=(BIAS1+2*BIAS2+3*BIAS3)/6;
乖离:=MA(BIAS,3);
底一:IF(乖离 -12AND乖离 =-18,-4,0),COLORCYAN,LINETHICK1;
STICKLINE(乖离 -12AND乖离 =-18,2,0,6,0),COLORCYAN;
底二:IF(乖离 -18,3,0),COLORFF35FF,LINETHICK1;
STICKLINE(乖离 -18,3,0,6,0),COLORFF35FF;
底三:IF(乖离 -6,5,0),COLORRED,LINETHICK1;
STICKLINE(乖离 -6,5,3,2,1),COLORRED;
底四:IF(乖离 -4.5,0,0),COLOR00FFFF,LINETHICK1;
STICKLINE(乖离 -4.5,0,1,3,1),COLOR00FFFF;
买:=(ZIG(3,5) REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1) =REF(ZIG(3,5),2))AND(REF(ZIG
(3,5),2) =REF(ZIG(3,5),3));
卖:=(ZIG(3,5) REF(ZIG(3,5),1))AND(REF(ZIG(3,5),1) =REF(ZIG(3,5),2))AND(REF(ZIG
(3,5),2) =REF(ZIG(3,5),3));
STICKLINE((买=1),(-10),0,1,0),COLOR0000FF;
DRAWTEXT((买=1),(-12),'买'),COLOR0000FF;
STICKLINE((卖=1),10,0,1,0),COLOR00FF00;
DRAWTEXT((卖=1),19,'卖'),COLOR00FF00;
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA
((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF REF(VAR10,1)ANDVOL REF(VOL,1)ANDCLOSE REF(CLOSE,1);
DRAWTEXT(VAR11ANDCOUNT(VAR11,30)=1,15,'大活动'),LINETHICK1,COLORFF00FF;
STICKLINE(VAR11ANDCOUNT(VAR11,30)=1,1,10,5,0),COLORFF00FF;
VAR12:=(HIGH+LOW+CLOSE)/3;
VAR13:=(VAR12-MA(VAR12,14))/(0.015*AVEDEV(VAR12,14));
VAR14:=(VAR12-MA(VAR12,70))/(0.015*AVEDEV(VAR12,70));
VAR15:=IF(VAR13 =150ANDVAR13 200ANDVAR14 =150ANDVAR14 200,10,0);
VAR16:=IF(VAR13 =-150ANDVAR13 -200ANDVAR14 =-150ANDVAR14 -200,-10,VAR15);
VAR17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;
VAR18:=100-ABS(VAR17);
VAR19:=IF(VAR18 90,VAR18,100);
VAR1A:=IF(VARE 0,VARE,0);
VAR1B:=IF(VAR14 =200ANDVAR13 =150,15,IF(VAR14 =-200ANDVAR13 =-150,-15,VAR16))+60;
VAR1C:=VAR1A 48ANDVAR1B 60ANDVAR19
DRAWTEXT(VAR1CANDCOUNT(VAR1C,30)=1,15,'大笔出货'),LINETHICK1,COLORFFCC66;
STICKLINE(VAR1CANDCOUNT(VAR1C,30)=1,0,10,5,0),COLORFFCC66;
P1:=5;
P2:=4;
VARA:=LLV(LOW,P1);
VARB:=HHV(HIGH,P1);
K:EMA((CLOSE-VARA)/(VARB-VARA)*100,P2),COLORLIMAGENTA;
D:EMA(0.667*REF(K,1)+0.333*K,2),COLORWHITE;
通达信专抄底短线王副图指标截图