同花顺黑牛均线副图源码
2017-09-23网络 编 辑:翔博软件
主力线:=MA(CLOSE,8),coloryellow;
MA20:=MA(CLOSE,20);
中线趋势:MA(CLOSE,30),colorwhite,linethick2;
牛市趋势线:MA(CLOSE,60),colorliblue,linethick2;
半年线:=MA(CLOSE,120),color111111;
年线:=MA(CLOSE,250),color111111;
STICKLINE(C/REF(C,1)>1.0925 AND C=H,CLOSE,OPEN,8,0),colormagenta;
DRAWTEXT(CROSS(MA20,中线趋势),中线趋势*0.98,'走强'),colorgreen,linethick2;
DRAWTEXT(CROSS(中线趋势,牛市趋势线),牛市趋势线*0.98,'走牛'),COLOR0000FF,linethick2;
DRAWTEXT(CROSS(牛市趋势线,半年线),半年线*0.98,'长牛'),COLOR999999,linethick2;
MA5:=MA(CLOSE,5);
BB:=SMA(SMA(SMA(MA5,2,1),2,1),2,1);
决策:=MA(BB,3);
FILLRGN(BB,决策,BB>=决策,colorred,BB<决策,colorgreen);