在线检测未来函数

通达信私募分时主图指标公式

来源:Internet,编辑:股旁网,2024-10-31

现价:=C;
均价:=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;
CTA1:=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;
CTA2:=EMA(CLOSE,2);
CTA3:=EMA(CLOSE,3);
CTA4:=MAX(CTA2,CTA3);
CTA5:=CLOSE>CTA4 AND CTA1 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;
CTA6:=MA(((SLOPE(C,20)*5)+C),10);
CTA7:=HOUR=09 AND MINUTE=45;
CTA8:=LLV(L,15);
CTA9:=BARSLAST(CTA7);
CTA10:=REF(CTA8,CTA9);
CTA11:=CONST(CTA10),COLORFF80FF,CIRCLEDOT,LINETHICK2;
CTD1:=HOUR=09 AND MINUTE=45;
CTD2:=HHV(H,15);
CTD3:=BARSLAST(CTD1);
CTD4:=REF(CTD2,CTD3);
CTD5:=CONST(CTD4),COLORFF80FF,CIRCLEDOT,LINETHICK2;
CTD6:=EMA(CLOSE,12)-EMA(CLOSE,26);
CTD7:=EMA(CTD6,9);
CTD8:=(CTD6-CTD7)*2;
CTD9:=CTD8>00 AND CTD6>0 AND CTD7>0;
CTD10:=HOUR=10 AND MINUTE=0;
CTD11:=HHV(H,30);
CTD12:=BARSLAST(CTD10);
CTD13:=REF(CTD11,CTD12);
CTD14:=CONST(CTD13);
CTD15:=CLOSE>CTD14 AND REF(C<=CTD14,1) AND CLOSE>CTA6;
CTD16:=FILTER(CTD15,100);
CTD17:=DYNAINFO(3);
CTE:=CLOSE<=CTD17*1.04 AND CLOSE>CTD17;
CTF:=V/REF(MA(V,5),1);
CTG:=CTD9 AND CTD16 AND CTE AND CTD13>CTD17 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,'抓板'),COLORFFFF00;
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.35,0,抓板收益),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.8,0.3,0,'抓板收益'),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR AND C>1,0.85,0.35,0,'%'),COLORFFFF00;
全仓买进:=CROSS(C,REF(HHV(H,CTB),1)) AND HHVBARS(vol,CTB)=0 AND C/均价< 1.09 AND CTB>1 AND CTB< 240 AND BARSLAST(主力扫盘)>=20 AND CTT14;
DRAWTEXT(全仓买进 ,前高, '←全仓'),COLORCYAN;
DRAWICON(全仓买进,C,23);
价突:=C/REF(C,3)>1.04 ;
DRAWTEXT(价突,C*0.995,'←突'),COLORYELLOW;

通达信私募分时主图指标公式

相关文章