趋势线为分段以不同颜色显示,大于中枢45为红色,小于25为白色,中间那段为绿色;当趋势线由白转绿波段地点小量参与,当趋势线在顶部蓝色直线区域拐头向下卖出。
使用时请结合其他技术指标、成交量、大盘走势等多因素进行综合判断。 势:=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);)
支撑位:IF((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100>=0,REF(EMA(CLOSE,15),BARSLAST(CROSS((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100,0))+1),DRAWNULL),colorred,LINETHICK3;
阻力位:IF((EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100<0,REF(EMA(CLOSE,15),BARSLAST(CROSS(0,(EMA(CLOSE,15)-REF(EMA(CLOSE,15),1))/REF(EMA(CLOSE,15),1)*100))+1),DRAWNULL),colorblue,LINETHICK3;
VARA:=EMA(EMA(C,13),13);
KP:=(VARA-REF(VARA,1))/REF(VARA,1)*1000,colorwhite,LINETHICK3;
MM:=REF(KP,1);
派:IF(KP=0,KP,KP),colorgreen,LINETHICK3;
落:IF(KP<0 ,KP,DRAWNULL),colorwhite,LINETHICK3;
吸:IF(KP>=MM ,KP,DRAWNULL),colorlired,LINETHICK3;
拉:IF(KP>=0 AND KP>=MM,KP,DRAWNULL),colorred,LINETHICK3;
|
