一、通达信多吃买卖指标公式
N:=5;
K:=N/2;
DTPL:=MA(C,N)>MA(C,N*1.5) AND MA(C,N*1.5)>MA(C,N*3) AND MA(C,3)>MA(C,N*6);
连续走强:=COUNT(C>MA(C,N),K)=K;
ZQSJ:=BARSLAST(连续走强);
STICKLINE(连续走强 ,0 ,K*0.3 ,5 ,1 ),COLORYELLOW;
下穿:=CROSS(MA(C,N),C);
GL:=MA(C,N/2)/MA(C,N*2)>=1.05;
跌:(下穿 AND ZQSJ<=3 AND DTPL AND GL)*N,COLOR00FF00,LINETHICK1;
连续走弱:=COUNT(C ZRSJ:=BARSLAST(连续走弱); STICKLINE(连续走弱 ,0 ,K*-0.3 ,5 ,1 ),COLOR00FF00; 上穿:=CROSS(C,MA(C,N)); 秘密买点涨:(上穿 AND ZRSJ<=3)*K,COLORFF00FF,LINETHICK1; 强:连续走强*K*0.3,COLORYELLOW; 秘密买点弱:连续走弱*K*-0.3,COLOR00FF00; VAR6:=4*SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1); VAR7:=8; 准备: IF(VAR6<=8,3,0),STICK,COLORWHITE,LINETHICK2; 趋势:=(5)*(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))* (100),5,1))-(3)*(SMA(SMA(((CLOSE-LLV(LOW,27)) /(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1))-SMA(SMA(SMA(((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100),5,1),3,1),2,1); 趋势1:=(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)); 探底趋势:IF((趋势<=5),3,0),COLORFF00FF; MA5:=MA(CLOSE,5); MA10:=MA(CLOSE,10); MA20:=MA(CLOSE,20); MA60:=MA(CLOSE,60); BB:=REF(INDEXC,1)=REF(C,1) AND REF(O,1)/REF(C,1)>=1.05 AND REF(C,1)O AND C/O>=1.05 AND C>REF(O,1) AND REF(VOL,1)
VAR1:=4*SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*100,5,1),3.2,1); VAR2:=8; CC:=CROSS(VAR1,VAR2); DRAWTEXT(CC,5,'波段买!'),COLOR0099FF; STICKLINE(CC,1.6,4,0,0),COLORRED; VP1:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100; VP2:=SMA(SMA(VP1,3,1),3,1); VP3:=EMA(VP2,5); 无敌:=3*VP2-2*VP3; 超级无敌:IF(CROSS(无敌,VP2) AND 无敌<21,10,0),COLORFF00FF,LINETHICK1; AA:=LLV(LOW,13); 风险:=80,COLORFF00FF; 狼狗:=87.5,COLOR00FF00; DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25); 股海神偷:=DD,COLORRED,LINETHICK2; 股海:=(((DD-LLV(DD,21))/(HHV(DD,13)-LLV(DD,21)))*(4))*(25); 目标出现:IF(CROSS(股海,90) AND (股海神偷<40),7,0),COLOR00FFFF; 控盘:= (EMA(EMA(CLOSE,9),9)-REF(EMA(EMA(CLOSE,9),9),1))/REF(EMA(EMA(CLOSE,9),9),1)*400; A10:=CROSS(控盘,0); 开始控盘:IF(A10,5,0),LINETHICK1,COLORYELLOW; {波段王抄底}{结合波段王指标} 趋势线:=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); CROSS(趋势线,10) AND 趋势线>=REF(MA(趋势线,10),1); A1:=REF(CLOSE,2); A2:=SMA(MAX(CLOSE-A1,0),7,1)/SMA(ABS(CLOSE-A1),7,1)*100; 波段介入:IF(A2<19,4.5,0),COLORWHITE; VAR8:=(CLOSE-LLV(LOW,60.135))/ (HHV(HIGH,60.135)-LLV(LOW,60))*80; VAR9:=SMA(VAR8,7,1); VARA:=SMA(VAR9,5,1); 底1: IF(CROSS(VAR9,VARA) AND VAR9<20,4,0); 买入: IF(CROSS((4*SMA((CLOSE- LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1)- 3*SMA(SMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5,1),3,1)),(8)),7,0),STICK,COLOR0099FF,LINETHICK2; DRAWTEXT(买入,7.98,'-我买'),COLOR66FFCC; VAR10:=LLV(LOW,10); VAR13:=HHV(HIGH,25); M:=EMA((CLOSE-VAR10)/(VAR13-VAR10)*4,4)*25,COLORYELLOW,; RSV10:= (HHV(HIGH,11)-CLOSE)/(HHV(HIGH,11)-LLV(LOW,11))*100; LWR1:=SMA(RSV10,3,1),COLORRED,LINETHICK2; LWR2:=SMA(LWR1,3,1),COLORWHITE; LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; 很准杀入:CROSS(RSI,11)*7,COLORRED; K2:=EMA(C,5),COLORFFFF00; K3:=EMA(C,10),COLORFFFF00; K5:=EMA(C,30),COLORFFFF00;KK5:=EMA(INDEXC,30),COLORFFFF00; K6:=2*(K2-K5);K7:=2*(K2-K3);K8:=2*(K7+K6),COLORRED; STICKLINE(CROSS(K8,0),0,3,8,0) ,COLORRED; K1:=IF(K8>REF(K8,5) AND K3
K21:=IF(K8>REF(K8,7) AND K3