1、调整结束,适合于牛市中 本公式是通达信主图公式,适合于牛市中,熊市慎用,源码如下: {调整结束 源码} MA1:MA(CLOSE,7); MA2:MA(CLOSE,13); MA3:MA(CLOSE,24); MA4:MA(CLOSE,60); MA5:MA(CLOSE,120); M1:=IF(BB,20,0); M2:=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); AC:=AMOUNT/(VOL); YY:=MA(AC,13); LLL:=(C-YY)/YY*100; MIDC:= MA(CLOSE,22); UPPERC:= MIDC + 2*STD(C,22); LOWERC:= MIDC - 2*STD(C,22); BBA:=(C-LOWERC)/(UPPERC-LOWERC); M3:=(REF(LLL,1)<-15 AND REF(BBA,1)<0 AND LLL>REF(LLL,1)); LC:=REF(CLOSE,1); RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100; M4:=CROSS(RSI,11)*80; VAR1:=M1 AND M2; VAR2:=M2 AND M3; VAR3:=M3 AND M4; VAR4:=M1 AND M3; VAR5:=M1 AND M4; VAR6:=M2 AND M4; FF:=VAR1 OR VAR2 OR VAR3 OR VAR4 OR VAR5 OR VAR6; BBB:=100*(HHV(HIGH,50)-CLOSE)/(HHV(HIGH,50)-LLV(LOW,50)); LL:=BBB<75; XXX:=LL AND FF,COLORMAGENTA; DRAWTEXT(XXX,L*0.98,'调整结束'),COLORMAGENTA; 2、犀牛一号 犀牛一号,公式使用简单,出现信号,即是买点, 一般都能有不错的涨幅。( 股民学院: http://www.58188.com ) {犀牛一号 通达信副图 源码} VAR1:=(3*CLOSE+OPEN+LOW+HIGH)/6; VAR2:=(20*VAR1+19*REF(VAR1,1)+18*REF(VAR1,2)+17*REF(VAR1,3)+16*REF(VAR1,4)+15*REF(VAR1,5)+14*REF(VAR1,6)+13*REF(VAR1,7)+12*REF(VAR1,8)+11*REF(VAR1,9)+10*REF(VAR1,10)+9*REF(VAR1,11)+8*REF(VAR1,12)+7*REF(VAR1,13)+6*REF(VAR1,14)+5*REF(VAR1,15)+4*REF(VAR1,16)+3*REF(VAR1,17)+2*REF(VAR1,18)+REF(VAR1,20))/210; VAR3:=MA(VAR2,5); VAR4:=MA(CLOSE,4); VAR5:=MA(CLOSE,13); VAR6:=MA(CLOSE,24); VAR7:=MA(CLOSE,30); VAR8:=MA(CLOSE,120); VAR9:=VAR5>VAR6 AND VAR6>VAR7 AND VAR7>VAR8 AND VAR5>REF(VAR5,1) AND VAR6>REF(VAR6,1) AND VAR7>REF(VAR7,1) AND VAR8>=REF(VAR8,1); VAR10:=REF(CLOSE,1); VAR11:=IF((CLOSE-VAR10)*100/VAR10>=10-0.01*100/VAR10,1,0); VAR12:=REF(VAR11,1); VAR13:=COUNT(VAR12,13)>=1; VAR14:=ATAN((MA(CLOSE,30)/REF(MA(CLOSE,30),1)-1)*100)*57.299999; VAR15:=ATAN((MA(CLOSE,13)/REF(MA(CLOSE,13),1)-1)*100)*57.29999937; VAR9 AND CLOSE>VAR5 AND LOW<VAR5 AND CLOSE>OPEN AND VAR15>47 AND VAR13; 3、严重超买超卖,反应超买超卖的公式( 股民学院: http://www.58188.com ) {严重超买超卖 源码} 严重超买:100,COLORRED,DOTLINE; 超买:80,COLORRED,DOTLINE; 超卖:20,COLOR00FF00,DOTLINE; 严重超卖:0,COLOR00FF00,DOTLINE; VAR1:=((CLOSE - LLV(LOW,15))/(HHV(HIGH,15) - LLV(LOW,15)))*(100); VAR2:=REVERSE(VAR1); VAR3:=SMA(VAR1,5,1); K:=SMA(VAR3,3,1); D:=SMA(K,3,1); STICKLINE((K >= D),K,D,1,0),COLORRED; STICKLINE((K <= D),K,D,1,0),COLOR008800; VAR18:=((CLOSE - LLV(LOW,80))/(HHV(HIGH,80) - LLV(LOW,80)))*(100); VAR28:=REVERSE(VAR18); VAR38:=SMA(VAR18,3,1); K8:=SMA(VAR38,3,1); D8:=SMA(K8,3,1); STICKLINE((K8 >= D8),K8,D8,1,0),COLORMAGENTA; STICKLINE((K8 <= D8),K8,D8,1,0),COLORCYAN; VAR188:=((CLOSE - LLV(LOW,34))/(HHV(HIGH,34) - LLV(LOW,34)))*(100); VAR288:=REVERSE(VAR188); VAR388:=SMA(VAR188,9,1); K88:=SMA(VAR388,3,1); D88:=SMA(K88,3,1); STICKLINE((K88 >= D88),K88,D88,1,0),COLOR0080FF; STICKLINE((K88 <= D88),K88,D88,1,0),COLORFF0000; |