注意:本指標源碼用于通達信。
指標源碼
01
TTS2:=REF(LOW,1);
TTS3:=SMA(ABS(LOW-TTS2),13,1)/SMA(MAX(LOW-TTS2,0),13,1)*100;
TTS4:=EMA(IF(CLOSE*1.2,TTS3*13,TTS3/13),13);
TTS5:=LLV(LOW,34);
TTS6:=HHV(TTS4,34);
TTS7:=IF(LLV(LOW,56),1,0);
TTS8:=EMA(IF(LOW<=TTS5,(TTS4+TTS6*2)/2,0),3)/618*TTS7;
TTS9:=EMA(CLOSE,5);
TTS10:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*(-10);
TTS11:=EMA(IF(LOW<=TTS5,(TTS4+TTS6*2)/2,0),3)/618*TTS7*(-1);
TTS12:=EMA(CLOSE,5)*(-1);
STICKLINE(TTS12<REF(TTS12,1),0,TTS12*0.08,4,1),COLOR10E410;
減倉:IF(TTS12<REF(TTS12,1),TTS12,0),COLOR10E410,LINETHICK1,NODRAW;
STICKLINE(TTS9<REF(TTS9,1),0,TTS9*0.08,4,1),COLOR1010FF;
增倉:IF(TTS9<REF(TTS9,1),TTS9*0.2,0),COLOR1010FF,LINETHICK1;
STICKLINE(TTS8>REF(TTS8,1),0,TTS8,4,1),COLOR10FFFF,LINETHICK1;
主力進場:IF(TTS8>REF(TTS8,1),TTS8*8,0),COLOR10FFFF,LINETHICK1,NODRAW;
STICKLINE(TTS11>REF(TTS11,1),0,TTS11,4,1),COLORFFF810;
洗盤:IF(TTS11>REF(TTS11,1),TTS11*8,0),COLORFFF810,LINETHICK1,NODRAW;
主力持倉:LOW,COLORFF10FF,LINETHICK1,NODRAW;
增減力度:TTS10*5,COLORWHITE,LINETHICK1;
XL1:=MA(LOW,2)*0.96;
XL2:=MA(LOW,26)*0.85;
XL3:=REF(XL1,1)<XL2 AND REF(XL1,1)<XL1 AND REF(XL1,1)<REF(XL1,2);
STICKLINE(XL3,0,TTS8*3,4,0),COLOR006EFF;
DRAWTEXT(XL3,TTS8*2,'買'),COLORMAGENTA;
DRAWICON(XL3,TTS8*3.5,1),COLORRED;
XL4:=CROSS(0,增減力度);
DRAWTEXT(XL4,TTS8*3,'加倉'),COLORYELLOW;
圖片示例
風險提示:本指標公式僅作為知識分享,供交流學習使用,不構成任何投資建議,不作為投資依據(jù)。
聯(lián)系客服