金城起爆(大智慧)

{金城起爆}

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}