麻烦老师修改一下,这个指标是小时跨周期的提示,我想修改成15分钟的及时提示,谢谢。 [博易POBO]
咨询内容:
KK2:=STKCALC('',5,'BARSLAST(CROSS(BARSLAST(c>=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171 OR (C>MA(CLOSE,5) AND C>MA(CLOSE,10) AND C>MA(CLOSE,20) AND C>MA(CLOSE,60))),BARSLAST((L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171>c OR (C<MA(CLOSE,5) AND C<MA(CLOSE,10) AND C<MA(CLOSE,20) AND C<MA(CLOSE,60)))))');
A:=CROSS(DK2,KK2);
B:=CROSS(KK2,DK2);
DRAWTEXT(B,L*0.995,'买'),COLORFFFFFF;
DRAWTEXT(A,H*1.005,'卖'),COLOR00FFFF;
KK2:=STKCALC('',3,'BARSLAST(CROSS(BARSLAST(c>=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171OR(C>MA(CLOSE,5)ANDC>MA(CLOSE,10)ANDC>MA(CLOSE,20)ANDC>MA(CLOSE,60))),BARSLAST((L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171>cOR(C<MA(CLOSE,5)ANDC<MA(CLOSE,10)ANDC<MA(CLOSE,20)ANDC<MA(CLOSE,60)))))');
A:=CROSS(DK2,KK2);
B:=CROSS(KK2,DK2);
DRAWTEXT(B,L*0.995,'买'),COLORFFFFFF;
DRAWTEXT(A,H*1.005,'卖'),COLOR00FFFF; 来源 程序化久久网
麻烦老师修改一下,这个指标是小时跨周期的提示,我想修改成15分钟的及时提示,谢谢。
DK2:=STKCALC('',5,'BARSLAST(CROSS(BARSLAST((L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171>c OR (C<MA(CLOSE,5) AND C<MA(CLOSE,10) AND C<MA(CLOSE,20) AND C<MA(CLOSE,60))),BARSLAST(c>=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171 OR (C>MA(CLOSE,5) AND C>MA(CLOSE,10) AND C>MA(CLOSE,20) AND C>MA(CLOSE,60)))))');KK2:=STKCALC('',5,'BARSLAST(CROSS(BARSLAST(c>=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171 OR (C>MA(CLOSE,5) AND C>MA(CLOSE,10) AND C>MA(CLOSE,20) AND C>MA(CLOSE,60))),BARSLAST((L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171>c OR (C<MA(CLOSE,5) AND C<MA(CLOSE,10) AND C<MA(CLOSE,20) AND C<MA(CLOSE,60)))))');
A:=CROSS(DK2,KK2);
B:=CROSS(KK2,DK2);
DRAWTEXT(B,L*0.995,'买'),COLORFFFFFF;
DRAWTEXT(A,H*1.005,'卖'),COLOR00FFFF;
来源:程序化99网( WWW.CXH99.COM )
博易技术人员: 谢谢老师,回复的总是那么及时,我想问两个问题,第一,这个指标有未来函数吗?第二,这个指标的原理是什么? DK2:=STKCALC('',3,'BARSLAST(CROSS(BARSLAST((L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171>cOR(C<MA(CLOSE,5)ANDC<MA(CLOSE,10)ANDC<MA(CLOSE,20)ANDC<MA(CLOSE,60))),BARSLAST(c>=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171OR(C>MA(CLOSE,5)ANDC>MA(CLOSE,10)ANDC>MA(CLOSE,20)ANDC>MA(CLOSE,60)))))');KK2:=STKCALC('',3,'BARSLAST(CROSS(BARSLAST(c>=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171OR(C>MA(CLOSE,5)ANDC>MA(CLOSE,10)ANDC>MA(CLOSE,20)ANDC>MA(CLOSE,60))),BARSLAST((L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171>cOR(C<MA(CLOSE,5)ANDC<MA(CLOSE,10)ANDC<MA(CLOSE,20)ANDC<MA(CLOSE,60)))))');
A:=CROSS(DK2,KK2);
B:=CROSS(KK2,DK2);
DRAWTEXT(B,L*0.995,'买'),COLORFFFFFF;
DRAWTEXT(A,H*1.005,'卖'),COLOR00FFFF; 来源 程序化久久网
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信号:cxh99cxh99 进行 有偿收费 编写!
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容