K線+XT箱體+均線指標(biāo)公式供讀者粘貼使用:
【箱頂】:PEAK(CLOSE,10,1)*0.98;
【箱底】:TROUGH(CLOSE,10,1)*1.02;
【箱高】:100*(【箱頂】-【箱底】)/【箱底】,NODRAW;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
參數(shù)設(shè)置:
參數(shù)名
M1
M2
M3
畫線方法:
RSV
K
D
B:=ZIG(3,10)*100,COLORWHITE;
G:=MA(B,2),COLORYELLOW;
S:=CROSS(B,G)*1000;
W:=CROSS(G,B)*1000;
KQ:IF(K>REF(K,1),K,DRAWNULL),COLORRED,LINETHICK2;
DQ:IF(D>REF(D,1),D,DRAWNULL),COLORYELLOW;
上警:80,COLORGRAY;
中線:50,COLORGRAY;
下警:20,COLORGRAY;
KD線買點(diǎn):IF(CROSS(K,D),K,DRAWNULL),COLORRED,CIRCLEDOT,LINETHICK3;
賣點(diǎn):IF(CROSS(D,K),K,DRAWNULL),COLORCYAN,CROSSDOT,LINETHICK3;
KD:=K-D;
KD差值:IF(K>D,KD,DRAWNULL)STICK,COLORMAGENTA,LINETHICK1;
DRAWICON(S=1000,80,1);
箱底買入:IF(S=1000,50,0),NODRAW,COLORRED;
DRAWICON(W=1000,83,2);
箱頂賣出:IF(W=1000,50,0),NODRAW,COLORGREEN;
不需設(shè)置參數(shù)和畫線方法.
RSV
K
D
B:=ZIG(3,10)*100,COLORWHITE;
G:=MA(B,2),COLORYELLOW;
S:=CROSS(B,G)*1000;
W:=CROSS(G,B)*1000;
KQ:IF(K>REF(K,1),K,DRAWNULL),LINETHICK2,COLORRED;
DQ:IF(D>REF(D,1),D,DRAWNULL),LINETHICK2,COLORRED;
KD線買點(diǎn):IF(CROSS(K,D)
賣點(diǎn):IF(CROSS(D,K)
{KD:=K-D;}
{KD差值:IF(K>D,KD,DRAWNULL)STICK,COLORMAGENTA;}
DRAWICON(S=1000,K,1);
箱底買入:IF(S=1000,50,0),NODRAW,COLORRED;
DRAWICON(W=1000,K,2);
箱頂賣出:IF(W=1000,50,0),NODRAW,COLORGREEN;
{15%之字轉(zhuǎn)向}
必買:IF(TROUGHBARS(3,15,1)=0
必賣:IF(PEAKBARS(3,15,1)=1,80,100),COLOR91FFCC;
參數(shù)設(shè)置:
參數(shù)名
N
M1
M2
畫線方法:
聯(lián)系客服