通达信指标公式源码概况:
指标类别: 通达信指标公式
授权方式: 免费版
指标评级: ★★★★★
指标分类: 策略
画线方法: 副图
一、通达信龙头启动主图指标公式
EE:=MACD-REF(MACD,1)>0.05ANDCOUNT(C/REF(C,1)>1.09,16)<2ANDC=HHV(H,60)AND
C/REF(C,1)>1.07ANDNOT(H=L)ANDCOUNT(C>O,6)<=4ANDC/REF(C,9)<1.2;
STICKLINE(EEANDC/REF(C,1)>1.05,1,50,5,0),COLORDB7093;
DRAWTEXT(EEANDC/REF(C,1)>1.05,50,'打板启动'),COLORRED;
DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'019',0);
资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),STICK,COLORRED;
资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),STICK,COLOR00FF00;
资金出入:=资金流入+资金流出,COLORSTICK;
资金流量:=资金出入,COLORFFFFFF,LINETHICK1;
资金比:=资金出入/SUM(V,FROMOPEN)*100,COLOR00FFFF,LINETHICK1;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2));
增强流量比:=IF(资金流量比>50,资金流量比,50);
攻击量:=((HSL*0.50+(REF(HSL,1)*0.33))+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN;
攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),COLOR0000FF,LINETHICK0;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),COLOR00FF00,LINETHICK0;
攻击流量:=攻击量A+攻击量B,COLORSTICK;
NOTEXT攻击线:=攻击流量,COLORYELLOW,LINETHICK1;
攻击比:=攻击流量/SUM(V,FROMOPEN)*100,COLORRED,LINETHICK1;
资金攻击度:=IF(攻击比>0,(攻击比+50),100-ABS((攻击比-50)));
攻击度限制:=IF(资金攻击度>100,100,IF(资金攻击度<0,0,资金攻击度));
增强攻击度:=IF(资金攻击度>50,资金攻击度,50);
开始攻击:=CROSS(攻击流量,0)AND(C>REF(C,2)OR(资金流量>0AND资金流量>攻击流量));
开始攻击量:=CROSS(攻击流量,0)ANDC>REF(C,2)ANDV>LLV(V,3)*3;
Q:=250;
高点:=HHV(C,Q);
低点:=LLV(C,Q);
最高:=CONST(高点),NODRAW;
最低:=CONST(低点),NODRAW;
轴差:=最高-最低;
中价轴:=(最高+最低)/2;
HL3:=(100-0)/2*1.3;
HL4:=(100-0)/1*1.3;
中间价轴:=(50-HL3)*轴差/HL4+中价轴;
平安轴:=(中价轴+中间价轴)/2;
BGTYU:=IF(DATE<=1150530,1,0);
GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))));
起动线:=EXPMA((CLOSE/VBNH),20)*1,COLORYELLOW,POINTDOT;
主力线:=EXPMA((CLOSE/VBNH),60)*1,COLORMAGENTA,LINETHICK2;
散户线:=EXPMA((CLOSE/VBNH),120)*1,COLORGREEN,LINETHICK2;
限制起动线:=起动线*中间价轴;
限制主力线:=主力线*中间价轴;
限制散户线:=散户线*中间价轴;
主散MIN:=MIN(限制主力线,限制散户线);
{分时转强:=主散MIN>金龙线AND((LONGCROSS(限制主力线,金龙线,2)ORCROSS(限制主力线,限制散户线))OR(限制主力线>限制散户线ANDLONGCROSS(牵引线,金龙线,2)));}
DRAWBAND(限制主力线,RGB(250,125,0),限制散户线,RGB(0,100,250));
STICKLINE(起动线<主力线,限制起动线,限制主力线,1.0,0),COLOR00FF00;
STICKLINE(起动线>主力线,限制起动线,限制主力线,1.0,0),COLORFFFFFF;
STICKLINE(VOL>EMA(VOL,60)AND起动线>主力线,限制起动线,限制主力线,1,0),COLORFF00FF;
STICKLINE(VOL>EMA(VOL,30)AND起动线>主力线AND起动线>1.01AND起动线>REF(起动线,1),限制起动线,限制主力线,1,0),COLOR00FFFF;
主力:限制主力线,COLORFFFFFF,LINETHICK1;
分时均价线:SUM(C*V,240)/SUM(V,240),COLORYELLOW,LINETHICK2;
追击涨停:=限制散户线>分时均价线ANDCROSS(C,限制散户线);
拉升量:=IF(C>REF(C,1),VOL,0);
昨拉升最高值:=CONST(FINDHIGH(拉升量,FROMOPEN,240,1)),LINETHICK1,COLORMAGENTA;
今拉升最高值:=CONST(REF(HHV(拉升量,FROMOPEN),0)),COLORYELLOW,NODRAW;
攻击力度:=今拉升最高值/昨拉升最高值,NODRAW;
TT:=BARSCOUNT(C);{取得有效收盘价}
均价黄:=SUM(C*V,TT)/SUM(V,TT);{分时均线的取值}
量两步:=MA(V,5)>REF(MA(V,5),1)ANDREF(MA(V,5),1)>REF(MA(V,5),2);
价两步:=C>=REF(C,1)ANDREF(C,1)>REF(C,2);
价上岗量破5:=C>均价黄ANDV>MA(V,5);
量起爆:=V>=REF(V,1)*1;
价创新高:=C>=HHV(C,0);
量创新高:=V>=HHV(V,0);
对昨日涨幅:=(C/DYNAINFO(3)-1)*100<=2.50;{涨幅控制2个点以内}
每日一点:=量两步AND价两步AND价上岗量破5AND量起爆AND价创新高AND量创新高AND对昨日涨幅;
{计算收益、已爆分钟}
VV:=BARSSINCE(每日一点)+1;
首次起爆价:=REF(C,VV-1),NODRAW;
今天收益:=(DYNAINFO(7)-首次起爆价)/首次起爆价*100,NODRAW;
流通盘:=CAPITAL*100/100000000,NODRAW;
起爆时间:=REF(TIME/10000,VV),NODRAW;
已爆分钟:=VV-1,NODRAW;
{画出底线和红球}
首次起爆量:=REF(VOL,VV-1);
STICKLINE(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.83,最低,1,0),COLORCYAN;
DRAWICON(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.83,27);
DRAWTEXT(FILTER(CROSS(拉升量,昨拉升最高值),30),最低+轴差*0.83,'∠量突破'),COLORCYAN;
STICKLINE(FILTER(每日一点,30),最低+轴差*0.75,最低,1,0),COLORGREEN;
DRAWICON(FILTER(每日一点,30),最低+轴差*0.75,13);
DRAWTEXT(FILTER(每日一点,30),最低+轴差*0.75,'∠起爆'),COLORGREEN;
DRAWNUMBER(FILTER(每日一点,30),最低+(C-最低)/2,首次起爆价),COLORWHITE;
{DRAWTEXT_FIX(每日一点=1,0.00,0.10,0,'当起爆突破时:20线上行+日价K线突破+日K线量起爆更好+估换手小于10%更有效'),COLORMAGENTA;}
TA:=BARSLAST(TIME=100000);
TC:=REF(HHV(C,0),TA+1);
TV:=REF(HHV(V,0),TA+1);
ZF:=C/DYNAINFO(3)<1.05;
XG1:=CROSS(C,TC)ANDV>TVANDZF,COLORWHITE;
TA1:=BARSLAST(TIME=110000);
CC1:=REF(HHV(C,0),TA1+1);
VV1:=REF(HHV(V,0),TA1+1);
ZF1:=CC1/DYNAINFO(3)<1.05;
XG2:=CROSS(C,CC1)ANDV>VV1ANDZF1,COLORYELLOW;
突破:=XG1ORXG2,COLORRED;
STICKLINE(FILTER(突破=1,15),最低+轴差*0.60,最低,1,0),COLORWHITE;
DRAWICON(FILTER(突破=1,15),最低+轴差*0.60,17);
DRAWTEXT(FILTER(突破=1,15),最低+轴差*0.60,'∠分时突破'),COLORWHITE;
STICKLINE(FILTER(开始攻击量=1,15),最低+轴差*0.45,最低,1,0),COLORMAGENTA;
STICKLINE(FILTER(开始攻击=1,30),最低+轴差*0.30,最低,1,0),COLORYELLOW;
STICKLINE(CROSS(EXPMA((CLOSE/VBNH),60),EXPMA((CLOSE/VBNH),120)),最低+轴差*0.15,最低,1,0),COLORCYAN;
DRAWICON(FILTER(开始攻击量=1,15),最低+轴差*0.45,24);
DRAWICON(FILTER(开始攻击,30),最低+轴差*0.30,23);
DRAWTEXT(FILTER(开始攻击量=1,15),最低+轴差*0.45,'∠攻击量'),COLORMAGENTA;
DRAWTEXT(FILTER(开始攻击,30),最低+轴差*0.30,'开始攻'),COLORYELLOW;
DRAWTEXT(FILTER(CROSS(EXPMA((CLOSE/VBNH),60),EXPMA((CLOSE/VBNH),120)),30),最低+轴差*0.15,'★迹'),COLORCYAN;
DRAWICON(FILTER(CROSS(起动线,1.01),30),限制散户线,17);
DRAWTEXT(FILTER(CROSS(起动线,1.01),30),最低,'可能涨停'),COLORMAGENTA;
DRAWTEXT(FILTER(追击涨停,30),分时均价线+(限制散户线-分时均价线)/2,'追击'),COLORRED;
时间:=TIME=100000;
N:=BARSLAST(时间),COLOR808080;
常数:CONST(IF(N=0,C,REF(C,N))),COLOR004848,DOTLINE;
CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N))),COLOR808080;
CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLOR808080;
STICKLINE(时间=1,CS1,CS2,-1,0),COLOR808080;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00FFFF,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,阻力,'阻力'),COLOR00FFFF;
支撑:L1+P1*0.5/8,COLORRED,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=1,支撑,'支撑'),COLORA2A2FF;
中:(支撑+阻力)/2,COLORC0C0C0,DOTLINE;
现价:CLOSE,COLORWHITE,LINETHICK1;
QZS:=(EMA(CLOSE,10)+EMA(CLOSE,32))/2;
VAR1:=(EMA(CLOSE,30)+EMA(CLOSE,72))/2;
VAR2:=(EMA(VOL,10)+EMA(VOL,32))/2;
VAR3:=(VAR1+VAR2)/2;
VAR4:=EMA(VAR3,30);
VAR5:=EMA(VAR3,60);
VAR6:=EVERY(VAR1>REF(VAR1,1),5)ANDEVERY(VAR4>REF(VAR4,1),5);
DRAWBAND(VAR1,RGB(150,30,30),EMA(VAR1,60),RGB(0,110,30));
牵引线:VAR1,COLORYELLOW;
趋势关注:IF(CROSS(VAR1,EMA(VAR1,60))ANDVAR6,1,0),NODRAW,COLORRED;
量价关注:IF(CROSS(VAR3,VAR5)ANDVAR6,1,0),NODRAW,COLORWHITE;
冲击量:IF(VAR3>VAR5ANDVAR6,1,0),NODRAW,COLORYELLOW;
STICKLINE(QZS>VAR1,QZS,VAR1,1,0),COLORFF00FF;
STICKLINE(冲击量=1,QZS,VAR1,1,0),COLORYELLOW;
DRAWICON(趋势关注=1,EMA(VAR1,60),13);
DRAWTEXT(量价关注=1,EMA(VAR1,60),'L0V'),COLORWHITE;
MR:=C<支撑ANDCROSS(C,REF(C,2));
STICKLINE(CROSS(现价,支撑),C,中,2,0),COLOR00F0F0;
STICKLINE(MR=1,支撑,中,2,0),COLOR00F0F0;
DRAWICON(MR=1ORCROSS(现价,支撑),中,34);
STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLOR00F0F0;
MC:=C>阻力ANDCROSS(REF(C,2),C);
STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORFFFF00;
STICKLINE(MC=1,阻力,中,2,0),COLORFFFF00;
DRAWICON(MC=1ORCROSS(阻力,现价),中,35);
STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORFFFF00;
DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,'中'),COLORWHITE;
均价:SUM(V*C,0)/SUM(V,0),COLOR004080,DOTLINE;
DRAWTEXT(CURRBARSCOUNT=4,均价,'均'),COLORFFFFFF,LINETHICK2;
最新:C,LINETHICK9,COLORFFFF00;
IF(C>=REF(C,1),C,DRAWNULL),LINETHICK9,COLORRED;
AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));
BB:=BETWEEN(C/AA,C+H,C-H);
DRAWICON(ISLASTBARANDC>REF(C,1),C,1);
DRAWICON(ISLASTBARANDC<REF(C,1),C,2);
{分时均线}
W:=BARSLAST(DAY-REF(DAY,1))+1;
FSJX:SUM(CLOSE*VOL,W)/SUM(VOL,W),LINETHICK2,COLORYELLOW;
IF(FSJX<REF(FSJX,1),FSJX,DRAWNULL),LINETHICK2,COLORGREEN;
上趋势:MA(LOW,20)*1.2,color0080ff,linethick2;
次上趋势:MA(LOW,20)*1.1,coloryellow;
次下趋势:MA(HIGH,20)*0.9,colorwhite;
下趋势:MA(HIGH,20)*0.8,colorgreen,linethick2;
ZD:=(C-REF(C,1))/REF(C,1)*100;
HDZF:=(HHV(H,20)-C)/(HHV(H,20)-LLV(L,20));
趋势强度:=IF(C>次上趋势,IF(C>上趋势,4,3),IF(C>次下趋势ANDC<次上趋势,2,IF(C<下趋势,0,1)));
STICKLINE(趋势强度=0,H,L,6,1),colorblue;
STICKLINE(趋势强度=1,H,L,6,1),colorgreen;
STICKLINE(趋势强度=2,H,L,6,1),colorgray;
STICKLINE(趋势强度=3,H,L,6,1),coloryellow;
STICKLINE(趋势强度=4,H,L,6,1),colormagenta;
STICKLINE(趋势强度=0,C,O,5,0),colorblue;
STICKLINE(趋势强度=1,C,O,5,0),colorgreen;
STICKLINE(趋势强度=2,C,O,5,0),colorgray;
STICKLINE(趋势强度=3,C,O,5,0),coloryellow;
STICKLINE(趋势强度=4,C,O,5,0),colormagenta;
二、龙头启动指标通达信副图
V1:=(C*2+H+L)/4*10;V2:=EMA(V1,13)-EMA(V1,34);V3:=EMA(V2,5);V4:=2*(V2-V3)*5.5;
主力撤:IF(V4<=0,V4,0),COLORBLUE;
主力进:IF(V4>=0,V4,0),COLORFF00FF;
V5:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;
V6:=EMA(3*V5-2*SMA(V5,18,1),5);
V7:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;
V8:=(INDEXC*2+INDEXH+INDEXL)/4;V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);VB:=(V9-VA)/2;
大盘资金进场:IF(VB>=0,VB,0),COLORRED;
大盘资金撤走:IF(VB<=0,VB,0),COLORGREEN;
V11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势线:EMA(V11,3);
V12:=(趋势线-REF(趋势线,1))/REF(趋势线,1)*100;
准备现金:STICKLINE(趋势线<=13,0,8,5,0),COLORCC9900;
AA:=(趋势线<=13)ANDFILTER((趋势线<=13),15);
DRAWTEXT(AA,20,'准备'),COLORCC9900;
买入股票:STICKLINE(趋势线<=13ANDV12>13,0,16,5,0),COLOR0099FF;
BB:=趋势线<=13ANDV12>13ANDFILTER((趋势线<=13ANDV12>13),10);
DRAWTEXT(BB,5,'买入'),COLORYELLOW;
卖临界:STICKLINE(趋势线>90AND趋势线>REF(趋势线,1),100,95,15,1),COLORFFFF00;
见顶清仓:FILTER(趋势线>90AND趋势线<REF(趋势线,1)AND主力进<REF(主力进,1),8);
DRAWTEXT(见顶清仓,90,'逃顶'),COLORYELLOW;CC:=(趋势线>=90ANDV12)ANDFILTER((趋势线>=90ANDV12),10);
STICKLINE(大盘资金进场AND趋势线<13,0,30,10,0),COLORRED;STICKLINE(大盘资金撤走AND趋势线>90,0,30,10,0),COLORGREEN;
STICKLINE(主力进AND趋势线<13,0,40,10,0),COLORFF00FF;STICKLINE(主力撤AND趋势线>90,0,40,10,0),COLORBLUE;
A1:=(C-REF(C,1))/REF(C,1)*100>9.8;
A2:=BARSLAST(A1),NODRAW;
A3:=A2>=1ANDA2<=15;
A4:=C>OAND(H-C)>(O-L);
A5:=C<OAND(H-O)>(C-L);
A6:=A4ORA5;
A7:=MA(CLOSE,25)+MA(CLOSE,25)*13/100;
A8:=C/A7>=1.05;
选股:A3ANDA6ANDC>A7ANDA8;
DIF:=EMA(CLOSE,9)-EMA(CLOSE,150);
DEA:=EMA(DIF,12);
MACD:=2*(DIF-DEA);
DIK:=4*DIF-3*DEA;
DED:=EMA(DIK,1);
启动点:=MACD<0ANDMACD>REF(MACD,1)ANDREF(MACD,1)<REF(MACD,2)ANDREF(MACD,2)<REF(MACD,3)ANDREF(MACD,3)<REF(MACD,4);
AA:=V>MA(V,5)*1.3ANDC>1.02*REF(C,1)ANDC>O;
BB:=MA(C,5)>REF(MA(C,5),1)ANDC>=MA(C,30)ANDC<=1.03*MA(C,30);
ZZ:AAANDBBAND启动点;
主线:=18;
主差:=2;
起初:=1;
主:=EMA(C,起初);
前N:=0;
B1:=1;
B2:=主差+1;
B3:=主差*2+1;
B4:=主差*3+1;
B5:=主差*4+1;
B6:=主差*5+1;
B7:=主差*6+1;
B8:=主差*7+1;
B9:=主差*8+1;
B10:=主差*9+1;
B11:=主差*10+1;
B12:=主差*11+1;
B13:=主差*12+1;
B14:=主差*13+1;
B15:=主差*14+1;
B16:=主差*15+1;
B17:=主差*16+1;
B18:=主差*17+1;
B19:=主差*18+1;
B20:=主差*19+1;
S1:=EMA(B1,主线);
S2:=EMA(B2,主线);
S3:=EMA(B3,主线);
S4:=EMA(B4,主线);
S5:=EMA(B5,主线);
S6:=EMA(B6,主线);
S7:=EMA(B7,主线);
S8:=EMA(B8,主线);
S9:=EMA(B9,主线);
S10:=EMA(B10,主线);
S11:=EMA(B11,主线);
S12:=EMA(B12,主线);
S13:=EMA(B13,主线);
S14:=EMA(B14,主线);
S15:=EMA(B15,主线);
S16:=EMA(B16,主线);
S17:=EMA(B17,主线);
S18:=EMA(B18,主线);
S19:=EMA(B19,主线);
S20:=EMA(B20,主线);
NOTETEXT1:REF(HHV(主,S1),前N),COLORGREEN;
NOTETEXT2:REF(HHV(主,S2),前N),COLORGREEN;
NOTETEXT3:REF(HHV(主,S3),前N),COLORGREEN;
NOTETEXT4:REF(HHV(主,S4),前N),COLORGREEN;
NOTETEXT5:REF(HHV(主,S5),前N),COLORGREEN;
NOTETEXT6:REF(HHV(主,S6),前N),COLORGREEN;
NOTETEXT7:REF(HHV(主,S7),前N),COLORGREEN;
NOTETEXT8:REF(HHV(主,S8),前N),COLORGREEN;
NOTETEXT9:REF(HHV(主,S9),前N),COLORGREEN;
NOTETEXT10:REF(HHV(主,S10),前N),COLORGREEN;
NOTETEXT11:REF(HHV(主,S11),前N),COLORGREEN;
NOTETEXT12:REF(HHV(主,S12),前N),COLORGREEN;
NOTETEXT13:REF(HHV(主,S13),前N),COLORGREEN;
NOTETEXT14:REF(HHV(主,S14),前N),COLORGREEN;
NOTETEXT15:REF(HHV(主,S15),前N),COLORGREEN;
NOTETEXT16:REF(HHV(主,S16),前N),COLORGREEN;
NOTETEXT17:REF(HHV(主,S17),前N),COLORGREEN;
NOTETEXT18:REF(HHV(主,S18),前N),COLORGREEN;
NOTETEXT19:REF(HHV(主,S19),前N),COLORGREEN;
NOTETEXT20:REF(HHV(主,S20),前N),COLORGREEN;
NOTETEXF1:REF(LLV(主,S1),前N),COLORRED;
NOTETEXF2:REF(LLV(主,S2),前N),COLORRED;
NOTETEXF3:REF(LLV(主,S3),前N),COLORRED;
NOTETEXF4:REF(LLV(主,S4),前N),COLORRED;
NOTETEXF5:REF(LLV(主,S5),前N),COLORRED;
NOTETEXF6:REF(LLV(主,S6),前N),COLORRED;
NOTETEXF7:REF(LLV(主,S7),前N),COLORRED;
NOTETEXF8:REF(LLV(主,S8),前N),COLORRED;
NOTETEXF9:REF(LLV(主,S9),前N),COLORRED;
NOTETEXF10:REF(LLV(主,S10),前N),COLORRED;
NOTETEXF11:REF(LLV(主,S11),前N),COLORRED;
NOTETEXF12:REF(LLV(主,S12),前N),COLORRED;
NOTETEXF13:REF(LLV(主,S13),前N),COLORRED;
NOTETEXF14:REF(LLV(主,S14),前N),COLORRED;
NOTETEXF15:REF(LLV(主,S15),前N),COLORRED;
NOTETEXF16:REF(LLV(主,S16),前N),COLORRED;
NOTETEXF17:REF(LLV(主,S17),前N),COLORRED;
NOTETEXF18:REF(LLV(主,S18),前N),COLORRED;
NOTETEXF19:REF(LLV(主,S19),前N),COLORRED;
NOTETEXF20:REF(LLV(主,S20),前N),COLORRED;
天值:MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(MAX(NOTETEXT1,NOTETEXT2),NOTETEXT3),NOTETEXT4),NOTETEXT5),NOTETEXT6),NOTETEXT7),NOTETEXT8),NOTETEXT9),NOTETEXT10),NOTETEXT11),NOTETEXT12),NOTETEXT13),NOTETEXT14),NOTETEXT15),NOTETEXT16),NOTETEXT17),NOTETEXT18),NOTETEXT19),NOTETEXT20),COLORYELLOW,LINETHICK3;
地值:MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(MIN(NOTETEXF1,NOTETEXF2),NOTETEXF3),NOTETEXF4),NOTETEXF5),NOTETEXF6),NOTETEXF7),NOTETEXF8),NOTETEXF9),NOTETEXF10),NOTETEXF11),NOTETEXF12),NOTETEXF13),NOTETEXF14),NOTETEXF15),NOTETEXF16),NOTETEXF17),NOTETEXF18),NOTETEXF19),NOTETEXF20),COLORGREEN,LINETHICK3;
价格:C,COLORRED,LINETHICK2;
DRAWICON(FILTER(NOTETEXT1=NOTETEXT20,25),NOTETEXT1,23),COLORYELLOW;
STICKLINE(CROSS(MA(C,5),MA(C,60)),O,C,1,0),COLORYELLOW;
STICKLINE(CROSS(MA(C,5),MA(C,60)),O,C,1,0),COLORYELLOW;
DRAWICON((MA(C,4)*4+MA(C,60))/5>=MA(C,60)ANDMA(C,5)<MA(C,60),L*0.97,1);Z1:=STRCAT(HYBLOCK,'');
Z2:=STRCAT(Z1,FGBLOCK);
Z3:=STRCAT(Z2,DYBLOCK);
Z4:=STRCAT(Z3,'');
DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(Z4,GNBLOCK)),COLORCYAN;
MA5:=MA(C,5);
MA10:=MA(C,10);
MA30:=MA(C,30);
FA:=BARSLAST(CROSS(MA10,MA5))ANDCROSS(MA5,MA10);
FB:=FAANDMA5>MA30ANDMA10>MA30ANDMA10>REF(MA10,1);
DRAWTEXT(FB,L-0.58,'★红牛'),COLORRED;
V1:=EMA(CLOSE,5);
V2:=EMA(EMA(CLOSE,90)*1.01,10);
DRAWTEXT(CROSS(V1,V2),V1+0.05,'牛起步'),COLOR00FF00;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
AK1:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*100),5);
AK:=EMA((((CLOSE-VAR1)/(VAR2-VAR1))*50),13);
AB:=CROSS(AK1,AK);
DRAWTEXT((AB=1),(LOW*0.99),'○牛窝'),COLORYELLOW;
AA1:=AMOUNT/V;
BB1:=L<AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L<MA(C,5)*0.921;
EE1:=V<MA(V,5)*1.5;
老鼠仓:=BB1ANDCC1ANDDD1ANDEE1,LINETHICK0,COLOR0099FF;
DRAWTEXT(老鼠仓,L*0.99,'老鼠仓'),COLOR0099FF;
VAR3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);
VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05)AND((HIGH)/(CLOSE)<1.01)AND(VAR3AA>0),91,0);
DRAWTEXT(FILTER((VAR4AA>90),45),(LOW)*(0.93),'★大胆搏'),COLOR00FFFF;
DRAWTEXT(FILTER((VAR4AA>90),35),(LOW)*(0.99000001),'★加仓'),COLOR00FFFF;
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.05),'小心变盘'),COLORFFFFFF;
VAR6:=REF(C,1);
VAR7:=SMA(MAX(C-VAR6,0),6,1)/SMA(ABS(C-VAR6),6,1)*100;
DRAWTEXT(CROSS(82,VAR7),H*1.01,'▼逃顶'),COLORYELLOW;N:=5;
A1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,1)+1);
A2:=A1>REF(A1,1);
B1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,2)+1);
B2:=B1>REF(B1,1);
C1:=BACKSET(ISLASTBAR,PEAKBARS(1,N,3)+1);
C2:=C1>REF(C1,1);
A11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,1)+1);
A21:=A11>REF(A11,1);
B11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,2)+1);
B21:=B11>REF(B11,1);
C11:=BACKSET(ISLASTBAR,TROUGHBARS(2,N,3)+1);
C21:=C11>REF(C11,1);
①:DRAWLINE(B2,H,A2,H,0),COLORBLUE;
②:DRAWLINE(C2,H,B2,H,0),COLORCC6633;
③:IF(A1,PEAK(1,N,1),DRAWNULL),COLORFFAA00;
④:DRAWLINE(C2,H,A2,H,0),COLORLIBLUE;
⑤:DRAWLINE(B21,L,A21,L,0),COLORYELLOW;
⑥:DRAWLINE(C21,L,B21,L,0),COLORFF00FF;
⑦:DRAWLINE(C21,L,A21,L,0),COLORBROWN;
⑧:IF(A11,TROUGH(2,N,1),DRAWNULL),COLORRED;
T1:=CONST(HHVBARS(V,N));
T0:IF(CURRBARSCOUNT<=N+7,CONST(IF(T1=0,C,REF(C,T1))),DRAWNULL);
IF(CURRBARSCOUNT=T1+1,T0,DRAWNULL),CIRCLEDOT;
DRAWTEXT(ISLASTBAR,T0,'量能平台');
A4:=(HHV(H,34)-C)/(HHV(H,34)-LLV(L,34))*100;
A5:=EMA(CLOSE,12)-EMA(CLOSE,26);
A6:=EMA(A5,9);
A7:=(A5<-0.1ANDA5>A6);
财神:IF(A7,LLV(L,21),DRAWNULL)COLORRED,CIRCLEDOT;
AA:=CYS;
MIDD:=MA(CYS,20);
CC:=MIDD+0.85*STD(CYS,10);
TM6:=AA>CC;
A0:=(L+H+C*2)/4;
工作:=EMA(A0,14)COLORYELLOW,LINETHICK1;
度假:=EMA(A0,25)COLORYELLOW,LINETHICK1;
A1X:=(工作-REF(工作,1))/REF(工作,1)*100;
A2X:=(度假-REF(度假,1))/REF(度假,1)*100;
G:=BARSLAST(CROSS(A1X,0));MA(CLOSE,20);
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
豆豆:=C;
HD:=FILTER(C1,10);
LD:=FILTER(C2,10);
A:=REF(C,BARSLAST(HD));B:=REF(L,BARSLAST
(LD));
T2:=BARSLAST(HD)>BARSLAST(LD)ANDNOT(LD);
压力:IF
(T1,A,A),COLORYELLOW,POINTDOT,LINETHICK3;
支撑:IF
(T2,B,B),COLORGREEN,POINTDOT,LINETHICK3;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE-LC),0),3,1)/SMA(ABS((CLOSE-LC)),3,1))*100);
FF:=EMA(CLOSE,3);
MA15:=EMA(CLOSE,21);
DRAWTEXT(CROSS(88,RSI),(HIGH*1.02),'顶背离'),COLOR1880FF;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
[源码注释]通达信公式动态翻译结果
VAR1赋值:收盘价的12日指数移动平均-收盘价的26日指数移动平均
VAR2赋值:VAR1的9日指数移动平均
VAR3赋值:2*(VAR1-VAR2)
VAR4赋值:上次VAR2上穿VAR1距今天数
VAR5赋值:上次VAR1上穿VAR2距今天数
VAR6赋值:VAR4日前的VAR2
VAR7赋值:VAR1上穿VAR6
VAR8赋值:上次VAR7距今天数
VAR9赋值:2日前的收盘价/1日前的收盘价>1.05
VAR10赋值:收盘价/1日前的收盘价>1.095
VAR11赋值:(收盘价-9日内最低价的最低值)/(9日内最高价的最高值-9日内最低价的最低值)*100
VAR12赋值:VAR11的3日[1日权重]移动平均
VAR13赋值:VAR12的3日[1日权重]移动平均
VAR14赋值:3*VAR12-2*VAR13
输出XG:VAR14<80 AND VAR9 AND VAR10 AND VAR3>0
推荐阅读:通达信超牛龙头主图指标公式
趋势H1:EMA(CLOSE,6);
H2:EMA(趋势H1,18);
H3:EMA(CLOSE,108),coloryellow;
STICKLINE(趋势H1>H2,趋势H1,H2,1,1),colorred;
STICKLINE(趋势H1<H2,趋势H1,H2,1,1),colorblue;
AB1:=REF(C,10)=HHV(C,2*10+1);BB1:=FILTER(AB1,10);CB1:=BACKSET(BB1,10+1);HBD:=FILTER(CB1,10);
近期压力:REF(C,BARSLAST(HBD)),NODRAW,coloryellow;
STICKLINE(C,近期压力,近期压力,10,0),coloryellow;DRAWTEXT(ISLASTBAR,近期压力,'近期压力');
AS1:=REF(C,60)=HHV(C,2*60+1);AS2:=FILTER(AS1,60);AS3:=BACKSET(AS2,60+1);AS4:=FILTER(AS3,60);
长期压力:REF(C,BARSLAST(AS4)),NODRAW,colorred;
STICKLINE(C,长期压力,长期压力,10,0),colorred;DRAWTEXT(ISLASTBAR,长期压力,'长期压力');
跌幅:=(C-REF(C,1))/REF(C,1)*100<-4.94;
箱顶:DRAWLINE(跌幅,O,REF(跌幅,1),REF(O,1),1),colormagenta,LINETHICK2;
DRAWTEXT(ISLASTBAR,箱顶,'箱顶');
Z1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,20))/EMA(CLOSE,20));
Z2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),Z1);
金线王:EMA(Z2,200)*1.118,colorcyan,LINETHICK1;
DF2:=(C-REF(C,1))/REF(C,1)*100>9;
金K线:=CROSS(C,金线王)ANDDF2;
标签:=O>CANDC>REF(C,1)ANDO/REF(C,1)>1.03;
DRAWTEXT(标签,H,'标签'),colorred;
DRAWTEXT(金K线,L*0.98,'↖金K线'),colorgreen;
涨跌:=REF(C,1);
涨停:=IF(((((C-涨跌)*100)/涨跌)>=(10-((0.01*100)/涨跌))),1,0);
VAR4:=EMA(CLOSE,9);
飞狐线:=(MA(CLOSE,25)+((MA(CLOSE,25)*20)/100));
强势线:=(MA(CLOSE,25)+((MA(CLOSE,25)*6)/100));
支撑线:=((((MA(CLOSE,3)+MA(CLOSE,6))+MA(CLOSE,12))+MA(CLOSE,24))/4);
压力线:=EMA((VAR4*1.14),5);
盈损线:=(LLV(REF(LOW,1),2)+((HHV(REF(HIGH,1),2)-LLV(REF(LOW,1),2))/2));
QD:=(((C>强势线)AND(C>支撑线))AND(C>盈损线));
小妖:=((COUNT(QD,10)=1)ANDQD);
XYJJ:=BARSLAST(小妖);
JS:=CROSS(C,压力线);
妖狐:=((COUNT(JS,XYJJ)<=1)ANDJS);
HX1:=((REF(妖狐,1)AND(O>压力线))AND(C>压力线));
HX2:=((REF(妖狐,1)ANDCROSS(C,飞狐线))AND(C>压力线));
狐仙前世:=(小妖AND妖狐);
狐仙金身:=(HX1ORHX2);
妖狐王:=((((REF(涨停,1)AND(O>压力线))AND(O>REF(H,1)))AND(REF(H,1)<REF(压力线,1)))AND(L>=压力线));
超牛龙头:((狐仙前世OR狐仙金身)OR妖狐王);
A1:MA(C,2)*2-MA(C,5);
A5:MA(C,5);
A10:MA(C,10)*2-MA(C,5);
A20:MA(C,20)*2-MA(C,5);
DRAWICON(C<A1ANDC>A5ANDC<A10ANDA5>REF(A5,1),L,26);
IF(CODELIKE('000157'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('000528'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('000425'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('600761'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('600031'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('601800'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('601669'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('601186'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('601390'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('002051'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('601766'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('601299'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('300351'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('603111'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('603308'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
IF(CODELIKE('601106'),CONST(HHV(C,20)),DRAWNULL),COLORRED;
引用:
【精选指标】通达信强势龙头主图指标,助你股海擒牛! – 知乎
评论(0)