以下是同花顺做波段主图指标

同花顺做波段主图指标

源码

fl:MA(CLOSE,17)+ABS(MA(CLOSE,17)-REF(MA(CLOSE,17),1)),colorf4e202;
fs:MA(CLOSE,17)+MA(CLOSE,17)-REF(MA(CLOSE,17),1),colorf4e202,linethick2;
cg:=IF(MA(CLOSE,17)<fs,fs,MA(CLOSE,17)),colorf4e202,linethick2;
年线:=EMA(C,250);
a:cg-(EMA(C,3)-cg),Culor1EFFFF,linethick2;
qq:年线-(EMA(C,3)-年线),colorff80ff,linethick2;
PARTLINE(cg,cg>REF(cg,1),RGB(250,30,250),cg<=REF(cg,1),RGB(40,250,40)),LINETHICK3;

var9Q:=C= HHV(C,4)AND (REF(C,1)>=REF(C,2) OR REF(C,1)>=REF(C,3)) OR REF(C,1)=HHV(C,4) AND CLOSE>=REF(C,2) OR REF(C,2)=HHV(C,4) AND REF(C,3)=LLV(C,4) AND C>=REF(C,1) OR REF(C,3)=HHV(C,4) AND C>=REF(C,1) AND C>=REF(C,2);
varaQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
varbQ:=C=LLV(C,4) AND (REF(C,1)<REF(C,2) OR REF(C,1)<REF(C,3)) OR REF(C,1)=LLV(C,4) AND C<REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<>HHV(C,4) AND C<REF(C,1) OR REF(C,3)=LLV(C,4) AND C<REF(C,1) AND C<REF(C,2);
varcQ:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)<REF(C,4) AND C>=REF(C,1);
vardQ:=REF(C,1)=HHV(C,4) AND C<REF(C,2) OR (REF(C,2)=HHV(C,4) AND REF(C,1)>REF(C,3) OR REF(C,3)=HHV(C,4) AND REF(C,1)>REF(C,2)) AND REF(C,2)>=REF(C,4) AND C<REF(C,1);
A:=(3*C+L+O+H)/6;
VAR4:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+REF(A,20))/210;
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,12),12)/EMA(EMA(ABS(MTM),12),12);
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),CulorFF2894;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),Culor2828FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),Culor2DFF2D;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),COLORFF4D4D;

STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,10,0 ),COLORD50000;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLORF20000;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLORFF2626;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLORFF4D4D;//绿蓝空

STICKLINE(CLOSE>OPEN,CLOSE,OPEN,10,0) ,CulorB7005B;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,CulorD5006A;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,CulorF9007C;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,CulorFF2894;//紫红跟
红持:var9Q,Culor2D2DFF;
STICKLINE(var9Q,C,(O+C)/2,10,0),Culor0000B7;
STICKLINE(var9Q,C,(O+C)/2,8,0),Culor0000D5;
STICKLINE(var9Q,C,(O+C)/2,6,0),Culor0000FF;
STICKLINE(var9Q,C,(O+C)/2,4,0),Culor2D2DFF;
粉加:varaQ,CulorFF2DFF;
STICKLINE(varaQ,C,(O+C)/2,10,0),CulorB700B7;   
STICKLINE(varaQ,C,(O+C)/2,8,0),CulorD500D5;   
STICKLINE(varaQ,C,(O+C)/2,6,0),CulorF900F9;   
STICKLINE(varaQ,C,(O+C)/2,4,0),CulorFF2DFF;   

白减:varbQ,CulorFFFFFF;   
STICKLINE(varbQ,C,(O+C)/2,10,0),CulorAAAAAA;   
STICKLINE(varbQ,C,(O+C)/2,8,0),CulorCECECE;   
STICKLINE(varbQ,C,(O+C)/2,6,0),CulorF2F2F2;   
STICKLINE(varbQ,C,(O+C)/2,4,0),CulorFFFFFF;
绿抛:vardQ,Culor2DFF2D;
STICKLINE(vardQ,O,(O+C)/2,10,0),Culor00B700;
STICKLINE(vardQ,O,(O+C)/2,8,0),Culor00D500;
STICKLINE(vardQ,O,(O+C)/2,6,0),Culor00F900;
STICKLINE(vardQ,O,(O+C)/2,4,0),Culor2DFF2D;
黄进:varcQ,Culor33FFFF;   
STICKLINE(varcQ,O,(O+C)/2,10,0),Culor00B7B7;   
STICKLINE(varcQ,O,(O+C)/2,8,0),Culor00D5D5;   
STICKLINE(varcQ,O,(O+C)/2,6,0),Culor00FBFB;   
STICKLINE(varcQ,O,(O+C)/2,4,0),Culor33FFFF;
RSV:=(C-LLV(L,19))/(HHV(H,19)-LLV(L,19))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
B:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
DRAWTEXT(FILTER(B=1,5),LOW-0.10,’★ ‘),Culor2D2DFF;
RSV:=(C-LLV(L,27))/(HHV(H,27)-LLV(L,27))*100;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BDGD:=HHV(J,2)=HHV(J,8) AND J>80;
注意:=IF(CROSS(REF(J-0.01,1),J) AND REF(BDGD,1),1,0);
DRAWTEXT(注意 AND A<>1,HIGH*1.05,’◆’),Culor00D200;
C3:=REF(C,1);
涨停:IF((C-C3)*100/C3>=(10-0.01*100/C3),1,0),Culor0080FF;
STICKLINE(涨停,OPEN,CLOSE,10,0),Culor004891;
STICKLINE(涨停,OPEN,CLOSE,8,0),Culor0055AA;
STICKLINE(涨停,OPEN,CLOSE,6,0),Culor006AD5;
STICKLINE(涨停,OPEN,CLOSE,4,0),Culor0080FF;

跌停:IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0),COLORffee00;
STICKLINE(跌停,OPEN,CLOSE,10,0),COLORff6600;
STICKLINE(跌停,OPEN,CLOSE,8,0),COLORff8800;
STICKLINE(跌停,OPEN,CLOSE,6,0),COLORffcc00;
STICKLINE(跌停,OPEN,CLOSE,4,0),COLORffee00;
MA3:=EMA(C,3);
X1:=REF(EMA(C,3),1);
X2:=(EMA(C,3)-X1)/X1*100;
N1:=BARSLAST(CROSS(X2,0.3));
N2:=BARSLAST(CROSS(0.3,X2));
X3:=CROSS(X2,0.3) OR CROSS(0.3,X2);
STICKLINE(N1<N2,REF(MA3,N1),REF(MA3,N1),5,0), POINTDOT,Culor37FFFF,LINETHICK2;
STICKLINE(N2<N1,REF(MA3,N2),REF(MA3,N2),5,0), POINTDOT,CulorFFFF2D,LINETHICK2;
 

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