通道型指标,经过多年参数优化,成功率极高,自编
VAR1:=(C+H+O+L)/4;
卖出:=XMA(VAR1,20)*(1+80/1000);
买入:=XMA(VAR1,32)*(1-100/1000);
大盘卖出:=XMA(VAR1,20)*(1+55/1000);
大盘买入:=XMA(VAR1,32)*(1-80/1000);
DRAWKLINE(H,O,L,C);
STICKLINE(C>=O,C,O,3,0),COLOR0000AA;
STICKLINE(C>=O,C,O,2.5,0),COLOR0000BB ;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000CC ;
STICKLINE(C>=O,C,O,1,0),COLOR0000EE;
STICKLINE(C>=O,H,L,0,0),COLOR0000FF;
STICKLINE(C<=O,C,O,3,0),COLOR7B7B00;
STICKLINE(C<=O,C,O,2.5,0),COLOR909000;
STICKLINE(C<=O,C,O,1.5,0),COLORA8A800;
STICKLINE(C<=O,C,O,1,0),COLORCECE00;
STICKLINE(C<=O,H,L,0,0),COLORFFFF00;
高抛:卖出,colorgreen,LINETHICK1;
低吸:买入,colormagenta,LINETHICK1;
标准A:低吸+(高抛-低吸)*2/3,POINTDOT,colorwhite,LINETHICK2;
标准B:低吸+(高抛-低吸)*1/3,POINTDOT,colorwhite,LINETHICK2;
高安:IF(L<低吸,1,DRAWNULL),NODRAW;
安全:IF(BETWEEN(H,低吸,标准B),1,DRAWNULL),NODRAW;
稳定:IF(BETWEEN(H,标准A,标准B),1,DRAWNULL),NODRAW;
危险:IF(BETWEEN(H,标准A,高抛),1,DRAWNULL),NODRAW;
高危:IF(H>高抛,1,DRAWNULL),NODRAW;
IF(CLOSE=INDEXC,大盘卖出,卖出*1.01),colorcyan,LINETHICK1;
IF(CLOSE=INDEXC,大盘买入,买入*0.99),colorred,LINETHICK1;