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);
九毛八公式解读
MA7赋值:收盘价的7日简单移动平均 TJ1赋值:1日前的收盘价>1日前的MA7 TJ2赋值:收盘价0.1 AND 最低价=收盘价 TJ4赋值:(最高价-开盘价和收盘价的较大值)/(最高价-最低价)>0.1 AND (开盘价和收盘价的较小值-最低价)/(最高价-最低价)>=0.1 TJ5赋值:1日前的最低价>最低价 AND 最高价>最低价 XG1赋值:TJ1 AND TJ2 AND (TJ3 OR TJ4) AND TJ5 输出XG:1日前的XG1