Ⅰ 求高手将我的这个操盘手指标加上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