大智慧动力线副图指标
源码
P1:=60;P2:=5;P3:=10;
量:=v;
换手:=V/CAPITAL*100;
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
买盘:=IF(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
卖盘:=IF(CLOSE>OPEN,0-VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE
DLX:(买盘-(-卖盘))/量*换手,color3d;
DLX1:sum(DLX,P1),coloryellow;
DLX2:ma(DLX1,P2);
DLX3:ma(DLX1,P3);
A1:=SUMBARS(VOL,CAPITAL);
CMA:=IF(CAPITAL>0,SUM(AMOUNT,A1)/SUM(VOL,A1)/100,EMA(CLOSE,120));
百分之百换手价:CMA,LINETHICK0,ColorFFC0FF;{100%换手平均成本价};
DRAWTEXTABS(0,0,'动力线 ☆GUOFK☆'),colorgreen;