N:=2;
TODAY:=DATE;
X:=HHVBARS(HIGH,N);
T7:=(REF(C,1)+O)/2;
T8:=(REF(C,1)+O)/2*0.98;
买一:IF(CURRBARSCOUNT<=CONST(X+1),CONST(T7),DRAWNULL),COLORYELLOW;
DRAWTEXT(DATE=CONST(TODAY),T7,CON2STR(T7,2)),COLORYELLOW;
买二:IF(CURRBARSCOUNT<=CONST(X+1),CONST(T8),DRAWNULL),COLORYELLOW;
DRAWTEXT(DATE=CONST(TODAY),T8,CON2STR(T8,2)),COLORYELLOW;
202108201211.jpg
|