NN:=BARSLAST(DATE<>REF(DATE,1) )+1;
YESTH:VALUEWHEN(DATE<>REF(DATE,1),HHV(HIGH,43+1)),COLORRED;
DRAWNUMBER(C>0,VALUEWHEN(ISLASTBAR,YESTH),VALUEWHEN(ISLASTBAR,YESTH),0,COLORRED);
YESTL:VALUEWHEN(DATE<>REF(DATE,1),LLV(LOW,43+1)),COLORGREEN;
DRAWNUMBER(C>0,VALUEWHEN(ISLASTBAR,YESTL),VALUEWHEN(ISLASTBAR,YESTL),0,COLORGREEN);
YESTC:VALUEWHEN(DATE<>REF(DATE,1),REF(CLOSE,1)),COLORMAGENTA;
DRAWNUMBER(C>0,VALUEWHEN(ISLASTBAR,YESTC),VALUEWHEN(ISLASTBAR,YESTC),0,COLORMAGENTA);