M12:MA(CLOSE,12),coloryellow,LINETHICK1;//均线是收盘的12日均价,12日均线颜色
A:MA(CLOSE,7),colorgreen,LINETHICK1;//7日收盘价均线,7日均线颜色
IF(A>REF(A,1),A,DRAWNULL)colorred,LINETHICK1;//if语句A>1个周期的值,引用A
M26:MA(CLOSE,26),coloryellow,LINETHICK1,COLOR8000FF;//定义26日均线,颜色:桃红色,线性,8000FF
M62:MA(CLOSE,62),coloryellow,LINETHICK2;//定义62日均线,黄色
M133:MA(CLOSE,133),coloryellow,LINETHICK1,,COLOR0080FF;//定义133日均线,橙色
B:=A
IF(B-1,A,DRAWNULL)colorred,LINETHICK1; //向上的红色箭头
DRAWTEXT(crOSS(zig(3,8),REF(ZIG(3,8),1)),LOW*0.97,'←进场') ,LINETHICK1,COLOR00FFFF;//OOFFFF表示亮黄色//
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.99,1);
DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);
AZ6:=(3 * (SMA((((CLOSE - (LLV(LOW,27))) /
((HHV(HIGH,27)) - (LLV(LOW,27)))) * 100),5,1))) - (2 * (SMA((SMA((((CLOSE -
(LLV(LOW,27))) / ((HHV(HIGH,27)) - (LLV(LOW,27)))) * 100),5,1)),3,1)));
B7:=(10);
DRAWTEXT(CROSS(AZ6,B7),L,'←底'),COLOR0000FF;//OOO0FF表示红色//
VARC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
VARD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND
(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
DRAWTEXT((VARC=1),L,'买');COLOR0000FF;//乳白色
DRAWTEXT((VARD=1),H,'卖'),colorwhite;
实体中位:IF(CLOSE>=OPEN,OPEN+(CLOSE-OPEN)/2,CLOSE+(OPEN-CLOSE)/2);
ZF:=(MAX(O,C)-MIN(O,C))/REF(C,1)>=0.04;
STICKLINE(C>0 AND ZF,实体中位,实体中位,4,1),LINETHICK1,coloryellow;
AA:=CLOSE/REF(CLOSE,1)>1.099;
STICKLINE(AA,O,C,3,0),colormagenta;
DRAWTEXT(FILTER(LREF(H,1),5),L*1.02,'短高');
STICKLINE(FILTER(LREF(H,1),5),L,L,15,0),coloryellow;
破底新高:=(CLOSE>REF(HIGH,1) AND LOW
STICKLINE(破底新高,OPEN,CLOSE,1,0),coloryellow;