注意:本指標(biāo)源碼用于通達(dá)信。 指標(biāo)源碼 01 TTS1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1); TTS2:=SMA(ABS(LOW-TTS1),13,1)/SMA(MAX(LOW-TTS1,0),10,1); TTS3:=EMA(TTS2,10); TTS4:=LLV(LOW,33); TTS5:=EMA(IF(LOW<=TTS4,TTS3,0),3); STICKLINE(TTS5>REF(TTS5,1),0,TTS5,3,0 ),COLOR000055; STICKLINE(TTS5>REF(TTS5,1),0,TTS5,2.6,0 ),COLOR000077; STICKLINE(TTS5>REF(TTS5,1),0,TTS5,2.1,0 ),COLOR000099; STICKLINE(TTS5>REF(TTS5,1),0,TTS5,1.5,0 ),COLOR0000BB; STICKLINE(TTS5>REF(TTS5,1),0,TTS5,0.9,0 ),COLOR0000DD; STICKLINE(TTS5>REF(TTS5,1),0,TTS5,0.3,0 ),COLOR0000FF; STICKLINE(TTS5<REF(TTS5,1),0,TTS5,3,0),COLOR005500; STICKLINE(TTS5<REF(TTS5,1),0,TTS5,2.6,0),COLOR007700; STICKLINE(TTS5<REF(TTS5,1),0,TTS5,2.1,0),COLOR009900; STICKLINE(TTS5<REF(TTS5,1),0,TTS5,1.5,0),COLOR00BB00; STICKLINE(TTS5<REF(TTS5,1),0,TTS5,0.9,0),COLOR00DD00; STICKLINE(TTS5<REF(TTS5,1),0,TTS5,0.3,0),COLOR00FF00; 機(jī)構(gòu)入:IF(TTS5>REF(TTS5,1),TTS5,0),COLORRED,NODRAW; 機(jī)構(gòu)出:IF(TTS5<REF(TTS5,1),TTS5,0),COLORGREEN,NODRAW; ZZ1:=MA(C,1)/MA(REF(C,13),8)*100; ZZ2:=MA(FORCAST(ZZ1,21),3); ZZ3:=REF(ZZ1,1); ZZ4:=REF(ZZ1,2); LLL:=LLV(LOW,8); HHH:=HHV(HIGH,13); CHAZHI:= EMA((CLOSE-LLL)/(HHH-LLL)*100,5),COLORRED; SHENGDIE:= EMA(0.667*REF(CHAZHI,1)+0.333*CHAZHI,2),COLORGREEN; ERS1:=(CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2)); ERSD:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2)); ERSE:=(REF(ERSD,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); ERSF:=(REF(ERSE,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); ERS10:=(REF(ERSF,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); ERS11:=(REF(ERS10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); ERS12:=(REF(ERS11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); ERS13:=(REF(ERS12,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); ERS14:=(REF(ERS13,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); ERS15:=(REF(ERS14,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); ERS16:=(REF(ERS15,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); ERS17:=(REF(ERS16,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2)); ERS18:=(REF(ERS17,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2)); ERS19:=REF(ERSD OR ERSE OR ERSF OR ERS10 OR ERS11 OR ERS12 OR ERS13 OR ERS14 OR ERS15 OR ERS16 OR ERS17 OR ERS18,1) AND ERS1; 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; B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70; B2:=SMA(B1,9,1)+100; B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100; B4:=SMA(B3,3,1); B5:=SMA(B4,3,1)+100; B6:=B5-B2; IF(REF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5)) /MA(C,5)>0.04 AND B6<60 AND C> REF(C,1),1),44,0),LINETHICK3,COLORCYAN; IF(REF(J,1)<0 AND J>0 AND ZZ1>=ZZ2 AND ZZ3> ZZ4,34,0),LINETHICK3,COLOR0000FF; IF(REF(CHAZHI,1)<=13&&CROSS(CHAZHI,SHENGDIE)&&REF(MA(C,55),1)>REF(MA(C,55),2)&& (ERS19 OR REF(ERS19,1)),23,0),COLORBLUE; DRAWICON(REF(CHAZHI,1)<=13&&CROSS(CHAZHI,SHENGDIE)&&REF(MA(C,55),1)>REF(MA(C,55),2)&&(ERS19 OR REF(ERS19,1)),25,23); DRAWICON(REF((MA(C,5)-C)/C>0.04 AND (MA(C,10)-MA(C,5)) /MA(C,5)>0.04 AND B6<60 AND C>REF(C,1),1),46,23); DRAWICON(REF(J,1)<0 AND J>0 AND ZZ1>=ZZ2 AND ZZ3>ZZ4,36,23),COLORYELLOW; 圖片示例 風(fēng)險(xiǎn)提示:本指標(biāo)公式僅作為知識(shí)分享,供交流學(xué)習(xí)使用,不構(gòu)成任何投資建議,不作為投資依據(jù)。 |
|
來(lái)自: 新用戶5173uwrS > 《待分類》