以下是同花顺跟主力副图源码
N1:=43; N2:=4; N3:=14;
X1:35*(HHV(HIGH,N1)-CLOSE)/(HHV(HIGH,N1)-LLV(LOW,N1)),CulorFFFFFF;
Var1:=36*(HHV(HIGH,N2)-CLOSE)/(HHV(HIGH,N2)-LLV(LOW,N2));
Var2:=40*(HHV(HIGH,N3)-CLOSE)/(HHV(HIGH,N3)-LLV(LOW,N3));
白柱出减仓:=(Var1-X1)*1.3;
PARTLINE(白柱出减仓,白柱出减仓>REF(白柱出减仓,1),RGB(250,10,250),白柱出减仓<=REF(白柱出减仓,1),RGB(10,250,250)),LINETHICK3;
进出线:-8.8,LINETHICK02,POINTDOT,Culor02FFFF;
Var4:=X1-Var1;
STICKLINE(X1>=0,0,Var2,8,0),Culor009B00;
STICKLINE(X1>=0,0,Var2,6,0),Culor00CA00;
STICKLINE(X1>=0,0,Var2,4,0),Culor00F200;
STICKLINE(X1>=0,0,Var2,2,0),Culor3CFF3C;
STICKLINE(白柱出减仓<0,0,Var4,8,0),COLOR0000bb;
STICKLINE(白柱出减仓<0,0,Var4,6,0),COLOR0000cc;
STICKLINE(白柱出减仓<0,0,Var4,4,0),COLOR0000dd;
STICKLINE(白柱出减仓<0,0,Var4,2,0),COLOR0000ff;
STICKLINE(X1>=0,0,Var1,6,2),Culor00B7B7;
STICKLINE(X1>=0,0,Var1,3,2),Culor00DBDB;
STICKLINE(X1>=0,0,Var1,6,1),Culor00FBFB;
STICKLINE(X1>=0,0,Var1,2,1),Culor35FFFF;
STICKLINE(Var4<0,0,白柱出减仓,10,1),CulorCCCCCC;
STICKLINE(Var4<0,0,白柱出减仓,8,1),CulorDEDEDE;
STICKLINE(Var4<0,0,白柱出减仓,4,1),CulorF9F9F9;
STICKLINE(Var4<0,0,白柱出减仓,2,1),CulorFFFFFF;
评论(0)