VAR3:=EMA(IF(LOW<=LLV(LOW,34),FORCAST(C,5),0),5);
N:=20;JJ:=(HIGH+LOW+CLOSE)/3;QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000);
DDY:=((QJ2+QJ4)-(QJ1+QJ3))/IF(CAPITAL=0,1000000,10000);
QJ5:=QJ1+QJ2;QJ6:=QJ3+QJ4;DD:=(QJ5-QJ6)/(QJ5+QJ6)*100;
DDZ:=DD*17;
TJ1:=(SUM(DDX>0,5)>=4 AND DDZ>=300) OR (EVERY(DDY>0,3) AND DDZ>=300);
TJ2:FILTER(TJ1,5) AND VAR3>1;
九毛八公式解读
VAR3赋值:如果最低价<=34日内最低价的最低值,返回收盘价的5日线性回归预测值,否则返回0的5日指数移动平均 N赋值:20 JJ赋值:(最高价+最低价+收盘价)/3 QJ0赋值:成交量(手)/如果最高价=最低价,返回4,否则返回最高价-最低价 QJ1赋值:如果当前流通股本(手)=0,返回QJ0*(JJ-收盘价和开盘价的较小值),否则返回QJ0*如果最高价=最低价,返回1,否则返回(开盘价和收盘价的较小值-最低价) QJ2赋值:如果当前流通股本(手)=0,返回QJ0*(开盘价和收盘价的较小值-最低价),否则返回QJ0*如果最高价=最低价,返回1,否则返回(JJ-收盘价和开盘价的较小值) QJ3赋值:如果当前流通股本(手)=0,返回QJ0*(最高价-开盘价和收盘价的较大值),否则返回QJ0*如果最高价=最低价,返回1,否则返回(最高价-开盘价和收盘价的较大值) QJ4赋值:如果当前流通股本(手)=0,返回QJ0*(收盘价和开盘价的较大值-JJ),否则返回QJ0*如果最高价=最低价,返回1,否则返回(收盘价和开盘价的较大值-JJ) DDX赋值:((QJ1+QJ2)-(QJ3+QJ4))/如果当前流通股本(手)=0,返回1000000,否则返回10000 DDY赋值:((QJ2+QJ4)-(QJ1+QJ3))/如果当前流通股本(手)=0,返回1000000,否则返回10000 QJ5赋值:QJ1+QJ2 QJ6赋值:QJ3+QJ4 DD赋值:(QJ5-QJ6)/(QJ5+QJ6)*100 DDZ赋值:DD*17 TJ1赋值:(DDX>0的5日累和>=4 AND DDZ>=300) OR (最近3日一直存在DDY>0 AND DDZ>=300) 输出TJ2:TJ1的5日过滤 AND VAR3>1