XA_1:=BARSLAST(DAY>REF(DAY,1));
前收:REF(CLOSE,XA_1+1),COLORWHITE;
STICKLINE(1,前收,前收,2,1);
XA_2:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
XA_3:=DAY>REF(DAY,1);
XA_4:=BARSLAST(XA_3)+1;
分时图均价:SUM(AMOUNT,XA_4)/SUM(VOL,XA_4)/100;
XA_5:=CURRBARSCOUNT;
XA_6:=DAY!=REF(DAY,1);
XA_7:=BARSLAST(XA_6)+1;
XA_8:=MA(CLOSE,XA_7);
XA_9:=SUM(AMOUNT,XA_7)/SUM(VOL,XA_7)/100;
XA_10:=IF(CAPITAL>0,XA_9,XA_8);
均价:IF(XA_5<=CONST(XA_7),XA_10,DRAWNULL);
M50:MA(CLOSE,50),COLORYELLOW,LINETHICK2;
XA_11:=EMA(CLOSE,12)-EMA(CLOSE,26);
XA_12:=EMA(XA_11,9);
MACD:(XA_11-XA_12)*1,NODRAW,COLORRED;
STICKLINE(MACD>=0,M50,M50+MACD*1.5,0,0),COLORLIRED;
STICKLINE(MACD<0,M50,M50+MACD*1.5,0,0),COLORLIGREEN;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,M50,M50+MACD*3,0,1),COLORLIRED;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,M50,M50+MACD*3,0,1),COLORLIGREEN;