通达信主力持仓线公式、无未来,一目了然
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; STICKLINE(DT>0,主力持仓线,主力持仓线+DT,0.5,0),COLOR0000FF; STICKLINE(DT<0,主力持仓线+DT,主力持仓线,0.5,0),COLOR00FF00; DRAWTEXT(ISLASTBAR,主力持仓线,'主力线 '); 版权股龙工作室:INDEXADV,COLOR0000EE,NODRAW;
移动端首页 | PC端
© by Gszb.com Mobile Web
通达信主力持仓线公式、无未来,一目了然
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;
STICKLINE(DT>0,主力持仓线,主力持仓线+DT,0.5,0),COLOR0000FF;
STICKLINE(DT<0,主力持仓线+DT,主力持仓线,0.5,0),COLOR00FF00;
DRAWTEXT(ISLASTBAR,主力持仓线,'主力线 ');
版权股龙工作室:INDEXADV,COLOR0000EE,NODRAW;