VAR5:=BARSCOUNT(C)>5;
VAR6:=REF(C,1);
VAR7:=(H-VAR6+0.01)/VAR6*100;
VAR9:=VAR7>=5 AND VAR5 AND C=H;
VAR11:=VAR7>=10 AND VAR5 AND C=H;
VAR13:=VAR7>=20 AND VAR5 AND C=H;
VAR15:=IF(INBLOCK('科创板'),VAR13,IF(INBLOCK('创业板') AND DATE>1200823,VAR13,IF(INBLOCK('ST板块'),VAR9,VAR11)));
VAR29:=(REF(CLOSE,3)-CLOSE)/REF(CLOSE,3)*100>5;
VAR30:=FILTER(VAR29,10);
VAR31:=BARSLAST(VAR30);
VAR32:=REF(HIGH,VAR31+2);
VAR33:=REF(HIGH,VAR31+1);
VAR34:=REF(HIGH,VAR31);
VAR35:=MAX(VAR32,VAR33);
VAR36:=MAX(VAR35,VAR34);
VAR37:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>5;
VAR38:=VAR31< 150;
VAR39:=(OPEN-VAR36)/VAR36*100< 30;
VAR40:=(CLOSE-LLV(LOW,VAR31))/LLV(LOW,VAR31)*100< 50;
VAR41:=(CLOSE-REF(OPEN,5))/REF(OPEN,5)*100< 30;
VAR42:=VOL/MA(VOL,5)< 3.5;
VAR43:=(CLOSE-REF(CLOSE,89))/REF(CLOSE,89)*100< 80;
VAR44:=VAR37 AND VAR38 AND VAR39 AND VAR40 AND VAR41 AND VAR42 AND VAR43;
VAR45:=FILTER(VAR44,15);
VAR46:=MA(CLOSE,10);
VAR47:=MA(CLOSE,54);
VAR48:=(((CLOSE-VAR47)/VAR47)< 0.1);
VAR49:=(((CLOSE-VAR46)/VAR46)< 0.3);
VAR50:=(((VAR48=1) AND (VAR49=1))*0.2);
VAR51:=((((VAR50=0) AND (REF(VAR50,1)=0.2)) AND (REF((COUNT((VAR50=0.2),10)=10),1)=1))*-0.1);
VAR52:=VAR51=-0.1;
VAR53:=VAR45 OR VAR52;
VAR54:=DYNAINFO(7)/(REF(CLOSE,1))>1.05 AND (DYNAINFO(7)/O>1.05);
VAR55:=(VOL/REF(VOL,1)>1.2 AND COUNT(CLOSE>OPEN,1)) OR (LOW>REF(HIGH,1) AND COUNT(OPEN>CLOSE,1) AND VOL/REF(VOL,1)>1.2);
VAR56:=VAR53 AND VAR15 AND VAR55 AND VAR54;
XG:VAR56;
九毛八公式解读
VAR5赋值:收盘价的有效数据周期数>5 VAR6赋值:1日前的收盘价 VAR7赋值:(最高价-VAR6+0.01)/VAR6*100 VAR9赋值:VAR7>=5 AND VAR5 AND 收盘价=最高价 VAR11赋值:VAR7>=10 AND VAR5 AND 收盘价=最高价 VAR13赋值:VAR7>=20 AND VAR5 AND 收盘价=最高价 VAR15赋值:如果属于某板块,返回VAR13,否则返回如果属于某板块ANDDATE>1200823,返回VAR13,否则返回如果属于某板块,返回VAR9,否则返回VAR11 VAR29赋值:(3日前的收盘价-收盘价)/3日前的收盘价*100>5 VAR30赋值:VAR29的10日过滤 VAR31赋值:上次VAR30距今天数 VAR32赋值:VAR31+2日前的最高价 VAR33赋值:VAR31+1日前的最高价 VAR34赋值:VAR31日前的最高价 VAR35赋值:VAR32和VAR33的较大值 VAR36赋值:VAR35和VAR34的较大值 VAR37赋值:(收盘价-1日前的收盘价)/1日前的收盘价*100>5 VAR38赋值:VAR31< 150 VAR39赋值:(开盘价-VAR36)/VAR36*100< 30 VAR40赋值:(收盘价-VAR31日内最低价的最低值)/VAR31日内最低价的最低值*100< 50 VAR41赋值:(收盘价-5日前的开盘价)/5日前的开盘价*100< 30 VAR42赋值:成交量(手)/成交量(手)的5日简单移动平均< 3.5 VAR43赋值:(收盘价-89日前的收盘价)/89日前的收盘价*100< 80 VAR44赋值:VAR37 AND VAR38 AND VAR39 AND VAR40 AND VAR41 AND VAR42 AND VAR43 VAR45赋值:VAR44的15日过滤 VAR46赋值:收盘价的10日简单移动平均 VAR47赋值:收盘价的54日简单移动平均 VAR48赋值:(((收盘价-VAR47)/VAR47)< 0.1) VAR49赋值:(((收盘价-VAR46)/VAR46)< 0.3) VAR50赋值:(((VAR48=1) AND (VAR49=1))*0.2) VAR51赋值:((((VAR50=0) AND (1日前的VAR50=0.2)) AND (1日前的(统计10日中满足(VAR50=0.2)的天数=10)=1))*-0.1) VAR52赋值:VAR51=-0.1 VAR53赋值:VAR45 OR VAR52 VAR54赋值:现价/(1日前的收盘价)>1.05 AND (现价/开盘价>1.05) VAR55赋值:(成交量(手)/1日前的成交量(手)>1.2 AND 统计1日中满足收阳线的天数) OR (最低价>1日前的最高价 AND 统计1日中满足收阴线的天数 AND 成交量(手)/1日前的成交量(手)>1.2) VAR56赋值:VAR53 AND VAR15 AND VAR55 AND VAR54 输出XG:VAR56