以下是同花顺星空断层指标公式

A5:MA(C,5),color999999,POINTDOT,LINETHICK1;
A20:MA(C,20),colorblue;
A60:=MA(C,60),color0111FF;
A1:=MA(C,1);
DEA:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),42),COLORFF7FFF,LINETHICK1;
PARTLINE(A60,A60>REF(A60,1),color0111FF,A60<REF(A60,1),color009000);
FILLRGN(A5,DEA,DEA>REF(DEA,1) AND A1>A5,color0999ff,DEA>REF(DEA,1) AND A1<A5 AND A5>=REF(A5,1),COLOR222222,DEA>REF(DEA,1) AND A1<A5 AND A5<REF(A5,1),color222222);
FILLRGN(A5,DEA,DEA<REF(DEA,1) AND A1>A5,color009000,DEA<REF(DEA,1) AND A1<A5,color222222,DEA<REF(DEA,1),COLOR222222);
PARTLINE(DEA,A1>=DEA,colorFFFFFF,A1<DEA,colorFF9909),LINETHICK2;
PARTLINE(A5,A5>=REF(A5,1),color111FFF,A5<REF(A5,1),Culor00f000),LINETHICK2;
N=20;
P=2;
MID:=MA(CLOSE,N),color999999,POINTDOT,LINETHICK1;
UPPER:=MID + P*STD(CLOSE,N),color999999;
LOWER:=MID – P*STD(CLOSE,N),color999999;
PARTLINE(UPPER,A1>=UPPER,color009000,A1<UPPER,Culor999999),LINETHICK1;
PARTLINE(LOWER,A1<=LOWER,color009000,A1>LOWER,Culor999999),LINETHICK1;

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。