顺势而为47 发表于 2024-1-27 03:51:09

通达信——精选指标《趋势多空财神买卖线》指标源码

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