通达信主图指标,但新建指标中检测不能通过
更多金钻指标股票技术讨论QQ群:966329692 技术讨论QQ群:220302856 技术讨论QQ群:39652085 如群满可换一个

编写要求:

ma3:ma(c,5),color000999;ma10:ma(c,10),color008364;ma21:ma(c,21),colorgray;Var1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;Var2:=MA(Var1,5);Var3:=MA(Var1,10);多方: DRAWTEXT(FILTER(MA(Var1,10)=Var1,1),Var3,'~'),colorgreen ;x1:=(C+L+H)/3;x2:=EMA(x1,6);x3:=EMA(x2,5);stickline(x2>=x3,low,high,0.1,1),colorred;stickline(x2>=x3,close,open,10,1),colorred;stickline(x2>=x3,close,open,9,9),colore66878;stickline(x20,OSC*1.003,OSC*1.003>0),34)/34;VE:=SUM(IF(OSC<=0,OSC*0.97,OSC*0.97<0),34)/34;VARW:=(c/ref(c,1)-1)*100<=4;drawtext(CROSS(OSC,VD) AND VARW,L-0.1,'∧/n加仓'),ALIGN0,COLORRED;KOH:=L>REF(H,1);KOL:=HREF(H,BARSLAST(KOH)+1);NHIF:=L<=REF(H,BARSLAST(KOH)+1);LIF:=H=REF(L,BARSLAST(KOL)+1);DRAWICON(HIF AND barslast(koh)

解答:

 MA21:MA(C,21),COLORGRAY;

VAR1:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
VAR2:=MA(VAR1,5);
VAR3:=MA(VAR1,10);
多方: DRAWTEXT(FILTER(MA(VAR1,10)<VAR2,1),VAR3,'!'),COLORWHITE ;
空方: DRAWTEXT(FILTER(MA(VAR1,10)>=VAR1,1),VAR3,'~'),COLORGREEN ;
X1:=(C+L+H)/3;
X2:=EMA(X1,6);
X3:=EMA(X2,5);
STICKLINE(X2>=X3,LOW,HIGH,0.1,1),COLORRED;
STICKLINE(X2>=X3,CLOSE,OPEN,10,1),COLORRED;
STICKLINE(X2>=X3,CLOSE,OPEN,9,9),COLORE66878;
STICKLINE(X2<X3,LOW,HIGH,0.1,1),COLORGREEN;
STICKLINE(X2<X3,CLOSE,OPEN,10,1),COLORGREEN;
STICKLINE(X2<X3,CLOSE,OPEN,9,1),COLORFF937F;
STICKLINE(CROSS(X2,X3),OPEN,CLOSE,6,0),COLORYELLOW;
STICKLINE(CROSS(X3,X2),OPEN,CLOSE,6,0),COLORBLUE;
VAR11:=REF(CLOSE,1);
VAR22:=SUM(VOL,2)/((HHV(HIGH,2)-LLV(LOW,2))*100);
VAR33:=(CLOSE-VAR11)*VAR22;
VAR4:=SUM(VAR33,0);
VAR5:=SMA(VAR4,5,1);
VAR6:=SMA(VAR4,8,1);
OSC:=VAR5-VAR6;
OSCMA:=MA(OSC,4);
VD:=SUM(IF(OSC>0,OSC*1.003,OSC*1.003>0),34)/34;
VE:=SUM(IF(OSC<=0,OSC*0.97,OSC*0.97<0),34)/34;
VARW:=(C/REF(C,1)-1)*100<=4;
DRAWTEXT(CROSS(OSC,VD) AND VARW,L-0.1,'∧/N加仓'),COLORRED;
KOH:=L>REF(H,1);
KOL:=H<REF(L,1);
HIF:=L>REF(H,BARSLAST(KOH)+1);
NHIF:=L<=REF(H,BARSLAST(KOH)+1);
LIF:=H<REF(L,BARSLAST(KOL)+1);
NLIF:=H>=REF(L,BARSLAST(KOL)+1);
DRAWICON(HIF AND BARSLAST(KOH)<BARSLAST(NHIF) AND BARSLAST(HIF)<BARSLAST(NHIF),REF(H,BARSLAST(KOH)+1),4);
DRAWICON(LIF AND BARSLAST(KOL)<BARSLAST(NLIF) AND BARSLAST(LIF)<BARSLAST(NLIF),REF(L,BARSLAST(KOL)+1),5);
 

选股票看什么指标最好 >股票指标网