九毛八公式指标
公式模块:
我的选股公式:
x:= hhvbars(high,120); {120日内最高价的周期数}
x1:= x-10; {最高点之后10日}
x2:= x+10; {庄家应该在nday1--nday2之间吸纳大部分筹码}
a1 := x>=30;{确保高点出现的周期数大于30}
a2 := ref(sum(vol,20),x1) > finance(7) * 0.4; {吸纳40%}
VMA:=MA(VOL,40);{40日量均线}
A3:=COUNT(Vol<VMA,x1)/x1>0.9;{成交量呈现芝麻点}
A4:=Close>=hhv(high,120);{股价在冲击前高位}
A5:=COUNT(Vol<(MA(vol,10)*1.3),10)>8;{近期无明显放量}
A1 AND A2 AND A3 AND A4 AND A5;
问题:
A2一行 显示“未定义变量”无法通过,苦思无解请求大师解决,先谢谢了!
x:=hhvbars(high,120); {120日内最高价的周期数}
x1:=x-10; {最高点之后10日}
x2:=x+10; {庄家应该在nday1--nday2之间吸纳大部分筹码}
a1:=x>=30;{确保高点出现的周期数大于30}
a2:=ref(sum(vol,20),x1) > FINANCE2(37) * 0.4; {吸纳40%}
VMA:=MA(Vol,40);{40日量均线}
A3:=COUNT(Vol<VMA,x1)/nday1>0.9;{成交量呈现芝麻点}
A4:=Close>=hhv(high,120);{股价在冲击前高位}
A5:=COUNT(Vol<(MA(vol,10)*1.3),10)>8;{近期无明显放量}
A1 AND A2 AND A3 AND A4 AND A5;