通達(dá)信超資介入未加密選股指標(biāo)公式源碼 源碼正文: 漲幅:=9;高度:=20;跨度:=10;N4:=34{XG51}; 短線:=ema(CLOSE,17){XG51}; A:=(3*C+L+O+H)/6{XG51}; X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+ 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12) +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+ REF(A,20))/210{XG51}; 中線:=Ema(X,13){XG51}; KKA:=EMA(C,5){XG51}; KKB:=EMA(KKA,8){XG51}; KKC:=EMA(KKB,13){XG51}; 長(zhǎng)線:=EMA(KKC,50){XG51}; 中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4)){XG51}; kdD:=REF(中期,1)<1 AND 中期>1{XG51}; 持股:=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){XG51}; 支撐:=LLV(持股,3){XG51}; 中期線:=MA(持股,12){XG51}; VAR1:=1{XG51}; VAR2:=LLV(LOW,10){XG51}; VAR3:=HHV(HIGH,25){XG51}; 短期線:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30{XG51}; AAA:=(3*C+L+O+H)/6{XG51}; C2:=EMA(AAA,6){XG51}; C3:=EMA(AAA,5){XG51}; SHORT:=12{XG51}; LONG:=26{XG51}; MID:=9{XG51}; dif:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG){XG51}; DEA:=EMA(DIF,MID){XG51}; macd:=(DIF-DEA)*2{XG51}; N:=9{XG51}; M1:=3{XG51}; M2:=3{XG51}; RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100{XG51}; K:=SMA(RSV,M1,1){XG51}; D:=SMA(K,M2,1){XG51}; J:=3*K-2*D{XG51}; KAAA1:=EXIst(KDD,3){XG51}; KBBB1:=C/REF(C,1)>1+0.01*漲幅{XG51}; KAAA2:=支撐>中期線 AND 持股=支撐{XG51}; KBBB2:=crOSS(C2,C3){XG51}; KCCC2:=EXIST(C/REF(C,1)>1+0.01*漲幅,跨度){XG51}; KDDD2:=BArslAST(中期線>短期線)<跨度{XG51}; KAAA3:=REF(C,1)<REF(中線,1) AND C>中線{XG51}; KBBB3:=C/REF(C,1)>1+0.01*漲幅{XG51}; KCCC3:=中線/長(zhǎng)線<1+0.01*高度{XG51}; 超資介入: IF(KBBB1+KCCC2+KBBB3=3,1,0){X_G-5_1_C_N_{}; 通達(dá)信分時(shí)超短主圖未加密選股指標(biāo)公式源碼 源碼正文: XG:HHV(H,480),DOTLINE,COLORGREEN{XG51}; RQ:=DATETODAY(DATE)-DATETODAY(REF(DATE,TOTALBARSCOUNT-CURRBARSCOUNT))+1{XG51}; JY:=BArslAst((RQ-REF(RQ,1))!=WEEkdAY-REF(WEEKDAY,1) OR TOTALBARSCOUNT-CURRBARSCOUNT=0)+1{XG51}; ma1:=REF(C,JY){XG51}; MA2:=REF(MA1,JY){XG51}; MA3:=REF(MA2,JY){XG51}; MA4:=REF(MA3,JY){XG51}; MA5:=REF(MA4,JY){XG51}; MA6:=REF(MA5,JY){XG51}; MA7:=REF(MA6,JY){XG51}; MA8:=REF(MA7,JY){XG51}; MA9:=REF(MA8,JY){XG51}; H1:=MAX(DYNAINFO(3),DYNAINFO(5)){XG51}; L1:=MIN(DYNAINFO(3),DYNAINFO(6)){XG51}; P1:=H1-L1{XG51}; 阻力:L1+P1*8/9,COLORLICYAN,DOTLINE{XG51}; 支撐:L1+P1*0.5/9,COLORCYAN,DOTLINE{XG51}; 均線:IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(vol*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0))),COLORBLUE,DOTLINE{XG51}; dif:=(ema(CLOSE,12)-EMA(CLOSE,26))+DYNAINFO(3){XG51}; DEA:=EMA(DIF,9){XG51}; macd1:=10*(DIF-DEA){XG51}; MacD2:=EMA(MACD1,2){XG51}; STICKLINE(MACD1>=MACD2 AND MACD1>=0,DYNAINFO(3),MACD1+DYNAINFO(3),0,-1),COLORBLACK{XG51}; STICKLINE(MACD1<MACD2 AND MACD1>0,DYNAINFO(3),MACD1+DYNAINFO(3),0,-1),COLORLIRED{XG51}; STICKLINE(MACD1>=MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,-1),COLORBLACK{XG51}; STICKLINE(MACD1<MACD2 AND MACD1<0,DYNAINFO(3),MACD1+DYNAINFO(3),0,-1),COLORLIBLUE{XG51}; XX:=SUM(AMOUNT,BARSCOUNT(CLOSE))/SUM(V*100,BARSCOUNT(CLOSE)){XG51}; 主力:=expma(CLOSE/XX,20);大戶(hù):=EXPMA(CLOSE/XX,60);散戶(hù):=EXPMA(CLOSE/XX,120){XG51}; 底:=1;1.022,NODRAW;高:=1.033{XG51}; DRAWTEXT(crOSS(主力,1.02),C*0.999,' 拉'),COLORLIMAGENTA{XG51}; DRAWICON(CROSS(主力,1.04),C,45){XG51}; DRAWTEXT(CROSS(主力,1.04),C*0.999,' 沖'),COLORWHITE{XG51}; A1:=(VOL/CLOSE)/3{XG51}; A2:=SUM((IF(((A1>40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0){XG51}; A3:=SUM((IF(((A1>40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0){XG51}; A4:=SUM((IF(((A1<40) AND (CLOSE>(REF(CLOSE,1)))),A1,0)),0){XG51}; A5:=SUM((IF(((A1<40) AND (CLOSE<(REF(CLOSE,1)))),A1,0)),0){XG51}; A6:=((A2+A3)+A4)+A5{XG51}; A7:=IF((BARSTATUS=2),((100*A2)/A6),0){XG51}; A8:=((IF((BARSTATUS=2),((100*A3)/A6),0))){XG51}; A9:=((IF((BARSTATUS=2),((100*A4)/A6),0))){XG51}; A10:=((IF((BARSTATUS=2),((100*A5)/A6),0))){XG51}; DRAWTEXT(LONGCROSS(支撐,C,2),C-0.01,' 買(mǎi)入'),COLOR0000FF{XG51}; DRAWICON(LONGCROSS(支撐,C,2),C-0.01,1){XG51}; STICKLINE(LONGCROSS(支撐,C,2),C,阻力,0,-1),COLORGREEN{XG51}; DRAWTEXT(LONGCROSS(C,阻力,2),C+0.01,' 賣(mài)出'),COLORCYAN{XG51}; DRAWICON(LONGCROSS(C,阻力,2),C+0.01,45){X-G_5~1-C-N-{};
|