(来源:文华财经)
CC:="DAY$1$C";
OO:="DAY$1$O";
HH:=BACKSET(ISLASTBAR,REF(HHVBARS(H,DAYBARPOS)+1,DAYBARPOS)+DAYBARPOS);
LL:=BACKSET(ISLASTBAR,REF(LLVBARS(L,DAYBARPOS)+1,DAYBARPOS)+DAYBARPOS);
DRAWSL(CROSS(HH,0.5)&&REFX1(CC>OO,10000),H,0,10000,0,COLORRED),LINETHICK3;
DRAWSL(CROSS(LL,0.5)&&REFX1(CC<OO,10000),L,0,10000,0,COLORGREEN),LINETHICK3;
DRAWSL(CROSS(BACKSET(ISLASTBAR,DAYBARPOS+1),0.5),C,0,10000,0,COLORBLUE),LINETHICK3;