以下是K密码观察主力资金动向主图指标公式

{缺口}
STICKLINE(L>REF(H,1) ,REF(H,1),L,9,-1),COLORFD00DF;
 STICKLINE(H<REF(L,1) ,REF(L,1),H,9,-1),COLORFDFD00;
 DRAWKLINE(H,O,L,C);

 BOLL:MA(C,24),COLORGREEN,LINETHICK1;
 UPPER:BOLL+2*STD(C,24),COLORMAGENTA,DOTLINE;
 LOWER:BOLL-2*STD(C,24),COLORYELLOW,DOTLINE;
 IF(BOLL<REF(BOLL,1),BOLL,DRAWNULL),COLORGREEN,LINETHICK1;
 IF(BOLL>REF(BOLL,1),BOLL,DRAWNULL),COLORRED,LINETHICK1;
半分位:=(O+C)/2;
昨半分位:=REF(半分位,1);
 STICKLINE(ISLASTBAR,昨半分位,昨半分位,10,0),COLORLIGRAY;
 DRAWNUMBER(ISLASTBAR,昨半分位,昨半分位),COLORBROWN;
 DRAWTEXT(ISLASTBAR,昨半分位,’ 昨半分位’),COLORBROWN;

 {超级资金}
 {机构买入:L2_AMO(0,2)/10000.0,NODRAW;}
 {机构卖出:-L2_AMO(0,3)/10000.0,NODRAW;
机构净买:机构买入+机构卖出,NODRAW;}

 {K线画半截颜色资金动向标示}
 {逐笔大单DDE}
大单动向:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),NODRAW;{逐笔买入大单成交-逐笔卖出大单成交)*10000/流通股本(股}
A01:=MIN(O,C);
 B01:=ABS(O-C);
 STICKLINE(大单动向>0,A01,A01+B01/3.5,2.2,0),COLOR0000AA;
 STICKLINE(大单动向<0,A01+B01,A01+B01/1.8,2.2,0),COLOR00AA00;
平头底部:=REF(C,1)<MA(C,10) AND ABS(REF(C,1)-REF(O,1))>MA(ABS(C-O),10)*1.1 AND ABS(C-O)<MA(ABS(C-O),10)/1.1 AND L=REF(L,1);{K线组合又叫蹑底,未破之前底部有支撑,一般不会收盘跌破,若收盘跌破,则形态成压,,若未破低而高过母线,则大概是低位震荡吸货!}
DRAWTEXT(平头底部,L*1.02,’蹑底看涨’),COLORYELLOW;

 {黑棒佳丽战法-牛股洗盘}
假阴线:DRAWTEXT(O>MA(C,20) AND (O-C)/O*100>0.01 AND VOL/CAPITAL*100 >=3 AND C>REF(C,1),L-0.08,’←洗’),COLORWHITE;

 {妖股龙头}
妖股线:=EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3);
妖股龙头:DRAWTEXT(CROSS(妖股线,15),L-0.12,’←锁’),COLORMAGENTA;
 

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。