|
{参数:N(1 100 11);百分比(3,20,5)} 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; 连续缩量:=DOWNNDAY(VOL,4);{最近4日内连续缩量,可根据需要调整。} 波谷值:= CONST(TROUGH(2,百分比,1)); 精准点:=(ABS(H-波谷值)<=0.024 OR ABS(L-波谷值)<=0.024); N日前假阴真阳 AND 精准点 AND 连续缩量; |
|