自动浪型画线主图源码
N:=8;
STICKLINE(C>=O,L,H,0.00001,0),COLORRED;
STICKLINE(C>O,O,C,2.5,0),COLORRED;
STICKLINE(C>O,O,C,0.6,0),COLORCC66FF;
STICKLINE(C<O,O,C,2.5,0),COLORFF6600;
STICKLINE(C<O,O,C,0.6,0),COLORFF9900;
STICKLINE(C<O,L,H,0.00001,0),COLORCYAN;
X1:=(EMA(C,N)-REF(EMA(C,N),1))/REF(EMA(C,N),1)*100;
X2:=IF(X1<0,REF(X1,BARSLAST(CROSS(0,X1))+1),0);
X3:=IF(X1>0,REF(X1,BARSLAST(CROSS(0,X1))+1),0);
X4:=IF(CROSS(0,X1),H,L);
DRAWLINE(CROSS(X2,X3),H,CROSS(X3,X2),L,0),LINETHICK2,COLORWHITE;
DRAWLINE(CROSS(X3,X2),L,CROSS(X2,X3),H,0),LINETHICK2,COLORCYAN;
DRAWLINE(CROSS(0,X1)||CROSS(X1,0),X4,ISLASTBAR,X4,0),LINETHICK2,COLORGREEN;
1831455657.jpg
|