通达信【主力吸筹战舰】副图/选股指标 源码
plaintext复制{主力吸筹战舰}
主力线:EMA(CLOSE,21),COLORGREEN,LINETHICK2;
散户线:EMA(CLOSE,34),COLORYELLOW,LINETHICK1;
操作线:EMA(CLOSE,7),COLORRED,LINETHICK1;
红钻石:IF(CROSS(主力线,散户线) AND 操作线>REF(操作线,1),主力线,DRAWNULL),COLORRED,LINETHICK3;
STICKLINE(红钻石,主力线-5,主力线+5,3,0),COLORRED;
灰色吸筹柱:IF(主力线>散户线 AND 操作线>REF(操作线,1),VOL*0.5,COLORGRAY);
洋红波浪底:IF(LOW=LLV(LOW,30) AND CLOSE>REF(CLOSE,1),VOL*1.5,COLORMAGENTA);
蓝柱警示:IF(HIGH=HHV(HIGH,30) AND CLOSE<REF(CLOSE,1),VOL*1.5,COLORBLUE);
分时吸筹副图指标源码
plaintext复制{分时吸筹}
WGW1:=REF(CLOSE,1);
WGW2:=ABS(CLOSE-REF(CLOSE,1));
WGW3:=CLOSE>WGW1 * 1.099;
WGW4:=REF(LOW,1);
WGW5:=SMA(ABS(LOW-WGW4),3,1)/SMA(MAX(LOW-WGW4,0),3,1)*100;
WGW6:=EMA(IF(CLOSE*1.2,WGW5 * 10,WGW5/10),3);
WGW7:=LLV(LOW,38);
WGW8:=HHV(WGW6,38);
WGW9:=IF(LLV(LOW,90),1,0);
WGW10:=EMA(IF(LOW<=WGW7,(WGW6+WGW8 * 2)/2,0),3)/618*WGW9;
WGW11:=WGW10>5 AND WGW10<REF(WGW10,1);
STICKLINE(1,WGW10,0,4,1),COLOR00FFFF;
DRAWICON(WGW11,WGW10,1);
分时主力吸筹副图指标源码
plaintext复制{分时主力吸筹}
TOP1:=REF(LOW,1);
TOP2:=SMA(ABS(LOW-TOP1),3,1)/SMA(MAX(LOW-TOP1,0),3,1)*100;
TOP3:=EMA(IF(CLOSE*1.2,TOP2 * 10,TOP2/10),3);
TOP4:=LLV(LOW,38);
TOP5:=HHV(TOP3,38);
TOP6:=IF(LLV(LOW,90),1,0);
TOP7:=EMA(IF(LOW<=TOP4,(TOP3+TOP5 * 2)/2,0),3)/618*TOP6;
TOP8:=((C-LLV(L,21))/(HHV(H,21)-LLV(L,21)))*100;
TOP9:=SMA(TOP8,13,8);
底线:=0,COLOR00FFFF;
主力吸货:=TOP7,COLOR0000FF;
吸筹1:STICKLINE(TOP7,0,TOP7,6,0),COLOR0000FF;
吸筹2:STICKLINE(TOP7,0,TOP7,5,0),COLOR6600FF;
吸筹3:STICKLINE(TOP7,0,TOP7,4,0),COLORBB00FF;
吸筹4:STICKLINE(TOP7,0,TOP7,3,0),COLORFF00FF;
吸筹5:STICKLINE(TOP7,0,TOP7,2,0),COLORFF33FF;
吸筹6:STICKLINE(TOP7,0,TOP7,1,0),COLORFF66FF;
吸筹7:STICKLINE(TOP7,0,TOP7,0,0),COLORFF99FF;
分时资金监控指标公式,分时主力拉升擒牛(分时副图)
plaintext复制{分时资金监控}
GHCZS1:=V*C/100,NODRAW;
GHCZS2:=SUM((IF(((GHCZS1/8>20) AND (CLOSE>(REF(CLOSE,1)))),GHCZS1,0)),0);
GHCZS3:=SUM((IF(((GHCZS1/8>20) AND (CLOSE<(REF(CLOSE,1)))),GHCZS1,0)),0);
GHCZS4:=SUM((IF(((GHCZS1/8<20) AND (CLOSE>(REF(CLOSE,1)))),GHCZS1,0)),0);
GHCZS5:=SUM((IF(((GHCZS1/8<20) AND (CLOSE<(REF(CLOSE,1)))),GHCZS1,0)),0);
GHCZS6:=((GHCZS2+GHCZS3)+GHCZS4)+GHCZS5;
机构买:(GHCZS2),LINETHICK6,COLORRED;
机构卖:(GHCZS3),LINETHICK6,COLORGREEN;
机构进出:机构买-机构卖,NODRAW;
散户买:(GHCZS4),COLOR5555FF;
散户卖:(GHCZS5),COLOR55FF55;
GHCZS7:=散户买-散户卖;
强势:((100*GHCZS2)/GHCZS6>50);
STICKLINE(强势,机构买*1.02,机构买*1.1,1,0),COLORYELLOW;
DRAWTEXT_FIX(1,0.01,0.01,0,'微信公众号:股海操作手'),COLORFF00FF;
拉升:((100*GHCZS2)/GHCZS6-(100*GHCZS3)/GHCZS6)>18 AND (100*GHCZS2)/GHCZS6-(100*GHCZS5)/GHCZS6>18;
STICKLINE(拉升,机构买*1.1,机构买*1.2,1,0),COLORRED;
DRAWTEXT(ISLASTBAR=1,机构买*0.95,''),LINETHICK2,COLORRED;
DRAWTEXT(ISLASTBAR=1,机构卖*0.95,''),LINETHICK2,COLORFFFF55;
GHCZS8:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
GHCZS9:=IF(GHCZS8=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
DRAWICON(CROSS((C/GHCZS9),1.03),机构买,5);
GHCZS11:=STRCAT(STRCAT('机买',CON2STR((100*GHCZS2)/GHCZS6,0)),'%');