DY:=CURRBARSCOUNT=1 AND C<REF(C,1);
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,10000,10000);
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
DY2:=REF(V2,1)-DY;
XG:=C>O AND DY2<0.02 AND MA(C,5)>MA(C,60) AND C/REF(C,1)>=1.02;
抓牛:XG;
九毛八公式解读
DY赋值:到最后交易的周期=1 AND 收盘价<1日前的收盘价 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,返回10000,否则返回10000 V2赋值:如果收盘价>=1日前的收盘价,返回DDX,否则返回-DDX/100的2日[1日权重]移动平均 DY2赋值:1日前的V2-DY XG赋值:收阳线AND DY2<0.02 AND 收盘价的5日简单移动平均>收盘价的60日简单移动平均 AND 收盘价/1日前的收盘价>=1.02 输出抓牛:XG