- UID
- 2
- 积分
- 2869185
- 威望
- 1384620 布
- 龙e币
- 1484565 刀
- 在线时间
- 13082 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-11-14
|
源码如下:- A:=17;B:=5;S:=13;
- p1= 100*(SUM(CLOSE,2)/2-SUM(CLOSE,a)/a)/SUM(CLOSE,a);
- p2= 100*(SUM(CLOSE,2)/2-SUM(CLOSE,b)/b)/SUM(CLOSE,b);
- H1= a*100*(SUM(ABS(CLOSE-LOW),3)/3-SUM(ABS(CLOSE-HIGH),3)/3)/SUM(CLOSE,a);
- H2= b*100*(SUM(ABS(CLOSE-LOW),3)/3-SUM(ABS(CLOSE-HIGH),3)/3)/SUM(CLOSE,b);
- VVOL2= SQRT(ABS(SUM(VOL,2)-SUM(VOL,b)/b)/SUM(VOL,b));
- VVOL1= SQRT(ABS(SUM(VOL,2)-SUM(VOL,a)/a)/SUM(VOL,a));
- pvshort=10*p2*Vvol2+0.382*H2;
- pvlong=10*p1*Vvol1+0.382*H1;
- 短期pv:MA(pvshort,4);
- 中期pv:MA(pvlong,4);
- SIGN= 2*MA(pvshort-pvlong+(H2-H1)*1.618,s);
- 中期多空:SUM(SIGN,21)/7;
- 短期多空:4*EMA(pvshort+(H2-H1)*1.618-pvlong,13);
- zero:0;
复制代码
|
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|