通达信副图指标源码之主力建仓
本指标没有未来函数,红色柱子代表主力在建仓,红色的柱子越高,说明主力建仓的资金越多,绿色的柱子代表主力在洗盘。
当出现了很多红色柱子,后又出现绿色的柱子并且绿色的柱子一天比一天短,说明主力建仓在洗盘并且洗盘马上要结束了,当绿色的柱子快没有的时候,说明马上要拉升了,详细如下图。
源码
N1:=5;
N2:=9;
NMTM:=C-REF(C,1);
ZLGJ:100*EMA(EMA(NMTM,N1),N1)/EMA(EMA(ABS(NMTM),N1),N1),COLORRED,LINETHICK1;
MAZL:MA(ZLGJ,N2),COLORFFCAC5,LINETHICK1;
STICKLINE(REF(ZLGJ,1) =ZLGJ,ZLGJ,REF(ZLGJ,1),2.5,0),COLORFF00FF;
STICKLINE(REF(ZLGJ,1) ZLGJ,ZLGJ,REF(ZLGJ,1),2.5,0),COLORYELLOW;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW =VAR4,VAR3,0),3);
主力进场:IF(VAR5 REF(VAR5,1),VAR5,0),COLORRED,NODRAW;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0 ),COLORRED;
洗盘:IF(VAR5 REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
STICKLINE(VAR5 REF(VAR5,1),0,VAR5,3,0),COLORGREEN;