源码:
STICKLINE(1,HIGH,LOW,2,0),COLORBLACK;
X_1:=BARSLAST(HOUR=9 AND MINUTE=31)+1;
X_2:=AMOUNT/VOL/100;
X_3:=SUM(CLOSE*VOL,0)/SUM(VOL,0);
X_4:=SETCODE=0 OR SETCODE=1 AND CLOSE
HHH:IF(SETCODE 2 AND CONST(BARSSINCE(CLOSE)) 241,CONST(IF(TIME TT2,HHV(CLOSE,0),SUM(IF(TIME=TT2,1,0)*HHV(CLOSE,0),0))),DRAWNULL),DOTLINE,COLORBLUE;
LLL:IF(SETCODE 2 AND CONST(BARSSINCE(CLOSE)) 241,CONST(IF(TIME TT2,HHV(CLOSE,0),SUM(IF(TIME=TT2,1,0)*LLV(CLOSE,0),0))),DRAWNULL),DOTLINE,COLORBLUE;
HHH2:IF(SETCODE 2 AND CONST(BARSSINCE(CLOSE)) 241 AND TIME TT2+1,HHH,DRAWNULL),COLORBLUE,LINETHICK3;
LLL2:IF(SETCODE 2 AND CONST(BARSSINCE(CLOSE)) 241 AND TIME TT2+1,LLL,DRAWNULL),COLORBLUE,LINETHICK3;
STICKLINE(TIME=931 OR TIME=TT2,HHH,LLL,1,0),COLORBLUE;
均价:IF(X_4,X_2,X_3),COLORYELLOW;
X_5:=SUP排序.SUPL;
X_6:=X_5*1.3;
DRAWNUMBER_FIX(1,1,1,1,X_5);
DRAWNUMBER_FIX(1,1,0,1,X_5);
X_7:=CLOSE REF(CLOSE,1) AND CLOSE/均价 1+X_5/100;
X_8:=CLOSE REF(CLOSE,1) AND CLOSE/均价 1-X_5/100;
HH1:REF(SUM(X_7,0),1)=0 AND SUM(X_7,0)=1,NODRAW;
LL1:REF(SUM(X_8,0),1)=0 AND SUM(X_8,0)=1,NODRAW;
X_9:=SUM(HH1,0)*CROSS(COUNT(CLOSE REF(CLOSE,1),BARSLAST(HH1)),0.5);
X_10:=SUM(LL1,0)*CROSS(COUNT(CLOSE REF(CLOSE,1),BARSLAST(LL1)),0.5);
CS1:CONST(SUM(IF(X_9,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN,LINETHICK2;
CB1:CONST(SUM(IF(X_10,REF(CLOSE,1),DRAWNULL),0)),COLORMAGENTA,LINETHICK2;
HH2:CROSS(SUM(X_7 AND CLOSE CS1*(1+X_6/100),0),0.5),NODRAW;
LL2:CROSS(SUM(X_8 AND CLOSE CB1*(1-X_6/100),0),0.5),NODRAW;
X_11:=SUM(HH2,0)*CROSS(COUNT(CLOSE REF(CLOSE,1),BARSLAST(HH2)),0.5);
X_12:=SUM(LL2,0)*CROSS(COUNT(CLOSE REF(CLOSE,1),BARSLAST(LL2)),0.5);
CS2:CONST(SUM(IF(X_11,REF(CLOSE,1),DRAWNULL),0)),COLORGREEN;
CB2:CONST(SUM(IF(X_12,REF(CLOSE,1),DRAWNULL),0)),COLORMAGENTA;
DRAWICON(HH1 OR HH2,CLOSE*1.001,39);
DRAWICON(LL1 OR LL2,CLOSE*0.999,38);
DRAWICON(X_10 OR X_12,REF(CLOSE,1)*0.999,7);
DRAWICON(X_9 OR X_11,REF(CLOSE,1)*1.001,8);
价位:CLOSE,COLORWHITE,LINETHICK4;