- UID
- 2
- 积分
- 2893117
- 威望
- 1396590 布
- 龙e币
- 1496527 刀
- 在线时间
- 13326 小时
- 注册时间
- 2009-12-3
- 最后登录
- 2024-12-26
|
大智慧金城起爆公式源码[大智慧公式]
其实金城起爆一是金城五能(原文金城五能:能量指标-发一个自认为是精品的指标!)的另外一个算法,起爆二是从能量饱和的概念上做的优化!特别提醒:起爆一相对较准确,但信号较少;起爆二信号较多,但要注意股价是高位还是底部,高位饱和则盛极而衰,很可能构成顶部的!另外,在金城五能贴中有朋友问,图形就一条一条的小柱子,怎么用?其实很简单,在底部和上升途中出现起爆点,是买入和持仓的信号,高位就要注意顶部的风险了!但怎么判断高低顶部就是艺术了,建议结合一些判断顶底的指标来综合分析!
- {金城起爆}
- AA2:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
- 买量2:=IF(CLOSE>OPEN,AA2*(HIGH-LOW),IF(CLOSE<OPEN,AA2*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
- 卖量2:=IF(CLOSE>OPEN,0-AA2*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-AA2*(HIGH-LOW),0-VOL/2));
- DDX2:=(买量2+卖量2)/(买量2-卖量2);
- d12:=eMA(ABS(DDX2),60);{DDX绝对值60日指数平滑移动平均}
- d22:=MAx(DDX2/d12+7.5,7.5);
- d32:=min(DDX2/d12,10); {能量级别:当日DDX与60日平均值的比值,最高10.0}
- K1:=IF(CLOSE>=ref(CLOSE,1),HIGH-OPEN+CLOSE-LOW+CLOSE-ref(CLOSE,1),HIGH-OPEN+CLOSE-LOW);
- K2:=IF(CLOSE<=ref(CLOSE,1),OPEN-LOW+HIGH-CLOSE+ref(CLOSE,1)-CLOSE,OPEN-LOW+HIGH-CLOSE);
- DT:=VOL*K1/(K1+K2);
- KT:=VOL-DT;
- 买量:=SUM(DT,1);
- 卖量:=SUM(KT,1);
- DDX3:=EMA(买量-卖量,5)*VOL/SUM(vol,60)*0.001;
- d11:=eMA(ABS(DDX3),60);{DDX绝对值60日指数平滑移动平均}
- d21:=MAx(DDX3/d11+7.5,7.5);
- d31:=min(DDX3/d11,10); {能量级别:当日DDX与60日平均值的比值,最高10.0}
- TT:=(OPEN+HIGH+LOW+CLOSE)/4;
- AA:=IF(BETWEEN(C,TT,H) OR C=O,VOL,0);
- BB:=IF(BETWEEN(C,TT,L),VOL,0);
- CC:=IF(AA AND BB,0,VOL/3);DDXJ:=10*(AA-(BB+CC))/IF(CAPITAL<1,SUM(VOL,13),CAPITAL);
- jj:=(HIGH+LOW+CLOSE)/3;qj0:=vol/IF(HIGH=LOW,4,HIGH-LOW);
- qj1:=IF(CAPITAL=0,qj0*(jj-MIN(CLOSE,OPEN)),qj0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
- qj2:=IF(CAPITAL=0,qj0*(MIN(OPEN,CLOSE)-LOW),qj0*IF(HIGH=LOW,1,(jj-MIN(CLOSE,OPEN))));
- qj3:=IF(CAPITAL=0,qj0*(HIGH-MAX(OPEN,CLOSE)),qj0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
- qj4:=IF(CAPITAL=0,qj0*(MAX(CLOSE,OPEN)-jj),qj0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-jj)));
- DDXQJ:=((qj1+qj2)-(qj3+qj4))/SUM(vol,60);
- dJ11:=eMA(ABS(DDXQJ),60);{DDX绝对值60日指数平滑移动平均}
- dJ21:=MAx(DDXQJ/dJ11+7.5,7.5);
- dJ31:=min(DDXQJ/dJ11,10); {能量级别:当日DDX与60日平均值的比值,最高10.0}
- dJ1:=eMA(ABS(DDXJ),60);{DDX绝对值60日指数平滑移动平均}
- dJ2:=MAx(DDXJ/dJ1+7.5,7.5);
- dJ3:=min(DDXJ/dJ1,10); {能量级别:当日DDX与60日平均值的比值,最高10.0}
- d1:=eMA(ABS("DDX.DDX"),60);{DDX绝对值60日指数平滑移动平均}
- d2:=MAx("DDX.DDX"/d1+7.5,7.5);
- d3:=min("DDX.DDX"/d1,10); {能量级别:当日DDX与60日平均值的比值,最高10.0}
- A1:=d3>0;
- A2:=dJ3>0;
- A3:=dJ31>0;
- A4:=d31>0;
- A5:=d32>0;
- FA:=A1+A2+A3+A4+A5>4 OR A1+A2+A3+A4+A5=4;
- 能量启爆点1:IF(COUNT(FA,5)>4,50,0),COLOR00FFFF,POINTDOT,LINETHICK0;
- STICKLINE(能量启爆点1,0,30,4,0),COLOR00FFFF;
- SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100;
- 能量启爆点2:IF(cross(SAT,90) ,50 ,0),COLORRED,POINTDOT,LINETHICK0;
- STICKLINE(能量启爆点2,0,30,4,0),COLORRED;
复制代码
|
论坛官方微信、群(期货热点、量化探讨、开户与绑定实盘)
|