以下是通达信换手率彩柱源码附图(无源码的请下载附件导入)
通达信公式换手率彩柱
N:=10;
J10:=O>REF(C,1) AND C<O;
J15:=V/REF(MA(V,13),1);
J20:=J15>5;
DRAWNUMBER(J10 AND J20,HSL*1.1,J15);
HSL:=100*DYNAINFO(37),VOLSTICK;
MA(HSL,20),COLORYELLOW;
P1:=HSL<=1;
P2:=HSL>1 AND HSL<=3;
P3:=HSL>3 AND HSL<=5;
P4:=HSL>5 AND HSL<=10;
P5:=HSL>10;
STICKLINE(P1,0,HSL,3,0),COLOR808080;
STICKLINE(P2,0,1,3,0),COLOR808080;
STICKLINE(P2,1,HSL,3,0),COLOR008000;
STICKLINE(P3,0,1,3,0),COLOR808080;
STICKLINE(P3,1,3,3,0),COLOR008000;
STICKLINE(P3,3,HSL,3,0),COLOR0080FF;
STICKLINE(P4,0,1,3,0),COLOR808080;
STICKLINE(P4,1,3,3,0),COLOR008000;
STICKLINE(P4,3,5,3,0),COLOR0080FF;
STICKLINE(P4,5,HSL,3,0),COLOR0000FF;
STICKLINE(P5,0,1,3,0),COLOR808080;
STICKLINE(P5,1,3,3,0),COLOR008000;
STICKLINE(P5,3,5,3,0),COLOR0080FF;
STICKLINE(P5,5,10,3,0),COLOR0000FF;
STICKLINE(P5,10,HSL,3,0),COLORFF0000;
|