粗白线是趋势线,成左下右上对角线时候是最好的趋势,股价不断创新高,低点不断抬高,这就是上涨趋势,分回调买入,高点做空。
股价站上彩带持股,跌破彩带持币
源码
MA5:=MA(CLOSE,5),colorliblue;
BB:=SMA(SMA(SMA(MA5,2,1),2,1),2,1);
决策:=MA(BB,3);
FILLRGN(BB,决策,BB>=决策,colorred,BB<决策,colorgreen);
中线趋势20:MA(CLOSE,20),colorwhite,linethick3;
上轨:中线趋势20+2*STD(CLOSE,20),colorred,linethick2;
下轨:中线趋势20-2*STD(CLOSE,20),colorgreen,linethick2;
生命线:=MA(CLOSE,30),color222666;
多空趋势60:=MA(CLOSE,60),colorliblue;
半年线:MA(CLOSE,120),colorblue,linethick1;
年线:MA(CLOSE, 250),colorblue;
DRAWTEXT(CROSS(中线趋势20,生命线),生命线*0.98,'走强'),colorgreen,linethick2;
DRAWTEXT(CROSS(生命线,多空趋势60),多空趋势60*0.98,'走牛'),COLOR0000FF,linethick2;
DRAWTEXT(CROSS(多空趋势60,半年线),半年线*0.98,'长牛'),COLOR999999,linethick2;
STICKLINE(C/REF(C,1)>1.0925 AND C=H,CLOSE,OPEN,8,0),colormagenta;
C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,8,0),coloryellow;