以下是通达信翻倍指标源码
通达信翻倍黑马指标源码:
VAR1:=(CLOSE-MA(CLOSE,21))/MA(CLOSE,21)*100;
VAR2:=(CLOSE-LLV(LOW,43))/(HHV(HIGH,43)-LLV(LOW,43))*100;
VAR3:=SMA(VAR2,2,1);
黑:100+(-ABS(VAR1)),COLORRED;
马:SMA(VAR3,2,1);
透:ABS(VAR1),COLORGREEN;
视:50,COLORFFAA00,LINETHICK3;
A:80;
B:20;
买:STICKLINE(CROSS(马,透),3,20,2,0),COLORRED,LINETHICK1;
STICKLINE(CROSS(马,透),20,25,2,0),COLORFF9900,LINETHICK1;
DRAWTEXT(CROSS(马,透),30,''),COLORFFFFCC;
卖:STICKLINE(CROSS(马,黑),70,90,2,0),COLORRED,LINETHICK1;
STICKLINE(CROSS(马,黑),90,99,2,0),COLORFF9900,LINETHICK1;
DRAWTEXT(CROSS(马,黑),70,''),COLORFFFFCC;
2:IF(CROSS(马,20),1,0);
DRAWICON((CROSS(马,20)),20,1);
DRAWICON((CROSS(马,20)),-20,25);
VA1:=HHV(HIGH,9)-LLV(LOW,9);
VA2:=HHV(HIGH,9)-CLOSE;
VA3:=CLOSE-LLV(LOW,9);
VA4:=VA2/VA1*100-70;
VA5:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VA6:=(2*CLOSE+HIGH+LOW)/4;
VA7:=SMA(VA3/VA1*100,3,1);
VA8:=LLV(LOW,34);
VA9:=SMA(VA7,3,1)-SMA(VA4,9,1);
VARA:=IF(VA9 100,VA9-100,0);
VARB:=HHV(HIGH,34);
VARC:=EMA((VA6-VA8)/(VARB-VA8)*100,13);
VARD:=EMA(0.667*REF(VARC,1)+0.333*VARC,2);
VARE:=SMA(MAX(CLOSE-REF(CLOSE,1),0)/CLOSE,8,1)/SMA(ABS(INDEXC-REF(INDEXC,1))/INDEXC,8,1)*100-25;
VARF:=MA(VARE,3);
生命线:EMA(VARD,1),COLORFF00FF;
VAR1:=HHV(HIGH,9)-LLV(LOW,9);
VAR2:=HHV(HIGH,9)-CLOSE;
VAR3:=CLOSE-LLV(LOW,9);
VAR4:=((VAR2)/(VAR1))*(100)-70;
VAR5:=((CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60)))*(100);
VAR6:=((2)*(CLOSE)+HIGH+LOW)/(4);
VAR7:=SMA(((VAR3)/(VAR1))*(100),3,1);
VAR8:=LLV(LOW,34);
VAR9:=SMA(VAR7,3,1)-SMA(VAR4,9,1);
VAR10:=IF((VAR9 100),VAR9-100,0);
VAR11:=HHV(HIGH,34);
B1:=EMA(((VAR6-VAR8)/(VAR11-VAR8))*(100),8);
B2:EMA(B1,5),COLORFF7000;
STICKLINE(B1-B2 0,B1,B2,2,0),COLORFFFFFF;
STICKLINE(B1-B2 0,B1,B2,2,0),COLOR00FF00;
V1:=MA(C,5)=HHV(MA(C,5),20);
V2:=MA(C,5) MA(C,10);
V3:=MA(V,5) MA(V,40)*1.01;
V4:=COUNT(MA(C,1) REF(C,1),2)=2;
VV:=V1ANDV2ANDV3ANDV4;
STICKLINE(V1ANDV2ANDV3ANDV4,100,110,2,0),COLOR00FF00;
A1:=EMA(CLOSE,8);
A2:=EMA(A1,20);
A3:=CROSS(A1,A2);
A4:=A1 EMA(CLOSE,120);
STICKLINE(A3ANDA4,100,110,2,0),COLOR00FF00;
A5:=3*SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,21,1)-2*
SMA(SMA((CLOSE-LLV(LOW,18))/(HHV(HIGH,18)-LLV(LOW,18))*100,20,1),8,1);
安全位:=20;
低位转强:IF(CROSS(A5,安全位),50,0),COLORRED,STICK,LINETHICK4;
开始拉升:IF(CROSS(VARC,生命线)ANDVARC VARDANDVARC 55ANDC O,50,0),COLORFF00FF,STICK,LINETHICK4;
A6:=LLV(C,500)=LLV(C,5)ANDC/REF(C,1) (1+9.8/100);
极低涨:IF(A6,50,0),COLORYELLOW,STICK,LINETHICK4;{出现黄柱,呈现底部};
AA:=crOSS(ma(C,5),MA(C,20))ANDCROSS(MA(C,5),MA(C,30))ANDCROSS(MA(C,5),MA(C,60));
BBB:=MA(C,60) MA(C,10)ANDCROSS(MA(C,10),MA(C,30))ANDMA(C,30) MA(C,20)ANDAbs(MA(C,60)-MA(C,20))/MA(C,20) 0.05;
CCC:=MA(C,30) MA(C,5)ANDCROSS(MA(C,5),MA(C,20))ANDMA(C,20) MA(C,10);
DD:=ABS((MA(C,5)-MA(C,10))+(MA(C,10)-MA(C,20))+(MA(C,20)-MA(C,30))) 0.02ANDMA(C,5) REF(MA(C,5),1)ANDMA(C,10) REF(MA(C,10),1);
EE:=MA(C,20) MA(C,5)ANDCROSS(MA(C,5),MA(C,10))ANDMA(C,10) MA(C,60)ANDABS(MA(C,20)-MA(C,60))/MA(C,60) 0.05;
FF:=AAORBBBORCCCORDDOREE;
探测:=FFANDFILTER(FF,8);
DRAWTEXT(探测,L*0.958,'●(庄现)'),COLORRED;
stICKLINE(探测,H,L,0.3,0),COLORRED;
STICKLINE(探测,O,C,5,0),LINETHICK2,COLORRED;
AA1:=AMOUNT/;
BB1:=L1.2;
DD1:=L MA(C,5)*0.921;
EE1:=VOL MA(V,5)*1.5;
FF1:=BB1ANDCC1ANDDD1ANDEE1,COLORRED,LINETHICK0;
DRAWTEXT(FF1,L*0.99,'●(潜伏)'),COLORYELLOW;
STICKLINE(FF1,H,L,0.3,0),COLORYELLOW;
STICKLINE(FF1,O,C,5,0),LINETHICK2,COLORYELLOW;
DRAWTEXT(CROSS((REF(HIGH,1)+REF(LOW,1))/2,MA(CLOSE,20)+2*STD(CLOSE,20)),
HIGH*1.02,'●警'),COLORGREEN;
N:=5;E:=(HIGH+LOW+OPEN+2*CLOSE)/5;AAA:=2*E-LOW,NODRAW;AB:=2*E-HIGH,NODRAW;acC:=E+(HIGH-LOW),NODRAW;ADD:=E-(HIGH-LOW),NODRAW;今阻力:REF(AAA,1),COLORWHITE,NODRAW;今支撑:REF(AB,1),COLORYELLOW,NODRAW;明阻力:AAA,COLORCYAN,NODRAW;明支撑:AB,COLORMAGENTA,NODRAW;明:ACC,COLORGREEN,NODRAW;明:ADD,COLORLICYAN,NODRAW;{压力+支撑}压力:MA(REF(HHV(C,30),1),2),COLORBLACK;支撑:MA(REF(LLV(C,30),1),2),COLORBLACK;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+16
*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+13*REF(MID,7)+12*REF(MID,8)+11
*REF(MID,9)+10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+7*REF(MID,13)+6*REF(MID,14)+5
*REF(MID,15)+4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
马线:MA(牛线,6),COLORGREEN;
MAA5:MA(C,5),COLORFF00FF,LINETHICK2;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7)ANDCOUNT(A8 0,2)ANDCROSS(A8,MA(A8,2));
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;
LC:=REF(CLOSE,1);
:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
FF2:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
日:=150;昨前:=3;
高1:=REF(HHV(H,日),昨前);
低1:=REF(LLV(L,日),昨前);
H1:=高1-(高1-低1)*0.191;
H2:=高1-(高1-低1)*0.382;
H3:=高1-(高1-低1)*0.5;
H4:=高1-(高1-低1)*0.618;
H5:=高1-(高1-低1)*0.809;
顶:REFDATE(高1,DATE),COLORRED;
一0.809:REFDATE(H1,DATE),COLORYELLOW;
二0.618:REFDATE(H2,DATE),COLORMAGENTA;
三0.500:REFDATE(H3,DATE),COLORWHITE;
四0.382:REFDATE(H4,DATE),COLORGREEN;
五0.191:REFDATE(H5,DATE),COLORYELLOW;
低:REFDATE(低1,DATE),COLORRED;
通达信翻倍黑马指标截图