VAR1:=REF(C,1);
VAR2:=IF(CODELIKE('68'),1,0);
VAR3:=IF(CODELIKE('83'),1,0)+IF(CODELIKE('87'),1,0);
VAR4:=IF(CODELIKE('30'),1,0)*IF(DATETODAY(DATE)-DATETODAY(1200824)>=0,1,0);
VAR5:=IF(BARSLAST((C=H AND C=ZTPRICE(VAR1,0.05)) OR (C=L AND C=DTPRICE(VAR1,0.05)))<BARSLAST(H>ZTPRICE(VAR1,0.05) OR L<DTPRICE(VAR1,0.05)),1,0);
VAR6:=IF(VAR3>0,ZTPRICE(VAR1,0.30),0);
VAR7:=IF(VAR2>0 OR VAR4>0,ZTPRICE(VAR1,0.20),0);
VAR8:=IF(VAR5>0 AND (VAR7=0 OR VAR7=DRAWNULL),ZTPRICE(VAR1,0.05),0);
VAR9:=IF((VAR6=0 OR VAR6=DRAWNULL) AND (VAR7=0 OR VAR7=DRAWNULL) AND (VAR8=0 OR VAR8=DRAWNULL),ZTPRICE(VAR1,0.10),0);
VAR10:=MAX(MAX(MAX(IF(VAR8=DRAWNULL,0,VAR8),IF(VAR9=DRAWNULL,0,VAR9)),IF(VAR7=DRAWNULL,0,VAR7)),IF(VAR6=DRAWNULL,0,VAR6));
VAR20:=IF(C<=H AND H=VAR10,1,0);
XG:VAR20=1 AND C>=O AND NOT(REF((VAR20=1 AND C>=O),1));
九毛八公式解读
VAR1赋值:1日前的收盘价 VAR2赋值:如果模糊匹配品种代码,返回1,否则返回0 VAR3赋值:如果模糊匹配品种代码,返回1,否则返回0+如果模糊匹配品种代码,返回1,否则返回0 VAR4赋值:如果模糊匹配品种代码,返回1,否则返回0*如果日期对应的转换天数-1200824对应的转换天数>=0,返回1,否则返回0 VAR5赋值:如果上次(收盘价=HANDC=计算涨停价)OR(收盘价=LANDC=计算跌停价)距今天数<上次最高价>计算涨停价ORL<计算跌停价距今天数,返回1,否则返回0 VAR6赋值:如果VAR3>0,返回计算涨停价,否则返回0 VAR7赋值:如果VAR2>0ORVAR4>0,返回计算涨停价,否则返回0 VAR8赋值:如果VAR5>0AND(VAR7=0ORVAR7=无效数),返回计算涨停价,否则返回0 VAR9赋值:如果(VAR6=0ORVAR6=无效数)AND(VAR7=0ORVAR7=无效数)AND(VAR8=0ORVAR8=无效数),返回计算涨停价,否则返回0 VAR10赋值:如果VAR8=无效数,返回0,否则返回VAR8和如果VAR9=无效数,返回0,否则返回VAR9的较大值和如果VAR7=无效数,返回0,否则返回VAR7的较大值和如果VAR6=无效数,返回0,否则返回VAR6的较大值 VAR20赋值:如果收盘价<=HANDH=VAR10,返回1,否则返回0 输出XG:VAR20=1 AND 收盘价>=开盘价 AND 取反