文华指标源码:
NN:=BARSLAST(DATEREFX(DATE,1));
CC:=VALUEWHEN(DATEREF(DATE,1),REF(OPI,1));
QQ:=OPI-REF(OPI,1);
K1:=IFELSE(CLOSE>OPENQQ>=0,QQ,0);
KK1:=IFELSE(CLOSE=0,QQ,0);
KK2:=IFELSE(CLOSE>OPENQQ0,DO,COLORYELLOW);
PARTLINE(LOW>0,KO,COLORGREEN);
W:=MOD(NN,4);
J:=BACKSET(ISLASTBAR,4);
DRAWNUMBER(ISLASTBAR,DO,DO,0,COLORYELLOW);
DRAWNUMBER(ISLASTBAR,KO,KO,0,COLORGREEN);
DRAWNUMBER(W=0J=0,DO,DO,0,COLORYELLOW);
DRAWNUMBER(W=0J=0,KO,KO,0,COLORGREEN);
VERTLINE(BARSLAST(DATE=REFX(DATE,1))=2,COLORMAGENTA);