同花顺四方力道副图副图指标
源码
V1:=DMA((((HIGH + LOW) + (CLOSE * 2)) / 4),0.9);
HY1a:=REF(EMA(V1,3),1);
APP:=(VOL / (((HIGH - LOW) * 2) - ABS((CLOSE - OPEN))));
ZL:=IF((CLOSE OPEN),(APP * (HIGH - LOW)),IF((CLOSE OPEN),(APP * ((HIGH - OPEN) + (CLOSE - LOW))),(VOL / 2)));
SF:=IF((CLOSE OPEN),(0 - (APP * ((HIGH - CLOSE) + (OPEN - LOW)))),IF((CLOSE OPEN),(0 - (APP * (HIGH - LOW))),(0 - (VOL / 2))));
VAR1:=(((CLOSE - HY1a) / HY1a) * 100);
VAR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1)) * 100);
TS:=BARSLAST((BARSLAST(((VAR1 0) AND (REF(VAR1,1) 0))) 0));
利润:=SUM(IF((TS 0),VAR2,0),0);
库存能量:MA((ZL + SF),2),coloryellow;
库存平均:MA((ZL + SF),5),ColorFF00FF;
主力:MA(ZL,2),colorred;
散户:MA(SF,2),colorgreen;
获利:MA(利润,2),color4080FF;
多空线:MA((CLOSE - HY1a) * 10,2),colorwhite;