比翼雙飛 ( 副圖指標 通達信源碼 原創 )
《比翼雙飛》副圖指標主要分別通過彩帶、單色線及下部的圖形來顯示日、周KDJ指標的金叉和死叉情況,并分別在上部提示出他們的K線拐頭轉向狀況,更好地提供進場、持股、減倉、出場的有力時機。
源碼:
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;
DRAWBAND(K,RGB(240,0,0),D,RGB(240,0,240));
日KD金叉: K>=D POINTDOT;
日K拐點:K>=REF(K,1) POINTDOT;
STICKLINE(K>=REF(K,1) ,112,125,2,1),COLORFF00FF;
STICKLINE(K>=D ,5,-8,2,1),COLORRED;
周K:MA("KDJ.K#WEEK"(9,3,3) ,5),COLOR00FFFF,LINETHICK2;
周D:=MA("KDJ.D#WEEK"(9,3,3) ,5);
周J:=MA("KDJ.J#WEEK"(9,3,3) ,5);
周KD金叉:周K>= 周D POINTDOT;
周K拐點:周K>=REF(周K,1) POINTDOT;
IF(周K>=REF(周K,1) ,140,128),COLOR00FFFF;
DRAWICON(周K>=REF(周K,1),134,1);
DRAWICON(周K<REF(周K,1),136,2);
STICKLINE(C>0 ,-18,-10,4,0),COLOR6CAAFD;
STICKLINE(周K>=周D,-18,-10,4,0),COLORRED;
DRAWTEXT(CURRBARSCOUNT=115,124,'日K拐點'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=115,138,'周K拐點'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=115,4,'日KD叉'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=115,-10,'周KD叉'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=5,周K,'周K線'),COLORFFFFFF;
DRAWTEXT(CURRBARSCOUNT=5,K,'日K線'),COLORFFFFFF;
附圖:
- 上一篇文章:成交量指標 共五個(通達信源碼 副圖)
- 下一篇文章:黃金點 -做波段用(副圖 通達信源碼 帖圖)