以下是通达信出击精准指标公式源码和截图
通达信买卖出击精准逃顶抄底指标公式源码:
DRAWBAND(MA(CLOSE,5),RGB(155,50,50),MA(CLOSE,10),RGB(83,123,68));
DRAWKLINE(H,O,L,C);
MA5:MA(CLOSE,5),COLORWHITE;
MA10:MA(CLOSE,10),COLORYELLOW;
MA20:MA(CLOSE,24),COLORMAGENTA;
MA60:MA(CLOSE,60),COLORGREEN;
MA120:MA(CLOSE,120),COLORLIMAGENTA;
MA240:MA(CLOSE,240),COLORBLUE;
DRAWICON(CROSS(MA10,MA20),MA20,1);{10日上穿20日做记号}
DRAWICON(CROSS(MA20,MA60),MA60,1);{20日上穿60日做记号}
DRAWICON(CROSS(MA20,MA120),MA120,1);{20日上穿60日做记号}
DRAWICON(CROSS(MA20,MA240),MA240,1);{20日上穿120日做记号}
DRAWICON(CROSS(MA60,MA120),MA60,1);{60日上穿120日做记号}
DRAWICON(CROSS(MA60,MA240),MA240,1);{60日上穿240日做记号}
DRAWICON(CROSS(MA120,MA240),MA240,1);{120日上穿240日做记号}
DRAWICON(CROSS(MA10,MA5),MA10,2);{5日下穿10日做记号}
DRAWICON(CROSS(MA20,MA10),MA20,2);{10日下穿20日做记号}
DRAWICON(CROSS(MA60,MA20),MA60,2);{20日下穿60日做记号}
DRAWICON(CROSS(MA120,MA60),MA60,2);{60日下穿120日做记号}
反弹托:=MA5 MA20ANDMA5 MA20ANDMA20 MA60ANDMA60 MA120ANDCROSS(MA10,MA20);
月价托:=MA5 MA20ANDMA20 MA60ANDMA60 MA120ANDMA5 MA20ANDCROSS(MA10,MA20);
季价托:=MA20 MA60ANDMA20 MA60ANDCROSS(MA20,MA60);
短长价托:=MA5 MA60ANDMA5 MA10ANDCROSS(MA10,MA60);
半年托:=MA60 MA120ANDMA60 MA120ANDCROSS(MA60,MA120);
熊来:=MA60 MA120ANDMA60 MA120ANDCROSS(MA120,MA60);
年托:=MA120 MA240ANDMA120 MA240ANDCROSS(MA120,MA240);
月蜘蛛:=MA5 MA10ANDMA10 MA20ANDCROSS(MA5,MA20)ANDCROSS(MA10,MA20);
DRAWTEXT(月蜘蛛,MA20-0.08,'金蜘蛛'),COLORMAGENTA;
DRAWTEXT(反弹托,MA20-0.08,'反弹托'),COLORMAGENTA;
DRAWTEXT(月价托,MA20-0.2,'月托'),COLORMAGENTA;
DRAWTEXT(季价托,MA60-0.0.08,'季托'),COLORMAGENTA;
DRAWTEXT(短长价托,L+0.015,'短长托'),COLOR36C0C1;
DRAWTEXT(半年托,MA120-0.08,'牛市来'),COLORRED;
DRAWTEXT(熊来,MA60+0.08,'小心熊'),COLORGREEN;
DRAWTEXT(年托,MA240-0.08,'年托'),COLORRED;
压:=MA10 MA20ANDMA20 MA10ANDCROSS(MA20,MA10);
DRAWTEXT(压,MA20+0.012,'压'),COLORYELLOW;
VOL5:=MA(VOL,5),COLORWHITE;
VOL10:=MA(VOL,10),COLORYELLOW;
VOL40:=MA(VOL,40),COLORFF00FF;
量托:=VOL5 =VOL40ANDCROSS(VOL10,VOL40)ANDREF(VOL10,1) REF(VOL40,1);
DRAWTEXT(量托,L-0.012,'量托'),COLORWHITE;
AA1:=BARSLAST(MA60 MA20AND(MA20=MA10ORMA20 MA10));
BB1:=REF(COUNT(C MA60,AA1)=AA1,1);
CC1:=CROSS(C,MA60)ANDVOL MA(VOL,5)AND(C-REF(C,1))/REF(C,1)*100
芙蓉出水:=BBANDCC1,COLOR00FF00;
DRAWTEXT(芙蓉出水,H+0.12,'芙蓉出水'),COLORFF00FF;
STICKLINE(芙蓉出水,H,L,0.5,1),COLORFF00FF;
STICKLINE(芙蓉出水,O,C,4,1),LINETHICK2,COLORFF00FF;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,30);
ZJ:=AMOUNT/10000;{}
TM:=V-MA(V,10);{量填满}
一穿三:=MA1 OANDMA2 OANDMA3 OANDMA1 CANDMA2 CANDMA3 CANDCLOSE OPEN;
DRAWTEXT(一穿三,L-0.012,'穿三线'),COLORFF00FF;
C6:=REF(C,1);
:=IF((C-C6)*100/C6 =(10-0.01*100/C6),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORMAGENTA;
STICKLINE(涨停,H,L,0,0),COLORLIRED;
{压力一}
TY:=C;
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);
前期高位:REF(C,BARSLAST(HD)),COLOR00FF00,POINTDOT;
STICKLINE(C,前期高位,前期高位,8,0),COLORYELLOW;
N:=13;M:=5;DIVE:=0.01*EMA(AMOUNT,N)/EMA(VOL,N);CYR:=(DIVE/REF(DIVE,1)-1)*100;MACYR:=MA(CYR,M);XG1:=CYR -1.1ANDMACYR -1.1;XG2:=CROSS(CYR,MACYR);XG3:=XG1ANDXG2;N1:=9;MTM:=C-REF(C,1);VAR1:=100*EMA(EMA(MTM,N1),N1)/EMA(EMA(ABS(MTM),N1),N1);VAR2:=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);LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),N1,1)/SMA(ABS(CLOSE-LC),N1,1)*100;EEA:=(C-REF(C,26))/REF(C,26)*10;抄底:CROSS(RSI,20)ANDVAR1 -45ANDVAR2 12ANDEEA -2ANDXG3;
N:=20;
N1:=7;
N2:=69;
T1:=IF((DATE =1341231),1,0);
M3:=EMA(CLOSE,3);
M8:EMA(CLOSE,8),COLOR008000;
M13:EMA(M8,13),COLOR0000FF;
M62:EMA(M8,55),COLORF0F000;
VAR1:=EMA(M13,62);
M81:EMA(M62,81),COLOR00FFFF;
M144:EMA(VAR1,144),LINETHICK2,COLOR0000FF;
M250:EMA(VAR1,250),POINTDOT,LINETHICK2,COLORF00FF0;
VAR2:=(CLOSE+HIGH+LOW)/(3);
VAR3:=(EMA(VAR2,10))*(T1);
VAR4:=(REF(VAR3,1))*(T1);
STICKLINE((VAR3 VAR4),VAR3,VAR4,4,0),COLOR00FFFF;
STICKLINE((VAR3 VAR4),VAR3,VAR4,4,0),COLORFF0000;
VAR5:=((REF(HIGH,1)+REF(LOW,1))/(2))*(T1);
VAR6:=MA(CLOSE,N)+((2)*(STD(CLOSE,N)))*(T1);
DRAWTEXT(CROSS(VAR3,VAR4),(VAR3)*(0.98),'★'),COLOR00FFFF;
DRAWTEXT(CROSS(VAR5,VAR6),(HIGH)*(1.04),'↓卖'),COLOR008000;
VAR7:=REF(CLOSE,1);
VAR8:=((SMA(MAX(CLOSE-VAR7,0),N1,1))/(SMA(ABS(CLOSE-VAR7),N1,1)))*(100);
VAR9:=CROSS(N2,VAR8);
VARA:=(FILTER(VAR9,4))*(T1);
DRAWTEXT(VARA,(HIGH)*(1.04),'↓卖'),COLORFFFFFF;
VARB:=((2)*(CLOSE)+HIGH+LOW)/(4);
VARC:=LLV(LOW,34);
VARD:=HHV(HIGH,34);
VARE:=(EMA(((VARB-VAR1)/(VAR5-VAR1))*(100),7))*(T1);
VARF:=(EMA((0.667)*(REF(VARE,1))+(0.333)*(VARE),5))*(T1);
DRAWTEXT(IF(((COUNT((CLOSE REF(CLOSE,1)),8))/(8) 0.6)AND(VOL =(1.5)*(MA(VOL,5)))ANDCOUNT((VARE =VARF),3)AND(REF(LOW,1)=LLV(LOW,120)),1,0),LOW,'●买进'),COLORFF00FF;
DRAWTEXT(IF(((COUNT((CLOSE REF(CLOSE,1)),13))/(13) 0.6)ANDCOUNT((VARE VARF),6)AND(REF(LOW,5)=LLV(LOW,120))ANDREF((CLOSE =OPEN),4)ANDREF((CLOSE OPEN),3)ANDREF((CLOSE OPEN),2)ANDREF((OPEN CLOSE),1)AND(OPEN REF(CLOSE,1)),1,0),LOW,'●买进'),COLOR00FFFF;
VAR10:=(MA(CLOSE,80)-(MA(CLOSE,10))/(3))*(T1);
DRAWTEXT(IF((CLOSE VAR10)AND((VOL)/(240) (MA(VOL,5))/(240))AND(CLOSE (REF(CLOSE,1))*(1.08))AND(CLOSE (MA(CLOSE,13))*(1.3)),1,0),LOW,'●抄底'),COLOR0000FF;
通达信买卖出击精准逃顶抄底指标公式截图