趨勢轉(zhuǎn)強(qiáng)公式 趨勢:SMA(((CLOSE-LLV(LOW,28))/(HHV(HIGH,28)-LLV(LOW,28))*100),3,1); FILLRGN(趨勢>40,趨勢,40),COLOR32329B; FILLRGN(40>趨勢,趨勢,40),COLOR326400; PARTLINE(趨勢>40,趨勢),COLORRED; PARTLINE(趨勢<40,趨勢),COLORGREEN; A:=(3*C+L+O+H)/6; 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; 中線★:=EMA(X,13); 短線成本★:=EMA(CLOSE,17); 危險(xiǎn):BARSLAST(短線成本★>中線★),COLORGREEN; 安全:BARSLAST(短線成本★<中線★),COLORRED; VAR2:=LLV(LOW,33); VAR3:=HHV(HIGH,21); VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,20)*0.998; 短線通道:20,COLORGREEN; 短線:EMA(0.667*REF(VAR4,1)+0.333*VAR4,1); STICKLINE(短線通道>短線,短線通道,短線,0,0),COLORGREEN,LINETHICK1; STICKLINE(短線通道<短線,短線通道,短線,10,0),COLORFF00FF,LINETHICK1; DRAWTEXT(CROSS(短線,短線通道) ,短線,'←★買不虧'),COLORYELLOW; STICKLINE(CROSS(短線,短線通道),20,0,2,0) ,COLORRED; 買不虧:CROSS(短線,短線通道),COLORRED; PARTLINE(短線>REF(短線,1) AND 短線>=0,短線),COLORRED,LINETHICK2; PARTLINE(短線<REF(短線,1) AND 短線>0,短線),COLORGREEN,LINETHICK1; WEN:=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); 趨勢線: WEN,LINETHICK2,COLORFF84FF; DRAWTEXT(CROSS(趨勢線,49),47,'轉(zhuǎn)★強(qiáng)'),ALIGN0,COLORYELLOW; STICKLINE(CROSS(趨勢線,49),40,0,2,0) ,COLORYELLOW; 轉(zhuǎn)★強(qiáng):CROSS(趨勢線,49),COLORRED; PARTLINE(趨勢線>REF(趨勢線,1) AND 趨勢線>=0,趨勢線),COLORYELLOW,LINETHICK2; RSV1:=(CLOSE-LLV(LOW,38))/(HHV(HIGH,38)-LLV(LOW,38))*100; 財(cái)神:SMA(RSV1,5,1),COLORYELLOW,LINETHICK1; 出現(xiàn):SMA(財(cái)神,10,1),COLORGREEN,LINETHICK1; STICKLINE(財(cái)神>出現(xiàn),財(cái)神,出現(xiàn),4,0),COLORYELLOW; STICKLINE(財(cái)神<=出現(xiàn),財(cái)神,出現(xiàn),0,0),COLORGREEN; PARTLINE(財(cái)神>REF(財(cái)神,1) AND 財(cái)神>=0,財(cái)神),COLORRED,LINETHICK1; PARTLINE(出現(xiàn)>REF(出現(xiàn),1) AND 出現(xiàn)>=0,出現(xiàn)),COLORRED,LINETHICK1; RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100; |
|