九毛八公式指标
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),COLORWHITE,LINETHICK1; STICKLINE(DT>0,主力持仓,主力持仓+DT,1,0),COLOR0000FF; STICKLINE(DT<0,主力持仓+DT,主力持仓,1,0),COLOR00FF00; 这是通达信用的 航海家主力统计公式源码,思路:找出30日内主力持仓创新高 ,但当日股价未创新高的股票。新手,不会发图,谢谢
公式模块:
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); XG:HHV(主力持仓,20) AND C<HHV(C,20);