通達信獵豹出擊均線主圖指標公式
- 指標類別: 通達信指標公式
- 授權方式: 免費版
- 指標評級: ★★★★★
- 指標分類: 均線
- 畫線方法: 主圖
- 日期:2024-10-17 來源:互聯網
通達信獵豹出擊均線主圖指標公式:
D:=5;S:=10;W:=20;R1:=7;R2:=14;Z1:=21;Z2:=55;Y1:=79;Y2:=144;
日一:MA(CLOSE,R1),COLORRED,LINETHICK1;
日二:MA(CLOSE,R2),COLORMAGENTA,LINETHICK1;
周一:MA(CLOSE,Z1),COLORWHITE,LINETHICK2;
周二:MA(CLOSE,Z2),COLORCYAN,LINETHICK2;
月一:MA(CLOSE,Y1),COLORWHITE,POINTDOT;
月二:MA(CLOSE,Y2),COLORBLUE,POINTDOT;
年:=1+(BARSLAST(YEAR!=REF(YEAR,1) OR DATETODAY(DATE)=1));
天數:=IF(PERIOD=5,年,DRAWNULL);
高1:=HHV(H,天數);
低1:=LLV(L,天數);
高低:(C-低1)/(高1-低1)*100,,NODRAW,COLORFFFF00;
振幅:(高1-低1)/低1*100,NODRAW,COLORWHITE;
天:CONST(高1),NODRAW,COLORYELLOW;
地:CONST(低1),NODRAW,COLOR00FF00;
H66%:CONST(高1-(高1-低1)*1/3),NODRAW,COLORFFFF00;
中:CONST(高1-(高1-低1)*1/2),NODRAW,COLORWHITE;
H33%:CONST(高1-(高1-低1)*2/3),NODRAW,COLOR0099FF;
TT3:=(CURRBARSCOUNT=1{5});
TT4:=(CURRBARSCOUNT=1{5+3});
STICKLINE(C>0,CONST(高1-(高1-低1)*1/4),CONST(高1-(高1-低1)*1/4),2,0),COLORFF00FF;
STICKLINE(C>0,CONST(高1-(高1-低1)*3/4),CONST(高1-(高1-低1)*3/4),2,0),COLORFF00FF;
STICKLINE(C>0,天,天,10,0),COLORYELLOW;
STICKLINE(C>0,地,地,10,0),COLOR00FF00;
STICKLINE(C>0,H66%,H66%,10,0),COLORFFFF00;
STICKLINE(C>0,中,中,10,0),COLORWHITE;
STICKLINE(C>0,H33%,H33%,10,0),COLOR0099FF;
H75%:CONST(高1-(高1-低1)*1/4),NODRAW;
H25%:CONST(高1-(高1-低1)*3/4),NODRAW;
均價線:=AMOUNT/V/100;
C2:=REF(C,1);
漲停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(漲停,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(漲停,OPEN,CLOSE,2.8,0),COLORYELLOW;
STICKLINE(漲停,H,L,0,0),COLORYELLOW;
LC:=REF(CLOSE,1);
操作線:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
趨勢線:=SMA(MAX(CLOSE-LC,0),14,1)/SMA(ABS(CLOSE-LC),14,1)*100;
震倉線:=45;
震倉線2:=50;
逃命線:=80;
抄底線:=20;
絕底線:=5;
PP2:=操作線<震倉線2 AND REF(操作線,1)>震倉線2 ;
PP:=操作線<震倉線 AND REF(操作線,1)>震倉線 ;
PP3:=操作線<抄底線 AND REF(操作線,1)>抄底線;
HH:=COUNT(漲停,13)>=1;
STICKLINE(PP2 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
STICKLINE(PP AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
STICKLINE(PP3 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
A:=SMA(L,4,3);
STICKLINE(A AND REF(PP,1) AND HH ,A*0.9999,A*0.994,5,0),COLORGREEN;
STICKLINE(A AND REF(PP3,1) AND HH ,A*0.9999,A*0.994,5,0),COLORGREEN;
DRAWTEXT("KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043
AND EXPMA(C,12)>EXPMA(C,50),L*0.95,'起爆'),COLORRED;
星板:=ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03&&
CLOSE/OPEN>1.03&&CLOSE>REF(CLOSE,2) AND C/REF(C,1)>1.071;
DRAWTEXT(星板,L*0.950,'星'),COLORMAGENTA;
DRAWICON(星板,L*0.97,1);
通達信獵豹出擊均線主圖指標公式實例圖解:
通達信獵豹出擊均線主圖指標公式