先建立引用指标:FSYY
T1:V/REF(MA(V,5),1);
V1:V;
V2:REF(V,1);
HS:V/CAPITAL*100;
HST:REF(V/CAPITAL*100,1);
HST2:REF(V/CAPITAL*100,2);
JL5:=MA(V,5);
LIANGBI:REF(V/REF(MA(V,5),1),1);
然后建立分时指标
前日量:=REF(V,2);
昨日量:=REF(V,1);
M1Q:="FSYY.T1#DAY";
MHS:="FSYY.HS#DAY";
MHS3:="FSYY.HST#DAY";
V1:="FSYY.V1#DAY";
V2:="FSYY.V2#DAY";
MHST:="FSYY.HST#DAY";
QHST:="FSYY.HST2#DAY";
LIANGBI:="FSYY.LIANGBI#DAY";
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.25,0.75,0,STRCAT('今天换手: ',CON2STR(MHS,2))),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.25,0.85,0,STRCAT('昨天换手: ',CON2STR(MHST,2))),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.35,0.75,0,STRCAT('量比: ',CON2STR(DYNAINFO(17),2))),COLORYELLOW;
{DRAWTEXT_FIX(CURRBARSCOUNT=1,0.35,0.95,0,STRCAT('前: ',CON2STR(QHST,2))),COLORYELLOW;}
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.35,0.85,0,STRCAT('昨量比: ',CON2STR(LIANGBI,2))),COLORYELLOW;