以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 交易策略发布专区 (http://weistock.com/bbs/list.asp?boardid=10) ---- [股票策略]大数差量坑 (http://weistock.com/bbs/dispbbs.asp?boardid=10&id=6428) |
-- 作者:王锋 -- 发布时间:2011/5/5 19:00:17 -- [股票策略]大数差量坑 V1:=IF(C>REF(C,1),V,-V); Y0:=MA(V1,20); Y1:=MA(V1,63); YY1:=Y0*2-Y1; T19:=REF(V1,19)-YY1; T18:=REF(V1,18)-YY1; T17:=REF(V1,17)-YY1; T16:=REF(V1,16)-YY1; T15:=REF(V1,15)-YY1; T14:=REF(V1,14)-YY1; T13:=REF(V1,13)-YY1; T12:=REF(V1,12)-YY1; T11:=REF(V1,11)-YY1; T10:=REF(V1,10)-YY1; T9:=REF(V1,9)-YY1; T8:=REF(V1,8)-YY1; T7:=REF(V1,7)-YY1; T6:=REF(V1,6)-YY1; T5:=REF(V1,5)-YY1; T4:=REF(V1,4)-YY1; T3:=REF(V1,3)-YY1; T2:=REF(V1,2)-YY1; T1:=REF(V1,1)-YY1; T0:=V1-YY1; TT:=T19*T19+T18*T18+T17*T17+T16*T16+T15*T15+T14*T14+T13*T13+T12*T12+T11*T11+T10*T10+T9*T9+T8*T8+T7*T7+T6*T6+T5*T5+T4*T4+T3*T3+T2*T2+T1*T1+T0*T0; TT1:=TT/20; 空:=SQRT(TT1),VOLSTICK; ZY0:=MA(V,20); ZY1:=MA(V,63); ZYY1:=ZY0*2-ZY1; ZT19:=REF(V,19)-ZYY1; ZT18:=REF(V,18)-ZYY1; ZT17:=REF(V,17)-ZYY1; ZT16:=REF(V,16)-ZYY1; ZT15:=REF(V,15)-ZYY1; ZT14:=REF(V,14)-ZYY1; ZT13:=REF(V,13)-ZYY1; ZT12:=REF(V,12)-ZYY1; ZT11:=REF(V,11)-ZYY1; ZT10:=REF(V,10)-ZYY1; ZT9:=REF(V,9)-ZYY1; ZT8:=REF(V,8)-ZYY1; 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