Ⅰ 求高手將我的這個操盤手指標加上5日線,120日線,250日線,我這個只有10日,20日,60日線,源碼如下
MA5:MA(CLOSE,5);
MA10:MA(CLOSE,10),LINETHICK1,COLORYELLOW;
MA20:MA(CLOSE,20),LINETHICK1,COLORMAGENTA;
MA60:MA(CLOSE,60),LINETHICK1,COLORGREEN;
MA120:MA(CLOSE,120);
MA250:MA(CLOSE,250);
買線:=EMA(C,9);
賣線:=EMA(SLOPE(C,34)*10+C,33);
DRAWTEXT(CROSS(買線,賣線),L-0.5,'←買入'),COLORRED;
DRAWICON(CROSS(買線,賣線),L-0.4,1);
DRAWTEXT(CROSS(賣線,買線),H+0.5,'←賣出'),COLORGREEN;
DRAWICON(CROSS(賣線,買線),H+0.4,2);
STICKLINE(買線>=賣線,LOW,HIGH,0.1,0),COLORRED;
STICKLINE(買線>=賣線,CLOSE,OPEN,3,1),COLORRED;
STICKLINE(買線<賣線,LOW,HIGH,0.1,0),COLORCYAN;
STICKLINE(買線<賣線,CLOSE,OPEN,3,1),COLORCYAN;
STICKLINE(OPEN>CLOSE,CLOSE,OPEN,1.5,0),COLORCYAN;
Ⅱ 三天內macd.kdj金叉並且5日均線上串10日均線,通達信源碼公式
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26),COLORYELLOW;
DEA:=EMA(DIF,9)COLORMAGENTA;
MACD:=(DIF-DEA)*2,COLORLIGRAY;
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;
選:EXIST(CROSS(DIF,DEA),3) AND EXIST(CROSS(J,K),3) AND CROSS(MA(C,5),MA(C,10));
Ⅲ 布林線和5日均線合成的公式
BOLL
布林線加
5
日線指標公式
N:=20;MIDA:=MA(C,N);V
ART1:=POW((C-MIDA),2);V
ART2:=MA(V
ART1,N);V
ART3:=SQRT
(V
ART2);UPPERA:=MIDA+2*VART3;LOWERA:=MIDA-2*VART3;BOLL:REF(MIDA,1);UB:
REF(UPPERA,1);LB:REF(LOWERA,1);
MA5:MA(C,5),COLORBLUE