TS:=CURRBARSCOUNT;
TS1:=BARSSINCE(C);
常数:=CONST(BARSSINCE(C));
C1:=REFX(C,常数-TS1*2+2);
C2:=REF(C,常数-TS*2+2);
O1:=REFX(O,常数-TS1*2+2);
O2:=REF(O,常数-TS*2+2);
H1:=REFX(H,常数-TS1*2+2);
H2:=REF(H,常数-TS*2+2);
L1:=REFX(L,常数-TS1*2+2);
L2:=REF(L,常数-TS*2+2);
CC:=IF(TS>TS1,C1,C2),NODRAW;
OO:=IF(TS>TS1,O1,O2),NODRAW;
LL:=IF(TS>TS1,L1,L2),NODRAW;
HH:=IF(TS>TS1,H1,H2),NODRAW;
DRAWKLINE(HH,OO,LL,CC);
|