1. 分时控盘指标源码
plaintext复制VAR1:=EMA(EMA(CLOSE,13),13); 控盘:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000; STICKLINE(控盘<0,控盘,0,1,1),COLOR00FF00; STICKLINE(控盘>REF(控盘,1) AND 控盘<0,控盘,0,1,1),COLORFF00FF; 无庄控盘:=控盘<0; STICKLINE(控盘>REF(控盘,1) AND 控盘>0,控盘,0,1,1),COLOR0000FF; 有庄控盘:=控盘>REF(控盘,1);
2. 分时主力吸筹选股公式源码
plaintext复制主力资金流入 >= X AND筹码集中度>= Y AND 分时成交金额连续M天递增
其中,X和Y为设定的阈值,可根据实际情况调整。
3. 妖股分时主图指标源码
plaintext复制均价:=SUM(C*V,240)/SUM(V,240); CTB:=BARSCOUNT(C); 前高:=REF(HHV(H,CTB),1); 突破:=CROSS(C,REF(HHV(H,CTB),1)) AND C/均价< 1.09 AND CTB>1 AND CTB< 240; 主力扫盘:=COUNT(突破,13)>=3 AND CROSS(C,REF(HHV(H,CTB),1)); 主力介入量:=BARSLAST(主力扫盘)< 13; A1:=DYNAINFO(4)>0 AND HHV(HIGH,2)/LLV(LOW,2)< 1.25 AND REF(CLOSE,1)< LLV(LOW,3)+(HHV(HIGH,3)-LLV(LOW,3))*0.85; A2:=EMA(CLOSE,2); A3:=EMA(CLOSE,3); A4:=MAX(A2,A3); A5:=CLOSE>A4 AND A1 AND (CLOSE>REF(HHV(HIGH,2),1) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>0.015) AND (V/CAPITAL<=0.2) AND C/REF(C,1)< 1.07; A6:=MA(((SLOPE(C,20)*5)+C),10); A7:=HOUR=09 AND MINUTE=45; A8:=LLV(L,15); A9:=BARSLAST(A7); A10:=REF(A8,A9); A11:=CONST(A10),COLORFF80FF,CIRCLEDOT,LINETHICK2; B1:=HOUR=09 AND MINUTE=45; B2:=HHV(H,15); B3:=BARSLAST(B1); B4:=REF(B2,B3); B5:=CONST(B4),COLORFF80FF,CIRCLEDOT,LINETHICK2; B6:=EMA(CLOSE,12)-EMA(CLOSE,26); B7:=EMA(B6,9); B8:=(B6-B7)*2; B9:=B8>00 AND B6>0 AND B7>0; B10:=HOUR=10 AND MINUTE=0; B11:=HHV(H,30); B12:=BARSLAST(B10); B13:=REF(B11,B12); B14:=CONST(B13); B15:=CLOSE>B14 AND REF(C<=B14,1) AND CLOSE>A6; B16:=FILTER(B15,100); B17:=DYNAINFO(3); CTE:=CLOSE<=B17 * 1.04 AND CLOSE>B17; CTF:=V/REF(MA(V,5),1); CTG:=B9 AND B16 AND CTE AND B13>B17 AND CTF>=1; CTT1:=MAX(DYNAINFO(3),DYNAINFO(5)); CTT2:=MIN(DYNAINFO(3),DYNAINFO(6)); CTT3:=CTT1-CTT2; 阻力:=CTT2+CTT3 * 8/9,COLORLIRED,DOTLINE; 支撑:=CTT2+CTT3 * 0.5/9,COLORGREEN,DOTLINE; DRAWTEXT(FILTER(CROSS(C,支撑),240),L-0.01,'主力吸筹'),COLOR0000FF; DRAWTEXT(FILTER(CROSS(C,阻力),240),H-0.01,''),COLOR0000FF; CTT4:=V*C/100; CTT5:=SUM((IF(((CTT4/8>20) AND (CLOSE>(REF(CLOSE,1)))),CTT4,0)),0); CTT6:=SUM((IF(((CTT4/8>20) AND (CLOSE< (REF(CLOSE,1)))),CTT4,0)),0); CTT7:=SUM((IF(((CTT4/8< 20) AND (CLOSE>(REF(CLOSE,1)))),CTT4,0)),0); CTT8:=SUM((IF(((CTT4/8< 20) AND (CLOSE< (REF(CLOSE,1)))),CTT4,0)),0); 机构买盘:=(CTT5); 机构卖盘:=(CTT6); 散户买盘:=(CTT7); 散户卖盘:=(CTT8); CTT9:=BARSLAST(CLOSE=HHV(CLOSE,60)); CTT10:=BARSLAST(CLOSE=LLV(CLOSE,60)); DRAWICON(FILTER(CROSS(CTT10,CTT9),240),OPEN*1,5); DRAWTEXT(FILTER(CROSS(CTT10,CTT9),240) ,OPEN*0.985,'抓板'),COLORYELLOW; CTT11:=BARSCOUNT(C); 均价线:=SUM(C*V,CTT11)/SUM(V,CTT11); CTT12:=MA(V,5)>REF(MA(V,5),1) AND REF(MA(V,5),1)>REF(MA(V,5),2); CTT13:= C>=REF(C,1) AND REF(C,1)>REF(C,2); 量价齐升:=C>均价线 AND V>MA(V,5); 量起爆:=V>=REF(V,1)*1; 价突破:=C>=HHV(C,0); 量突破:=V>=HHV(V,0); CTT14:=(C/DYNAINFO(3)-1)*100<=4.50; CTT15:=CTT12 AND CTT13 AND 量价齐升 AND 量起爆 AND 价突破 AND 量突破 AND CTT14; CTT16:=BARSSINCE(CTT15)+1; 首次起爆价:=REF(C,CTT16-1),NODRAW; 起爆收益:(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW; 流通盘:=CAPITAL*100/100000000,NODRAW; 起爆时间:=REF(TIME/10000,CTT16),NODRAW; 已爆分钟:=CTT16-1,NODRAW; DRAWICON(CTT15,C,25); DRAWTEXT(CTT15,L-0.01,'←分时起爆'),COLOR0000FF; DRAWNUMBER_FIX(ISLASTBAR AND C>1,0.8,0.5,0,起爆收益),COLOR00FFFF; DRAWTEXT_FIX(ISLASTBAR AND C>1,0.8,0.45,0,'起爆收益'),COLOR00FFFF; DRAWTEXT_FIX(ISLASTBAR AND C>1,0.85,0.5,0,'%'),COLOR00FFFF; ACX:=FILTER(CROSS(CTT10,CTT9),240); ACX1:=BARSSINCE(ACX)+1; 首次抓板价:=REF(C,ACX1-1),NODRAW; 抓板收益:(DYNAINFO(7)-首次抓板价)/首次抓板价*100,NODRAW; DRAWNUMBER_FIX(ISLASTBAR AND C>1,0.8,0.3
4. 分时图吸筹选股公式源码
plaintext复制VOL*CLOSE/TOTAL_VOL
其中,VOL为当日成交量,CLOSE为收盘价,TOTAL_VOL为市场总成交量。
5. 通达信“主力吸筹”指标公式源码
plaintext复制A1:=CAPITAL; A2:=(((H + L) + O) + C) / 4; A3:=(((INDEXH + INDEXL) + INDEXO) + INDEXC) / 4; A4:=(A2 - (REF(A2,