以下是取昨日的最高价,最低低,收盘价公式源码(无源码的请下载附件导入)
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);
|