以下是同花顺K线应用主图指标
同花顺K线应用主图指标
源码
ED1:=(-2*REF(C,2)+REF(C,1)+2*C);
ED2:=(-0.4*REF(C,4)-0.4*REF(C,3)-1.1*REF(C,2)+0.9*REF(C,1)+2*C);
ED3:=(-0.8*REF(C,4)-0.8*REF(C,3)-0.2*REF(C,2)+0.8*REF(C,1)+2*C);
JF1:=SMA(SMA(ED1,3,1),3,1);
JF2:=SMA(SMA(ED2,4,1),3,1);
JF3:=SMA(SMA(ED3,4,1),4,1);
M4:SMA(JF1,4,2),CulorFFFF15;
M9:SMA(JF1,9,2),CulorFFFFFF;
M13:=SMA(JF1,13,2),Culor09FF09;
M18:SMA(JF1,18,2),CulorFB00FB;
M25:=SMA(JF1,25,2),CulorFFFF0F;
M34:SMA(JF1,34,2),Culor0606FF;
M43:SMA(JF1,43,2),Culor02FFFF;
M55:SMA(JF1,55,2),Culor09FF09;
DRAWICON(CROSS(ED2,JF2),L/1.001,15),Culor33FFFF;
DRAWICON(CROSS(JF2,ED2),H*1.001,15),Culor3EFF3E;
STICKLINE(CLOSE>OPEN,OPEN,LOW,0.5,0 ),Culor35FFFF;
STICKLINE(CLOSE>OPEN,CLOSE,HIGH,0.5 ,0 ),Culor1717FF;
STICKLINE(OPEN>=CLOSE,CLOSE,LOW,0.5 ,0 ),CulorFFFFFF;
STICKLINE(OPEN>=CLOSE,OPEN,HIGH,0.5 ,0 ),Culor00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,10,0 ),CulorD8D8D8;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),CulorCCCCCC;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),CulorDEDEDE;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),CulorE6E6E6;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),CulorFFFFFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,10,0) ,Culor0000B7;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,Culor0000D2;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,Culor0000EA;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,Culor1111FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,Culor3535FF;
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);
STICKLINE(var9Q,C,(O+C)/2,10,0),CulorFF1188;
STICKLINE(var9Q,C,(O+C)/2,8,0),CulorFF2693;
STICKLINE(var9Q,C,(O+C)/2,4,0),CulorFF2693;
STICKLINE(var9Q,C,(O+C)/2,2,0),CulorFF53A9;
STICKLINE(var9Q,C,(O+C)/2,1,0),CulorFF53A9;
varaQ:=C=HHV(C,4) AND REF(C,1)=LLV(C,4);
STICKLINE(varaQ,C,(O+C)/2,10,0),colorff33ff;
STICKLINE(varaQ,C,(O+C)/2,8,0),colorff55ff;
STICKLINE(varaQ,C,(O+C)/2,4,0),colorff77ff;
STICKLINE(varaQ,C,(O+C)/2,2,0),colorff99ff;
STICKLINE(varaQ,C,(O+C)/2,1,0),colorffbbff;
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);
STICKLINE(varbQ,C,(O+C)/2,10,0),Culor006400;
STICKLINE(varbQ,C,(O+C)/2,8,0),Culor008800;
STICKLINE(varbQ,C,(O+C)/2,4,0),Culor009F00;
STICKLINE(varbQ,C,(O+C)/2,2,0),Culor00C600;
STICKLINE(varbQ,C,(O+C)/2,1,0),Culor00F200;
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);
STICKLINE(varcQ,O,(O+C)/2,10,0),color0090FF;
STICKLINE(varcQ,O,(O+C)/2,8,0),color009FFF;
STICKLINE(varcQ,O,(O+C)/2,4,0),color00B5FF;
STICKLINE(varcQ,O,(O+C)/2,2,0),color00E4FF;
STICKLINE(varcQ,O,(O+C)/2,1,0),color00EEFF;
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);
STICKLINE(vardQ,O,(O+C)/2,10,0),Culor888800;
STICKLINE(vardQ,O,(O+C)/2,8,0),Culor999900;
STICKLINE(vardQ,O,(O+C)/2,4,0),CulorC6C600;
STICKLINE(vardQ,O,(O+C)/2,2,0),CulorDEDE00;
STICKLINE(vardQ,O,(O+C)/2,1,0),CulorFFFF15;
评论(0)