同花顺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),ColorFFFF15;
M9:SMA(JF1,9,2),ColorFFFFFF;
M13:=SMA(JF1,13,2),Color09FF09;
M18:SMA(JF1,18,2),ColorFB00FB;
M25:=SMA(JF1,25,2),ColorFFFF0F;
M34:SMA(JF1,34,2),Color0606FF;
M43:SMA(JF1,43,2),Color02FFFF;
M55:SMA(JF1,55,2),Color09FF09;
DRAWICON(CROSS(ED2,JF2),L/1.001,15),Color33FFFF;
DRAWICON(CROSS(JF2,ED2),H*1.001,15),Color3EFF3E;
STICKLINE(CLOSE OPEN,OPEN,LOW,0.5,0 ),Color35FFFF;
STICKLINE(CLOSE OPEN,CLOSE,HIGH,0.5 ,0 ),Color1717FF;
STICKLINE(OPEN =CLOSE,CLOSE,LOW,0.5 ,0 ),ColorFFFFFF;
STICKLINE(OPEN =CLOSE,OPEN,HIGH,0.5 ,0 ),Color00FF00;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,10,0 ),ColorD8D8D8;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,8,0 ),ColorCCCCCC;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,4,0 ),ColorDEDEDE;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,2,0 ),ColorE6E6E6;
STICKLINE(OPEN =CLOSE ,CLOSE ,OPEN,1,0 ),ColorFFFFFF;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,10,0) ,Color0000B7;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,8,0) ,Color0000D2;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,4,0) ,Color0000EA;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,2,0) ,Color1111FF;
STICKLINE(CLOSE OPEN,CLOSE,OPEN,1,0) ,Color3535FF;
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),ColorFF1188;
STICKLINE(var9Q,C,(O+C)/2,8,0),ColorFF2693;
STICKLINE(var9Q,C,(O+C)/2,4,0),ColorFF2693;
STICKLINE(var9Q,C,(O+C)/2,2,0),ColorFF53A9;
STICKLINE(var9Q,C,(O+C)/2,1,0),ColorFF53A9;
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),Color006400;
STICKLINE(varbQ,C,(O+C)/2,8,0),Color008800;
STICKLINE(varbQ,C,(O+C)/2,4,0),Color009F00;
STICKLINE(varbQ,C,(O+C)/2,2,0),Color00C600;
STICKLINE(varbQ,C,(O+C)/2,1,0),Color00F200;
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),Color888800;
STICKLINE(vardQ,O,(O+C)/2,8,0),Color999900;
STICKLINE(vardQ,O,(O+C)/2,4,0),ColorC6C600;
STICKLINE(vardQ,O,(O+C)/2,2,0),ColorDEDE00;
STICKLINE(vardQ,O,(O+C)/2,1,0),ColorFFFF15;