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);
VOLUME:=VOL;
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;
假阴真阳:TJ1 OR TJ2;
[源码翻译]通达信公式动态翻译显示
TOTAL赋值:如果周期类型=1,返回5,否则返回如果周期类型=2,返回15,否则返回如果周期类型=3,返回30,否则返回如果周期类型=4,返回60,否则返回如果周期类型=5,返回240,否则返回1
MTIME赋值:当前离开盘分钟数关于TOTAL的模
CTIME赋值:如果MTIME<0.5,返回TOTAL,否则返回MTIME
VOLUME赋值:成交量(手)
TJ赋值:收阴线
TJ1赋值:收盘价>1日前的收盘价 AND TJ
TJ2赋值:成交额(元)/成交量(手)/100>1日前的收盘价 AND 开盘价>1日前的收盘价 AND 取反 AND TJ
输出假阴真阳:TJ1 OR TJ2