以下是同花顺四量图指标公式源码和截图
同花顺资金四量图指标公式源码:
A股:CAPITAL/1000000,LINETHICK0,COLORWHITE;
实际量:,LINETHICK0;
{VAR1:=DYNAINFO(17)*REF(ma(VOL,5),1);
VAR2:=DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT;
预测:=IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VAR1,VAR2)/10000;
预测量:stICKLINE(IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VAR1,VAR2),VAR1,0,7,1),COLORGRAY;}
AA:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主买:IF(CLOSE OPEN,AA*(HIGH-LOW),IF(CLOSE OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),POINTDOT,COLORRED;
主卖:IF(CLOSE OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0,COLORGREEN;
%:VOL/CAPITAL*100,POINTDOT,COLORWHITE;
STICKLINE(C =REF(C,1),0,VOL,2.5,1),COLORRED;
STICKLINE(C REF(C,1),0,VOL,2.5,1),COLORGREEN;
STICKLINE(主买 0,0,主买,2.5,0),COLORRED;
STICKLINE(主卖 0,0,主卖,2.5,0),COLORGREEN;
资金异动:VOL/MA(VOL,55)*100,COLORYELLOW;
STICKLINE(资金异动 100,0,VOL,0.6,0),COLORYELLOW;
MA5:MA(V,5),COLORWHITE;
MA13:MA(V,13),COLORRED;
DRAWTEXT(crOSS(MA5,MA13),(V*1.05),'★'),COLORYELLOW;
VAR2:=(CLOSE-LLV(LOW,14))/(HHV(HIGH,11)-LLV(LOW,11))*100;
做多资金:SMA(VAR2,8,1)+0.2,LINETHICK2,COLORFFFFFF;
VAR1:=(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,22)-LLV(LOW,22))*100;
个股做空资金:SMA(VAR1,5,1)+0.17,LINETHICK2,COLORFFFF00;
80,POINTDOT,COLORWHITE;
50,POINTDOT,COLORWHITE;
20,POINTDOT,COLORWHITE;
5,POINTDOT,COLORWHITE;
同花顺资金四量图指标公式截图