大智慧主力持仓指标公式股票软件源码如下: jj:=(HIGH+LOW+CLOSE)/3;qj0:=AMOUNT/IF(HIGH=LOW,4,HIGH-LOW); 买1:=qj0*(MIN(OPEN,CLOSE)-LOW); 买2:=qj0*(jj-MIN(CLOSE,OPEN)); 卖1:=qj0*(MAX(CLOSE,OPEN)-jj); 卖2:=qj0*(HIGH-MAX(OPEN,CLOSE)); DT:=((买1+买2)-(卖1+卖2))/10000; 主力持仓线:sum(DT,66),COLOR888888,linethick2; DRAWTEXTABS(10,10,'股票软件下载网 www.gpxiazai.com'),linethick1,COLOR00EEff; STICKLINE(DT>0,主力持仓线,主力持仓线+DT,2,0),COLOR0000FF; STICKLine(DT<0,主力持仓线+DT,主力持仓线,2,0),COLOR00FF00; DRAWTEXT(DISPSTATUS=2,主力持仓线,'主力线 '); |