大智慧多空能量指标公式

input:N(30,1,100);

DRAWTEXTAbs(10,10,'板块名称:'+BKNAME),COLORFFEEBB;

DRAWTEXTABS(10,50,'每股收益:'+FINANCE2(3)),COLORFFEEBB;

DRAWTEXTABS(180,50,'目前流通盘:'+CAPITAL/100),COLORFFEEBB;

DRAWTEXTABS(10,70,'每股净资产:'+FINANCE2(4)),COLORFFEEBB;

DRAWTEXTABS(180,70,'总股本:'+FINANCE2(35)),COLORFFEEBB;

DRAWTEXTABS(10,90,'每股公积金:'+FINANCE2(7)),COLORFFEEBB;

DRAWTEXTABS(180,90,'主营收入同比增长:'+FINANCE2(11)),COLORFFEEBB;

{指标网-股票公式网站 www.gupanG.com}

aa:=SUM(IF( CLOSE>REF(CLOSE,1),CLOSE-MIN(REF(CLOSE,1),LOW),IF(CLOSE<REF(CLOSE,1),

CLOSE-MAX(REF(CLOSE,1),HIGH),0)),0);

bb:=MA(aa,N);

gg:aa-bb,color3d;

DRAWGBKLAst(C>0,STRIP(RGB(90,90,90),RGB(0,0,0),0));

量:=V;

换手:V/CAPITAL*100,LINETHICK0;

VAR1:=vol/((H-L)*2-ABS(C-O));

买盘:=IF(C>O,VAR1*(H-L),IF(C<O,VAR1*((H-O)+(C-L)),VOL/2));

卖盘:=IF(C>O,0-VAR1*((H-C)+(O-L)),IF(C<O,0-VAR1*(H-L),0-VOL/2));

动能:=(买盘-(-卖盘))/量*换手;

DNX1:SUM(动能,6);

DNX2:MA(动能,3),color00ff0f;