源码
input: N(5,1,100),p(321,0,999),K(1,1,3);
DRAWGBKlast(DATE>900101,strip(RGB(0,0,100),RGB(0,0,0),50));
{大盘预测}
MA1:MA(CLOSE,p1),COLORwhite;
MA2:MA(CLOSE,p2),COLORyellow,LINETHICK2;
MA3:MA(CLOSE,p3),ColorFFFF00,LINETHICK2;
MA4:MA(CLOSE,p4),COLORFF00ff;
MA5:MA(CLOSE,p5),COLORgreen;
MA6:MA(CLOSE,p6),COLORgray;
MA7:MA(CLOSE,p7),COLORblue;
条件:=CROSS(MA2,INDEXC) AND MA3>REF(MA3,1) AND MA1
DRAWTEXT(条件,H*1.015,'↙大跌开始');
DRAWTEXTABS(5,10,'■
DRAWTEXTABS(5,8,'
DRAWTEXTABS(5,30,'■大盘指数跌破9日均线第二第三日5日 '),ColorFFFF00,LINETHICK3;
DRAWTEXTABS(22,50,'均线回升可解除大跌信号 '),ColorFFFF00,LINETHICK3;
Var1:=EMA((CLOSE-LLV(LOW,10))/(HHV(HIGH,25)-LLV(LOW,10))*4,7);
休息: DRAWTEXT(CROSS(3,Var1),l,'休息了↗'),Color00FFFF,ALIGN2; {新增信号};