指标源码: V5:=MA((LOW+HIGH+CLOSE)/3,5); MA3:MA(C,3); MA5:MA(C,5),COLORWHITE; MA10:=MA(C,10),NODRAW; MA30:MA(C,34),NODRAW; KU1:=IF(HIGH=HHV(HIGH,3),1,0); KD1:=IF(LOW=LLV(LOW,3),1,0); 五日乖离率:=(C-MA5)/MA5*100; BB5:=ATAN((MA5/REF(MA5,1)-1)*100)*180/3.1416; IF(BB5>30 AND MA5>REF(MA5,1), MA5,DRAWNULL),LINETHICK1,COLORRED; BB10:=ATAN((MA10/REF(MA10,1)-1)*100)*180/3.1416; IF(BB5<0 AND MA5DD5:=MA5IF(DD5,MA5,DRAWNULL),COLOR00FF00; X:=(3*C+L+O+H)/6; 多空线: (20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X, 4)+15*REF(X,5)+14*REF(X,6)+13*REF(X,7)+12*REF(X,8)+11*REF(X, 9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12)+7*REF(X,13)+6*REF(X, 14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X, 18)+REF(X,20))/210,COLORFF00FF,LINETHICK1; UL:=IF(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0,REF(HIGH,2),REF(HIGH,2+BARSLAST(REF(KU1,2)=1 AND REF(KU1,1)=0 AND KU1=0))); DD:=多空线IF(DD,多空线,DRAWNULL),COLORBLUE,LINETHICK2; A:=(MA5>多空线); IF(A,多空线,DRAWNULL),COLORYELLOW,POINTDOT; A1:=(MA5<多空线); IF(A1,多空线,DRAWNULL),COLORWHITE; A2:=3*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100, 5)-2*EMA((C-LLV(L,30))/(HHV(H,30)-LLV(L,30))*100,5); A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100; A5:=EMA(CLOSE,12)-EMA(CLOSE,26); A6:=EMA(A5,9); A7:=(A5<-0.1 AND A5>A6); 财神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT; V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20); V2:=(1-7/100)*(DMA(CLOSE,V1)); CYS:=(EMA((CLOSE-V2)/V2,1)*100); AA:=CYS; MIDD:=MA(CYS,20); CC:=MIDD+0.85*STD(CYS,10); TM6:=AA>CC; IF(TM6,MA5,DRAWNULL),COLORRED,LINETHICK1; A0:=(L+H+C*2)/4; 工作:=EMA(A0,14)COLORYELLOW,LINETHICK1; 度假:=EMA(A0,25)COLORYELLOW,LINETHICK1; A1X:=(工作-REF(工作,1))/REF(工作,1)*100; A2X:=(度假-REF(度假,1))/REF(度假,1)*100; G:=BARSLAST(CROSS(A1X,0)); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 金叉:=CROSS(J,D); 死叉:=CROSS(D,J); DL:=IF(REF(KD1,2)=1 AND REF(KD1,1)=0 AND KD1=0,REF(LOW,2),REF(LOW,2+BARSLAST(REF(KD1,2)=1 欢迎大家自行尝试! 关于指标大家可以私信找我免费领取! |