同花顺分时资金 源码介绍
同花顺分时资金 源码
qs1:=IF(C>MA(C,5),1,0);
qs2:=IF(C<MA(C,5),-1,0);
qs3:=IF(MA(C,5)>REF(MA(C,5),1),1,0);
qs4:=IF(MA(C,5)<REF(MA(C,5),1),-1,0);
qs:=qs1+qs2+qs3+qs4;
STICKLINE((qs=-2 AND C<O),H,L,0,0),colorgreen;
STICKLINE((qs=-2 AND C<O),OPEN,CLOSE,7,1),colorgreen,LINETHICK2;
STICKLINE((qs=-2 AND C>O),H,L,0,0),colorcyan;
STICKLINE((qs=-2 AND C>O),O,C,7,1),colorcyan,LINETHICK2;
STICKLINE((qs=0 AND C<O),H,L,0,0),colorwhite;
STICKLINE((qs=0 AND C<O),O,C,7,1),colorwhite,LINETHICK2;
STICKLINE((qs=0 AND C>O),H,L,0,0),coloryellow;
STICKLINE((qs=0 AND C>O),O,C,7,1),coloryellow,LINETHICK2;
STICKLINE((qs=2 AND C<O),H,L,0,0),colormagenta;
STICKLINE((qs=2 AND C<O),O,C,7,1),colormagenta,LINETHICK2;
STICKLINE((qs=2 AND C>O),H,L,0,0),colorred;
STICKLINE((qs=2 AND C>O),O,C,7,1),colorred,LINETHICK2;
ZJ:=(C+2*H+L)/4;
生线:SMA(ZJ,5,1),LINEDOT;
生死中轨:WMA(生线,5),colorwhite,LINEDOT;
ma55:=MA(C,55),LINEDOT;
ma90:=MA(C,90);
ma152:=MA(C,152);
强:MAX(MAX(ma55,ma90),ma152),POINTDOT,LINETHICK4,coloryellow;
弱:MIN(MIN(ma55,ma90),ma152),POINTDOT,LINETHICK4,colorgreen;
压:HHV(C,20),colorgreen;
撑:LLV(L,20),colormagenta;
空间:=(压-撑)/撑*100,LINETHICK0;
突破:=IF(压>REF(压,1),1,0),LINETHICK0;
M5:MA(C,5),LINETHICK1,colorred;
M13:MA(C,13),LINETHICK1,coloryellow;
m30:MA(C,30),LINETHICK2,colorwhite;
STICKLINE((突破),O,C,7,0),colorred,LINETHICK2;
DRAWTEXT(V>=MA(V,20) AND V=HHV(V,13),C,'---------T'),coloryellow;
DRAWTEXT(V/REF(V,1)>2 AND V/CAPITAL*100>1,C,'---------B'),colorred;
gd23029