XYZ_1:=MAX(MAX(HIGH-LOW,Abs(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
XYZ_2:=(HIGH+LOW)/2+MA(XYZ_1,2);
XYZ_3:=(HIGH+LOW)/2-MA(XYZ_1,2);
XYZ_4:=REF(XYZ_2,BArslAST(XYZ_2<=REF(XYZ_2,1)));
XYZ_5:=LLV(XYZ_2,2*1.5);
XYZ_6:=IF(XYZ_5!=REF(XYZ_5,1) AND XYZ_4<REF(XYZ_4,1),XYZ_4,IF(XYZ_4=XYZ_5,XYZ_4,XYZ_5));
XYZ_7:=BARSLAST(CROSS(0.5,XYZ_2=XYZ_6))+1;
XYZ_8:=CROSS(COUNT(CROSS(CLOSE,XYZ_6) OR CROSS(CLOSE,REF(XYZ_6,2)) AND XYZ_2>XYZ_6,XYZ_7),0.5);
XYZ_9:=BARSLAST(XYZ_8);
XYZ_10:=BARSLAST(CROSS(HHV(XYZ_3,XYZ_9+1),CLOSE));
XYZ_11:=MA(CLOSE,18);
XYZ_12:=CLOSE>=XYZ_11*1.004;
XYZ_13:=XYZ_11>=REF(XYZ_11,1);
XYZ_14:=XYZ_12 AND XYZ_13;
XYZ_15:=IF(CLOSE<OPEN,(CLOSE-LOW)/(HIGH-LOW),0);
今买明卖2023:CROSS(XYZ_9,XYZ_10) AND CLOSE/REF(LLV(LOW,3),1)<1 AND CLOSE<OPEN AND CLOSE!=LOW AND XYZ_14 AND XYZ_15>0.03 AND XYZ_15<0.3;
九毛八公式解读
XYZ_1赋值:最高价-最低价和1日前的收盘价-最高价的绝对值的较大值和1日前的收盘价-最低价的绝对值的较大值 XYZ_2赋值:(最高价+最低价)/2+XYZ_1的2日简单移动平均 XYZ_3赋值:(最高价+最低价)/2-XYZ_1的2日简单移动平均 XYZ_4赋值:上次XYZ_2<=1日前的XYZ_2距今天数日前的XYZ_2 XYZ_5赋值:2*1.5日内XYZ_2的最低值 XYZ_6赋值:如果XYZ_5不等于1日前的XYZ_5ANDXYZ_4<1日前的XYZ_4,返回XYZ_4,否则返回如果XYZ_4=XYZ_5,返回XYZ_4,否则返回XYZ_5 XYZ_7赋值:上次0.5上穿XYZ_2=XYZ_6距今天数+1 XYZ_8赋值:统计XYZ_7日中满足收盘价上穿XYZ_6ORCROSS(收盘价,2日前的XYZ_6)ANDXYZ_2>XYZ_6的天数上穿0.5 XYZ_9赋值:上次XYZ_8距今天数 XYZ_10赋值:上次XYZ_9+1日内XYZ_3的最高值上穿收盘价距今天数 XYZ_11赋值:收盘价的18日简单移动平均 XYZ_12赋值:收盘价>=XYZ_11*1.004 XYZ_13赋值:XYZ_11>=1日前的XYZ_11 XYZ_14赋值:XYZ_12 AND XYZ_13 XYZ_15赋值:如果收阴线,返回(收盘价-最低价)/(最高价-最低价),否则返回0 输出今买明卖2023:XYZ_9上穿XYZ_10 AND 收盘价/1日前的3日内最低价的最低值<1 AND 收阴线ANDSE 收盘价不等于最低价 AND XYZ_14 AND XYZ_15>0.03 AND XYZ_15<0.3