MA7:=MA(C,7);
TJ1:=REF(C,1)>REF(MA7,1);
TJ2:=C<MA7 AND MAX(O,C)/MIN(O,C)<1.04 ;
TJ3:=(H-MAX(O,C))/(H-L)>0.1 AND L=C;
TJ4:=(H-MAX(O,C))/(H-L)>0.1 AND (MIN(O,C)-L)/(H-L)>=0.1;
TJ5:=REF(L,1)>L AND H>L;
XG1:=TJ1 AND TJ2 AND (TJ3 OR TJ4) AND TJ5;
XG:REF(XG1,1);
看股吧 公式 www.kanguba. com
[源码翻译]通达信公式动态翻译显示
MA7赋值:收盘价的7日简单移动平均
TJ1赋值:1日前的收盘价>1日前的MA7
TJ2赋值:收盘价<MA7 AND 开盘价和收盘价的较大值/开盘价和收盘价的较小值<1.04
TJ3赋值:(最高价-开盘价和收盘价的较大值)/(最高价-最低价)>0.1 AND 最低价=收盘价
TJ4赋值:(最高价-开盘价和收盘价的较大值)/(最高价-最低价)>0.1 AND (开盘价和收盘价的较小值-最低价)/(最高价-最低价)>=0.1