求高手帮忙编写个大智慧选股公式

2024-11-02 18:31:22
推荐回答(1个)
回答(1):

N:=7;
LL:=MIN(MA(C,10),MIN(MA(C,20),MIN(MA(C,30),MA(C,60))));
HH:=MAX(MA(C,10),MAX(MA(C,20),MAX(MA(C,30),MA(C,60))));
均线接近度:=(HH-LL)/LL*100;
均线粘合:=均线接近度MID:=MA(C,20);
VART1:=POW((C-MID),2);
VART2:=MA(VART1,20);
VART3:=SQRT(VART2);
UPPER:=MID+2*VART3;
UB:=REF(UPPER,1);
XG:均线粘合 AND MA(C,60)>REF(MA(C,60),1) AND CROSS(C,UB) AND UB>REF(UB,1) AND V>REF(V,1)*1.5;

(均线粘合度设为7,可修改。BOLL采用主图指标。对照600970,2012.11.1技术图形测试)