新版分时突破主图,副图公式
分时主图公式
AA:=BARSLAST(TIME2=100000);
CC:=REF(HHV(C,0),AA+1);
VV:=REF(HHV(V,0),AA+1);
ZF:=CC/DYNAINFO(3)<1.05;
XG10:=CROSS(C,CC) AND V>VV AND ZF;
AA1:=BARSLAST(TIME2=110000);
CC1:=REF(HHV(C,0),AA1+1);
VV1:=REF(HHV(V,0),AA1+1);
ZF1:=CC1/DYNAINFO(3)<1.05;
XG11:=CROSS(C,CC1) AND V>VV1 AND ZF1;
KK:=XG10 AND XG11;
均价:SUM(V*C,0)/SUM(V,0),COLORYELLOW;
DRAWICON(KK,均价,1);
DRAWTEXT(KK,均价,'突破');
分时副图公式
TA:=BARSLAST(TIME2=100000);
TC:=REF(HHV(C,0),TA+1);
TV:=REF(HHV(V,0),TA+1);
ZF:=TC/DYNAINFO(3)<1.05;
XG1:=CROSS(C,TC) AND V>TV AND ZF,COLORWHITE;
TA1:=BARSLAST(TIME2=110000);
CC1:=REF(HHV(C,0),TA1+1);
VV1:=REF(HHV(V,0),TA1+1);
ZF1:=CC1/DYNAINFO(3)<1.05;
XG2:=CROSS(C,CC1) AND V>VV1 AND ZF1,COLORYELLOW;
突破:=XG1 OR XG2,COLORRED;
DRAWICON(突破=1,50,17);
|