N:=5;
涨幅:=(C/REF(C,1)-1)*100;
AFF:=MA(涨幅,15)<10&&EVERY(C>MA(C,120),15)&&涨幅>N;
ZK:=KDJ.K#WEEK;
ZD:=KDJ.D#WEEK;
ZJ:=KDJ.J#WEEK;
XG1:=ZK>50 AND ZD>50 AND ZJ>50
AND KDJ.K>60 AND KDJ.D>60 AND KDJ.J>60
AND KDJ.K<90 AND KDJ.D<90 AND KDJ.J<90;
XG:AFF AND XG1;
九毛八公式解读
N赋值:5 涨幅赋值:(收盘价/1日前的收盘价-1)*100 AFF赋值:涨幅的15日简单移动平均<10并且最近15日一直存在收盘价>收盘价的120日简单移动平均并且涨幅>N ZK赋值:KDJ的K[取周线数据] ZD赋值:KDJ的D[取周线数据] ZJ赋值:KDJ的J[取周线数据] XG1赋值:ZK>50 AND ZD>50 AND ZJ>50AND KDJ的K>60 AND KDJ的D>60 AND KDJ的J>60AND KDJ的K<90 AND KDJ的D<90 AND KDJ的J<90 输出XG:AFF AND XG1