笔:=4;
M1:=5;
M2:=10;
M3:=20;
M4:=60;
X_1:=STRCAT(HYBLOCK,2);
X_2:=STRCAT(X_1,DYBLOCK);
X_3:=STRCAT(X_2,2);
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(X_3,GNBLOCK)),COLORRED;
X_4:=HIGH=HHV(HIGH,笔) AND HHV(HIGH,笔) REF(HHV(HIGH,笔),3);
X_5:=LOW=LLV(LOW,笔) AND LLV(LOW,笔) REF(LLV(LOW,笔),3);
DRAWLINE(X_4,HIGH,X_5,LOW,0),DOTLINE,COLORYELLOW;
DRAWLINE(X_5,LOW,X_4,HIGH,0),DOTLINE,COLORYELLOW;
X_6:=BACKSET(ISLASTBAR,MIN(BARSLAST(X_4),BARSLAST(X_5))+1);
X_7:=X_6 REF(X_6,1);{www.9m8.cn 九毛八公式指标网}
NOTEXT:DRAWLINE(X_7,IF(X_4,HIGH,LOW),ISLASTBAR,IF(BARSLAST(X_4) BARSLAST(X_5),HIGH,LOW),1),DOTLINE,COLORWHITE;
X_8:=MA(MA(CLOSE,3),1);
决策:MA(MA(CLOSE,3),M1),COLORWHITE,LINETHICK2;
NOTEXT_升:IF(X_8 =决策,决策,DRAWNULL),COLORRED,LINETHICK2;
MA2:MA(CLOSE,M2),COLORYELLOW;
MA3:MA(CLOSE,M3),COLORGREEN,LINETHICK2;
MA4:MA(CLOSE,M4),COLORCYAN;
NOTEXTMA:IF(MA3 REF(MA3,1),MA3,DRAWNULL),COLORMAGENTA,LINETHICK2;
BK:=IF(INBLOCK(1),0.2,IF(INBLOCK(2),0.2,IF(INBLOCK(3),0.05,0.1)));
STICKLINE((C =ZTPRICE(REF(C,1),BK) AND C=H),C,O,2.7,0),COLORFF00FF;{粉色}
STICKLINE((C =DTPRICE(REF(C,1),BK) AND C=L),C,O,2.7,0),COLOR80FF00;{绿色};