当前位置:首页 > 通达信 > 正文

【通达信分享源码】精品指标公式-分时主图指标源码

2023-03-12未知 编 辑:掌上指标


公式源码:
 
{分时主图指标}
 
DRAWTEXT_FIX(ISLASTBAR,0,0.02,0,STRCAT('地域:     ',DYBLOCK)),COLORYELLOW;
 
DRAWTEXT_FIX(ISLASTBAR,0.3,0.02,0,STRCAT('行    业:     ',HYBLOCK)),COLORYELLOW;
 
DRAWTEXT_FIX(ISLASTBAR,0,0.12,0,STRCAT('概    念:     ',GNBLOCK)),COLORRED;
 
 
 
均价0:SUM(V*C,0)/SUM(V,0),LINETHICK2,COLORYELLOW,CIRCLEDOT;
 
地:EMA(均价0,50)/0.97,LINETHICK2,COLORGREEN;
 
如果:IF(地>REF(地,1),地,DRAWNULL),COLORRED,LINETHICK2;
 
买单次数:=COUNT(V>4000 AND C>REF(C,1),0),LINETHICK0;
 
黄次数:COUNT(V>DYNAINFO(16)*10 AND C>REF(C,1),0),COLORYELLOW,NODRAW,LINETHICK0;
 
SUM(V*C,0)/SUM(V,0),LINETHICK0;
 
C,COLORWHITE,LINETHICK2;
 
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6,LINETHICK0;
 
庄家:(20*MID+19*REF(MID,1)+18*REF(MID,2)+17*REF(MID,3)+
 
16*REF(MID,4)+15*REF(MID,5)+14*REF(MID,6)+
 
13*REF(MID,7)+12*REF(MID,8)+11*REF(MID,9)+
 
10*REF(MID,10)+9*REF(MID,11)+8*REF(MID,12)+
 
7*REF(MID,13)+6*REF(MID,14)+5*REF(MID,15)+
 
4*REF(MID,16)+3*REF(MID,17)+2*REF(MID,18)+REF(MID,20))/210,COLORRED;
 
IF(庄家>=REF(庄家,1),庄家,DRAWNULL),COLORRED,LINETHICK4;
 
IF(庄家<=REF(庄家,1),庄家,DRAWNULL),COLORGREEN,LINETHICK2;
 
流入0:DRAWICON(CROSS( C  ,如果),  C  ,13),LINETHICK2;
 
流入:DRAWICON(CROSS( C  ,庄家),  C  ,15),LINETHICK2;
 
 
 
净流入:DRAWICON(CROSS( C  ,均价0),  C  ,25),LINETHICK2;
 
DRAWTEXT(FILTER(净流入,0),均价0-0.05,'↖跟庄买进'),COLORFFDD44;
 
 
 
价:=C,COLORWHITE,LINETHICK0;
 
 
 
TT:=BARSCOUNT(C),LINETHICK0;
 
ZZ:=SUM(AMOUNT,TT)/SUM(VOL*100,TT),LINETHICK0;
 
ZZ1:=BETWEEN(C/ZZ,1.05,0.95),LINETHICK0;
 
均线:IF(ZZ1=0,MA(C,TT),ZZ),COLORYELLOW,LINETHICK0;
 
 
 
 
 
突破:=C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>13 AND TT<240,LINETHICK0;
 
 
 
 
 
DRAWTEXT( C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>=13 AND TT<240 ,C-0.10 , '突破'),COLORRED;
 
STICKLINE( C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>=13 AND TT<230 ,DYNAINFO(3) ,CLOSE+0.10 ,0.8 ,1),LINETHICK0;
 
主力扫盘:=COUNT(突破,13)>=3 AND C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0,LINETHICK0;
 
DRAWTEXT(主力扫盘 ,(DYNAINFO(3))*9.8/10 , '主力扫盘'),COLORYELLOW;
 
STICKLINE(主力扫盘 ,(DYNAINFO(3))*9/10 ,DYNAINFO(3) ,800 ,890),COLORRED,LINETHICK9;
 
已主力扫盘:=BARSLAST(主力扫盘)<13,LINETHICK0;
 
DRAWTEXT( BARSLAST(主力扫盘)<8,(DYNAINFO(3))*9.5/10 , '已扫盘'),COLORGREEN;
 
全仓买进:=C>=REF(HHV(H,TT),1) AND HHVBARS(VOL,TT)=0 AND C/均线<1.09 AND TT>13 AND TT<240 AND BARSLAST(主力扫盘)>=21,LINETHICK0;
 
DRAWTEXT(全仓买进 ,(DYNAINFO(3))*9.4/10 , '全仓买进'),COLORCYAN;
 
STICKLINE(全仓买进 ,(DYNAINFO(3))*9/10 ,DYNAINFO(3) ,100 ,-1),COLORRED,LINETHICK4;
大家都爱看
查看更多热点新闻
点击进入掌上指标资源网-下载各类指标