以下是同花顺周线抄底源码副图
MA势:=SMA(MAX(C-REF(C,1),0),8,1)/SMA(ABS(C-REF(C,1)),8,1)*100,COLORFFB5FF,LINETHICK2;
势:=EMA(MA势,5),colorred;
PARTLINE(势,势<=25,colorwhite,势<=45,colorgreen,势>45,colorred),LINETHICK2;
顶:80,COLORFFFF00;
中轴:50,COLOR4080FF;
底:20,COLOR004080,LINETHICK2;
N:=IF(BARSCOUNT(C)>=10,10,BARSCOUNT(C));
D1:=DATE;
DC:= IF(D1<20180131,1,0);
STICKLINE(C>=MA(C,N) AND DC,MA(C,N),MA(C,N*0.7),14,0),colorred;
//IF(D1<20180131,DRAWICON(C>=MA(C,N) AND REF(C,1) < MA(C,N),LOW,1),0);
STICKLINE(C<MA(C,N) AND DC,MA(C,N),MA(C,N*0.7),14,0),colorgreen;
//IF(D1<20180131,DRAWICON(C<MA(C,N) AND REF(C,1)>= MA(C,N),LOW,2),0);)
EME13:=(EMA(EMA(C,13),13)/REF(EMA(EMA(C,13),13),1)-1)*1000;
吸:IF(EME13< 0 AND EME13> REF(EME13,1),EME13,DRAWNULL),NODRAW,colorlired,LINETHICK3;
拉:IF(EME13>=0 AND EME13> REF(EME13,1),EME13,DRAWNULL),NODRAW,colorred,LINETHICK3;
派:IF(EME13>=0 AND EME13<=REF(EME13,1),EME13,DRAWNULL),NODRAW,colorgreen,LINETHICK3;
落:IF(EME13< 0 AND EME13<=REF(EME13,1),EME13,DRAWNULL),NODRAW,colorwhite,LINETHICK3;
NOTEXT吸:IF(BACKSET(EME13< 0 AND EME13> REF(EME13,1),2),EME13,DRAWNULL),colorlired,LINETHICK3;
NOTEXT拉:IF(BACKSET(EME13>=0 AND EME13> REF(EME13,1),2),EME13,DRAWNULL),colorred,LINETHICK3;
NOTEXT派:IF(BACKSET(EME13>=0 AND EME13<=REF(EME13,1),2),EME13,DRAWNULL),colorgreen,LINETHICK3;
NOTEXT落:IF(BACKSET(EME13< 0 AND EME13<=REF(EME13,1),2),EME13,DRAWNULL),colorwhite,LINETHICK3;
评论(0)