以下是通达信多空量柱源码副图(无源码的请下载附件导入)
HJ_1:=IF(OPEN=ADVANCE AND (ADVANCE-REF(ADVANCE,1))/REF(ADVANCE,1)*100>9.8,DECLINE,DECLINE/((VOLINSTK-QHJSJ)*2-ABS(OPEN-ADVANCE))*(ADVANCE-QHJSJ));
主力买入力度:HJ_1/DECLINE*100,NODRAW;
三日买入力度:MA(主力买入力度,3),NODRAW;
STICKLINE(1,HJ_1,DECLINE,0,0),COLORGREEN;
STICKLINE(1,HJ_1,DECLINE,2.5,0),COLOR009900;
STICKLINE(1,HJ_1,DECLINE,2,0),COLOR00BB00;
STICKLINE(1,HJ_1,DECLINE,1,0),COLOR00DD00;
STICKLINE(1,HJ_1,DECLINE,0.3,0),COLORGREEN;
STICKLINE(HJ_1,0,HJ_1,0,0),COLORRED;
STICKLINE(HJ_1,0,HJ_1,2.5,0),COLOR000099;
STICKLINE(HJ_1,0,HJ_1,2,0),COLOR0000BB;
STICKLINE(HJ_1,0,HJ_1,1,0),COLOR0000DD;
STICKLINE(HJ_1,0,HJ_1,0.3,0),COLORRED;
若上述公式在汇盈系列行情数据分析软件中有异常,请尝试如下公式:
HJ_1:=IF(OPEN=CLOSE AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100>9.8,VOL,VOL/((HIGH-LOW)*2-ABS(OPEN-CLOSE))*(CLOSE-LOW));
主力买入力度:HJ_1/VOL*100,NODRAW;
三日买入力度:MA(主力买入力度,3),NODRAW;
STICKLINE(1,HJ_1,VOL,0,0),COLORGREEN;
STICKLINE(1,HJ_1,VOL,2.5,0),COLOR009900;
STICKLINE(1,HJ_1,VOL,2,0),COLOR00BB00;
STICKLINE(1,HJ_1,VOL,1,0),COLOR00DD00;
STICKLINE(1,HJ_1,VOL,0.3,0),COLORGREEN;
STICKLINE(HJ_1,0,HJ_1,0,0),COLORRED;
STICKLINE(HJ_1,0,HJ_1,2.5,0),COLOR000099;
STICKLINE(HJ_1,0,HJ_1,2,0),COLOR0000BB;
STICKLINE(HJ_1,0,HJ_1,1,0),COLOR0000DD;
STICKLINE(HJ_1,0,HJ_1,0.3,0),COLORRED;
{-----------------------------------}
|