朱老师好!请给个符合凤凰线显示红柱状态的股票选股公式,非常感谢! | |||
朱晓鸣 | 答 | input:n(1); xopen:=(ref(o,N)+ref(c,N))/2; xclose:=close; xhigh:=max(high,xopen); xlow:=min(low,xopen); volality:=ma(xhigh-xlow,8); 凰线:=ma(xclose,5)+volality/2; 凤线:=ma(xclose,5)-volality/2; bu:=cross(xclose,凰线); sel:=cross(凤线,xclose); var1:=barslast(bu); var2:=barslast(sel); ref(var1,1)>var2 and var1=0; |
|