TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,240,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME<0.5,TOTAL,MTIME);
VVOL:=IF(CURRBARSCOUNT=1,VOL*TOTAL/CTIME,DRAWNULL);
MA13:=MA(C,13);
F1:=V>REF(V,1) AND C>=REF(C,1) AND C>=REF(O,1)
AND (MA13>=(REF(MA13,1)-0.002*MA13) OR MA13+0.025>=REF(MA13,1))
AND ABS(C-O)>0.03{十字星不做判断}
;
F2:=V>REF(V,1) AND C<=REF(C,1) AND C<=REF(O,1)
AND ABS(C-O)>0.03
AND MA13<=(REF(MA13,1)+0.003*MA13) ;
F22:=V>REF(V,1) AND C<=REF(C,1) AND C<=REF(O,1) AND C<O
AND REF(C+0.01,1)>=REF(O,1);
;
F3:=F1 AND V>REF(V,1)*1.9 AND V<REF(V,1)*2.5;
F33:=F1 AND V>REF(V,1)*2.5 ;
DRAWICON(F1,L-0.5,1);
DRAWICON(F3,L-1.5,1);
DRAWTEXT(F33,L-1,'倍');
DRAWICON(F2,H,2);
DRAWICON(F22,H+0.5,2);
|