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); TJ:=C<O; TJ1:=C>REF(C,1) AND TJ; TJ2:=AMOUNT/V/100>REF(C,1) AND O>REF(C,1) AND NOT(TJ1) AND TJ; 倍量:=VOL/REF(VOL,1)>=2; 假陰真陽:=(TJ1 OR TJ2) AND 倍量; N日前假陰真陽:=COUNT(假陰真陽,7)>=1; 連續(xù)縮量:=DOWNNDAY(VOL,4);{最近4日內(nèi)連續(xù)縮量,可根據(jù)需要調(diào)整。} 波谷值:= CONST(TROUGH(2,百分比,1)); 精準點:=(ABS(H-波谷值)<=0.024 OR ABS(L-波谷值)<=0.024); N日前假陰真陽 AND 精準點 AND 連續(xù)縮量; |
|