AAW:=(3*C+L+O+H)/6;
X:=(20*AAW+19*REF(AAW,1)+18*REF(AAW,2)+17*REF(AAW,3)+16*REF(AAW,4)
+15*REF(AAW,5)+14*REF(AAW,6)+13*REF(AAW,7)+12*REF(AAW,8)+11*REF(AAW,9)
+10*REF(AAW,10)+9*REF(AAW,11)+8*REF(AAW,12)+7*REF(AAW,13)+6*REF(AAW,14)
+5*REF(AAW,15)+4*REF(AAW,16)+3*REF(AAW,17)+2*REF(AAW,18)+REF(AAW,20))/210;
中线:=EMA(X,13);
短线成本:=EMA(CLOSE,17);
安全:BARSLAST(短线成本 中线),COLORCYAN,LINETHICK2;
VAR13:=IF(YEAR =2018 AND MONTH =11 AND DAY =1,0,1);
AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
CC:=EMA(AA,2);
DD:=EMA(BB,5);
VAR14:=MAX(EMA(AA,2)-EMA(BB,5),0)*100;
VAR15:=EMA(VAR14,5);
SS:=EMA(VAR15,2);
风险系数:=(VAR15-SS)/10*VAR13;
{www.9m8.cn 九毛八公式指标网 股票软件下载网_最新股票指标公式}
波浪系数:VAR15*VAR13,STICK,COLORRED,LINETHICK2;
A10:=波浪系数,LINETHICK1 ;
B:MA(A10,3),COLORGREEN,LINETHICK2;
PARTLINE(B REF(B,1) AND B =0,B),COLORYELLOW,LINETHICK2;
PARTLINE(B REF(B,1) AND B 0,B),COLOR00FF00,LINETHICK2;
RSV1:=(CLOSE-LLV(LOW,35))/(HHV(HIGH,35)-LLV(LOW,35))*100;
K1:=SMA(RSV1,13,1);
D1:=SMA(K1,13,1);
中线浪:ema(d1,3),COLORGREEN;
PARTLINE(中线浪 REF(中线浪,1) AND 中线浪 =0,中线浪),COLORFF00FF,LINETHICK1;