| | | | 以下是通达信自用组合副图指标
通达信自用组合副图指标
源码
开MA5:(O+REF(C,1)+REF(C,2)+REF(C,3)+REF(C,4))/5,COLORGREEN,NODRAW;
开MA10:(O+REF(C,1)+REF(C,2)+REF(C,3)+REF(C,4)+REF(C,5)+REF(C,6)+REF(C,7)+REF(C,8)+REF(C,9))/10,COLORYELLOW,NODRAW;
开盘:O,NODRAW,COLORWHITE;昨收:REF(C,1),NODRAW,COLORWHITE;
DIFF:((EMA(CLOSE,12)-EMA(CLOSE,26))/EMA(C,26))*100,COLORRED,LINETHICK1;
DEA:EMA(DIFF,9),COLORMAGENTA,LINETHICK1;
VAR1:=(2*CLOSE+HIGH+LOW)/4;
VAR2:=EXPMA(EXPMA(EXPMA(VAR1,4),4),4);
J:((VAR2-REF(VAR2,1))/REF(VAR2,1)*100)*2,COLORSTICK;
D:=MA(J,3),COLORRED;
K:=MA(J,1),COLORGREEN;
STICKLINE(J>REF(J,1) AND J>=0,0,J,1,0),COLORRED;
STICKLINE(J>REF(J,1) AND J<0,0,J,1,0),COLORRED;
STICKLINE(J=0,0,J,1,0),COLORGREEN;
STICKLINE(J<0,0,J,1,0),COLORGREEN;
VAR3:=O>开MA5 OR O=开MA5 AND ISLASTBAR;
VAR4:=O>开MA10 OR O=开MA10 AND ISLASTBAR;
DRAWTEXT(VAR3,-J,' 高5'),COLORGREEN;
DRAWICON(VAR3,-J,1);
DRAWTEXT(VAR4,-J/2,' 高10'),COLORYELLOW;
DRAWICON(VAR3,-J/2,15);
DRAWICON(DIFF>REF(DIFF,1) AND REF(DIFF,2)>REF(DIFF,1),DIFF,1);
DRAWICON(DIFF
RSVK:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
KK:=SMA(RSVK,3,1),NODRAW,COLORYELLOW;
DK:=SMA(KK,3,1),NODRAW,COLORYELLOW;
JK:3*KK-2*DK,NODRAW,COLORYELLOW;
顶:=JK<120 AND JK>98 AND JK>REF(JK,1),COLORYELLOW,LINETHICK2;
顶部区:IF(顶,J,0),COLORWHITE,LINETHICK2;
DRAWTEXT(FILTER(顶 ,10),J ,' 落顶' ),COLORYELLOW;
底部:=JK>-20 AND JK<2 AND JK
DRAWTEXT(FILTER(底部 ,5),J,'底'),COLORYELLOW;
底部区:IF(底部,J,0),COLORLIMAGENTA,LINETHICK2;
| | | | |
|