通达信成本线指标公式源码副图
X_1:=FINANCE(42);
X_2:=SUM(CLOSE*vol,X_1)/SUM(VOL,X_1);
X_3:=SUM(HIGH*VOL,X_1)/SUM(VOL,X_1);
X_4:=SUM(LOW*VOL,X_1)/SUM(VOL,X_1);
X_5:=SUM(AMOUNT/100,X_1)/SUM(VOL,X_1);
X_6:=(X_2+X_3+X_4)/3;
现价:CLOSE;
成本:(X_5+X_6)/2;
明涨停:CLOSE*1.1,NODRAW,COLORRED;