以下是高成功率的通达信20个经典公式源码和使用说明
高成功率的通达信20个经典公式源码:
线:MA(C,30),DOTLINECOLORFF00CC;
IF(趋势线 =REF(趋势线,1),趋势线,DRAWNULL),DOTLINE,COLORYELLOW;
回归斜率线A:EMA(SLOPE(C,21)*20+C,42);
回归斜率线B:REF(回归斜率线A,2);
IF(回归斜率线A REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORRED;
IF(回归斜率线A REF(回归斜率线A,1),回归斜率线A,DRAWNULL),COLORGREEN;
IF(回归斜率线B REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORRED;
IF(回归斜率线B REF(回归斜率线B,1),回归斜率线B,DRAWNULL),COLORGREEN;
经典RL:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
经典K:=SMA(经典RL,3,1);经典D:=SMA(经典K,3,1);经典J:=3*经典K-2*经典D;
MAHL1:=100*((EMA((H+L)/2,3)-LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20)))/(LLV(EMA((H+L)/2,5),30)-(EMA(H,20)-EMA(L,20))));
MAHL2:=IF(EMA(C,2) 回归斜率线AANDMAHL1 0,EMA(C,3),LLV(EMA((H+L)/2,5),30));{A}
MAHL3:=IF(EMA(C,2) 回归斜率线AANDMAHL1 0,LLV(EMA((H+L)/2,5),30),EMA(C,5));{A}
{回归斜率带:DRAWBAND(回归斜率线A,RGB(235,0,230),REF(回归斜率线A,2),RGB(0,104,154));}
{C 昨C红K柱+C O红K柱C 昨C红K柱C=昨C是跟白色24线
C 昨C蓝K柱+C O红K柱C 昨C蓝K柱}
{STICKLINE(CLOSE REF(CLOSE,1),HIGH,LOW,0,0),COLORRED;
STICKLINE(C OANDC REF(C,1),C,O,3,0),COLORFFCC00;}
{STICKLINE(CLOSE REF(CLOSE,1)ANDC O,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),H,L,3,1),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,0),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(C REF(C,1)ANDC O,C,O,3,0),COLORFFCC00;
STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,3,0),COLOR990000;
STICKLINE(C REF(C,1)ANDC O,OPEN,CLOSE,2.7,0),COLORCC0000;
STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,2.1,0),COLORFF4400;
STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,1.5,0),COLORFF8800;
STICKLINE(CLOSE REF(C,1),OPEN,CLOSE,0.9,0),COLORFFCC00;}
{经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;
经典KDJ买:IF(CROSS(经典K,经典D),(L-(H-L)/2),DRAWNULL),POINTDOT,LINETHICK6,COLOR0000FF;}
DRAWICON(CROSS(经典K,经典D),L*0.96,26);
{高亮红}
回归斜率买:IF(CROSS(EMA(C,3),回归斜率线A),(L-(H-L)/3),DRAWNULL),POINTDOT,COLOR0000FF;{高亮红}
回归斜率买_:DRAWICON(CROSS(EMA(C,3),回归斜率线A),L*0.98,1),{买};
回归斜率卖:IF(CROSS(回归斜率线A,EMA(C,2)),(H+(H-L)/3),DRAWNULL),POINTDOT,COLOR00CF00;{中绿}
卖:DRAWICON(CROSS(回归斜率线A,EMA(C,2)),H*1.03,2);
经典KDJ卖:IF(CROSS(经典D,经典K),(H+(H-L)/2),DRAWNULL),CROSSDOT,LINETHICK3,COLOR00CF00;{中绿};
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,9,1);
D:=SMA(K,9,1);
J:=3*K-2*D;
X2:=LLV(J,2)=LLV(J,8);
{DRAWTEXT(CROSS(J,REF(J+0.01,1))ANDX2ANDJ 20,LOW*0.99,'★买'),COLORYELLOW;}
DRAWICON(CROSS(J,REF(J+0.01,1))ANDX2ANDJ 20,LOW*0.99,23);
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(84,VAR7),H*1.01,''),COLORYELLOW;
AA:=(REF(H,1)-MAX(REF(C,1),REF(O,1)))/(REF(H,1)-REF(L,1)) 0.6AND(MIN(O,C)-L)/(H-L) 0.6ANDVOL REF(VOL,1);
DRAWTEXT(AA,L*0.99,'揉搓'),COLORRED;
C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3 =(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,3,0),COLORBLUE;
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
{DRAWTEXT(跌停,H+0.1,'跌停'),COLORGREEN;}
:=IF(REF(C,1)*1.095-C 0.01,1,0);
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
{DRAWTEXT(涨停,L-0.1,'板'),COLORYELLOW;}
M1:=EMA(EMA(C,21),3);
M2:=EMA(EMA(C,34),3);
TT2:=CROSS(C,M1)ANDCROSS(C,M2);
DRAWTEXT(TT2,L*0.96,'阳');
通达信20个:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100;
经典公式:MA(通达信20个,20);
STICKLINE(通达信20个-经典公式 0,通达信20个,经典公式,2,0),COLORRED,LINETHICK1;
cceee2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
cceee3:=SMA(cceee2,3,1);
cceee4:=(CLOSE-MA(CLOSE,7))/MA(CLOSE,7)*100;
cceee5:=ABS(cceee4),COLORGREEN;
wwsdde1:=COST(85);
wwsdde2:=COST(15);
wwsdde3:=wwsdde1-wwsdde2;
wwsdde4:=(wwsdde1+wwsdde2)/2;
wwsdde5:=wwsdde3/wwsdde4*100 30,LINETHICK0;
wwsdde6:=HHV(HIGH,250);
wwsdde7:=LLV(LOW,250);
wwsdde8:=wwsdde6-wwsdde7;
wwsdde9:=(wwsdde4-wwsdde7);
esssd1:=wwsdde4 (wwsdde8*04+wwsdde7),LINETHICK0;
esssd1wwsdde5:=wwsdde5ANDesssd1;
esssd4:=C/REF(C,1) 1.04;
esssd2:=EMA(100*(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30)),3);
esssd5:=esssd2 =75{ANDesssd2 =91}ANDC 0ANDCLOSE OPENANDC=H;
esssd6:=esssd5ANDesssd1wwsdde5ANDwwsdde9ANDWINNER(C) =0.91ANDesssd4,COLORGREEN,LINETHICK3;
esssd7:=CROSS(cceee5,10)ANDesssd6;
DRAWICON(esssd7,经典公式,25);
DRAWTEXT(esssd7,经典公式,' ----天下无敌'),COLORRED;
esssd8:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100;
esssd9:MA(esssd8,5),COLORBLUE,LINETHICK2;
cceee20:=(CLOSE-MA(CLOSE,55))/MA(CLOSE,55)*100;
esssd99:MA(cceee20,3),LINETHICK2,COLORGREEN;
DRAWICON(CROSS(esssd99,经典公式),经典公式,17);
工作线:(Ema(C,14)),POINTDOT,LINETHICK3,COLOR22acDE;
生命线:(MA(C,25)),LINETHICK1,COLORMAGENTA;
不惑线:(MA(C,40)),COLORCYAN,LINETHICK1;
姊妹线:(EMA(C,56)),POINTDOT,COLOR33CCDD,LINETHICK1;
A3:=EMA((((SLOPE(C,21))*20)+C),68);
A4:=EMA(C,10);
A5:=REF(C,2);
A6:=((SMA((MAX((C-A5),0)),6,1))/(SMA(Abs((C-A5)),6,1)))*100;
A7:=IF(((A6 (REF(A6,1)))AND(A6 79)),A6,0);
A8:=LLV(L,21);
A9:=HHV(H,21);
A10:=EMA((((CLOSE-A8)/(A9-A8))*100),5);
A11:=EMA((((CLOSE-A8)/(A9-A8))*50),13);
A12:=EMA(((0.667*(REF(A10,1)))+(0.333*A10)),2);
A13:=LLV(L,55);
A14:=HHV(H,34);
A15:=EMA((((C-A13)/(A14-A13))*100),3);
A16:=(A11+A15)/2;
A17:=EMA(((0.667*(REF(A15,1)))+(0.333*A10)),2);
A18:=EMA(A16,5);
A19:=EMA(((0.667*(REF(A18,1)))+(0.333*A18)),2);
A20:=crOSS(A10,A11);
A21:=(CROSS(A10,A19))AND(A19
A22:=A21*0.6;
A23:=((C+L)+H)/3;
A24:=EMA(A23,6);
A25:=EMA(A24,5);
A26:=CROSS(A24,A25);
DRAWICON(A26,(L/1.015),1),LINETHICK2,COLORMAGENTA;
DRAWTEXT(CROSS(A4,A3),L,'线上阴线买停板'),LINETHICK4,COLOR22ACDE;
stICKLINE(((C =工作线)AND(C =O)),H,L,0,1),COLORRED;
STICKLINE(((C =工作线)AND(C =O)),O,C,2,1),COLORRED;
STICKLINE(((C =工作线)AND(C =O)),H,L,0,0),COLORRED;
STICKLINE(((C =工作线)AND(C =O)),O,C,2,0),COLORRED;
STICKLINE(((C 工作线)AND(C =O)),H,L,0,1),COLORGREEN;
STICKLINE(((C 工作线)AND(C =O)),O,C,2,1),COLORGREEN;
STICKLINE(((C 工作线)AND(C =O)),H,L,0,0),COLORGREEN;
STICKLINE(((C 工作线)AND(C =O)),O,C,2,0),COLORGREEN;
七天线:MA(C,7),COLORGRAY,LINETHICK2;涨停:=IF((C-REF(C,1))*100/REF(C,1) =(10-0.01*100/REF(O,1)),1,0);
STICKLINE(涨停,O,C,1,0),COLORYELLOW;
ZDF:=(C-REF(C,1))/REF(C,1)*100;VAR2S:=(2*CLOSE+HIGH+LOW)/4;
VAR3S:=IF(YEAR =2099ANDMONTH 2,0,1);
VAR4S:=LLV(LOW,5);VAR5S:=HHV(HIGH,4);
:=EMA((VAR2S-VAR4S)/(VAR5S-VAR4S)*100,4)*VAR3S;
:=EMA(0.667*REF(散户,1)+0.333*散户,2)*VAR3S;
DRAWTEXT(CROSS(散户,庄家)AND散户 30,L-0.05,'←吸'),COLORRED;
VAR2:=(REF(HIGH,1)+REF(LOW,1))/2;
VAR3:=MA(CLOSE,21)+2*STD(CLOSE,21);
DRAWICON(CROSS(VAR2,VAR3),HIGH*1.035,2);
DRAWTEXT(CROSS(VAR2,VAR3),HIGH*1.02,'卖出'),COLORGREEN;
VAR4:=REF(CLOSE,1);
VAR5:=SMA(MAX(CLOSE-VAR4,0),7,1)/SMA(ABS(CLOSE-VAR4),7,1)*100;
VAR6:=CROSS(79,VAR5);
VAR7:=FILTER(VAR6,4);
DRAWICON(VAR7,HIGH*1.035,2);
DRAWTEXT(VAR7,HIGH*1.02,'卖出'),COLORGREEN;
高成功率的通达信20个经典公式截图