通達信龍再現(xiàn)主圖公式 陽穿地底 濟安線戰(zhàn)法 自行復制源碼 N:=30; 漲停:=IF((C-REF(C,1))*100/REF(C,1)>=9.80,1,0); 漲停龍:=EVERY(漲停,2); DRAWTEXT(漲停龍,L*1.02,'龍再現(xiàn)'),COLORYELLOW; STICKLINE(漲停龍,OPEN,CLOSE,1,0),COLORYELLOW; 次新:=(BARSCOUNT(C)+1)<120; MA30:=MA(C,30); MA60:=MA(C,60); MA120:=MA(C,120); VAR1:=(MAX(C,O)-MIN(C,O))/MIN(C,O)*100; VAR2:=(H-MAX(C,O))/MAX(C,O)*100; VAR3:=MA(REF(LLV(C,30),1),2); VAR4:=MA(REF(HHV(C,30),1),2); VAR5:=MAX(MA30,MAX(MA60,MA120)); VAR6:=MIN(MA30,MIN(MA60,MA120)); VAR71:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); VAR72:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2); VAR73:=REF(VAR72,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2); VAR74:=REF(VAR72 OR VAR73,1) AND VAR71; VAR7:=VAR74 AND CLOSE>OPEN; VAR81:=IF(C>MA(C,4),1,0); VAR82:=IF(C<MA(C,4),-1,0); VAR83:=IF(MA(C,5)>REF(MA(C,5),1),1,0); VAR84:=IF(MA(C,5)<REF(MA(C,5),1),-1,0); VAR85:=VAR81+VAR82+VAR83+VAR84; VAR8:=VAR85=2 AND C<O; VAR91:= EMA((CLOSE*2+HIGH+LOW)/4,13)-EMA((CLOSE*2+HIGH+LOW)/4,73); VAR92:=(crOSS(VAR91,EMA(VAR91,2)) AND VAR91<=0.05 AND (C/REF(C,1)>0.035)); VAR9:=VAR92 AND NOT(VAR8); VAR10:=(C<VAR6 OR (C<VAR6*1.01 AND 次新)) AND C<VAR4 AND VAR6<VAR4 AND VAR6<=REF(VAR6,1); VAR11:=VAR1>3.9 AND VAR1<8 AND C>OPEN AND VAR2<1 AND VAR9=0 AND REF(MAX(C,OPEN),1)>C AND VAR9=0 AND REF(VAR7=0,2) AND (REF(VAR9=0 AND VAR7=0,1) OR REF(MAX(C,O),1)>C); XG:=VAR11 AND VAR3=REF(VAR3,1) AND VAR10; DRAWTEXT(XG,L*0.97,'↖陽穿地底'),LINETHICK1,COLORBROWN; 現(xiàn)價線:=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),COLORFF00FF,LINETHICK2; 確認線:=4*SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,10)-LLV(LOW,10))*100,5,1),3.2,1),COLORGREEN,LINETHICK2; 短底:=12,COLORBLUE,LINETHICK2; 穿越線:=CROSS(現(xiàn)價線,短底); 預警線:=IF(現(xiàn)價線<=10,30,0),COLORFFCC00,LINETHICK1; 穿值:=FINANCE(7)<500000000; 先鋒:=IF(CROSS(現(xiàn)價線,短底),50,0),COLORRED,LINETHICK2; 穿值先鋒:=先鋒 AND 穿值; DRAWICON(穿值先鋒, LOW, 1); AA:=Abs((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,N))/MA(CLOSE,N); 濟安線:DMA((2*CLOSE+LOW+HIGH)/4,AA),LINETHICK3,COLORMAGENTA; CC:=(CLOSE/濟安線); MA1:=MA(CC*(2*CLOSE+HIGH+LOW)/4,3); MAAA:=((MA1-濟安線)/濟安線)/3; TMP:=MA1-MAAA*MA1; J:IF(TMP<=濟安線,濟安線,DRAWNULL),LINETHICK3,COLORCYAN; A:TMP,LINETHICK2,COLORBROWN; X:IF(TMP<=濟安線,TMP,DRAWNULL),LINETHICK2,COLORGREEN; VAA0:=CROSS(TMP,濟安線); DIFF := EMA(CLOSE,12) - EMA(CLOSE,26); DEA := EMA(DIFF,9); macd := 2*(DIFF-DEA); LC := REF(CLOSE,1); rsi := SMA(MAX(CLOSE-LC,0),6,1)/SMA(ABS(CLOSE-LC),6,1)*100; MID := MA(CLOSE,20); TMP2 := STD(CLOSE,20); TOP := MID + 2*TMP2; BOTTOM := MID - 2*TMP2; VR := SUM(vol,N)/REF(SUM(VOL,N),1); VAA1 := VAA0; VAA2 := MACD > 0; VAA3 := RSI > 50; VAA4 := CLOSE > BOTTOM AND CLOSE < TOP; VAA5 := vr > 1; 濟安線戰(zhàn)法:= VAA1 AND VAA2 AND VAA3 AND VAA4 AND VAA5; DRAWICON(濟安線戰(zhàn)法, LOW, 38); DRAWTEXT(濟安線戰(zhàn)法,L*0.97,'↖濟安線WWW.GOODGONGSHI.COM'),LINETHICK1,COLORYELLOW;
|