相关简介:通达信底部机构擒牛指标公式源码分享
通达信指标公式源码概况:
指标类别:通达信指标公式
授权方式:免费版
指标评级:★★★★★
指标分类:策略
画线方法:副图
自己长期使用的一个指标,可以直观的看到票的资金情况,机构擒牛的资金。机构显示红色,票多少都会上涨,如果机构擒牛对都红,红的力量越大,票的上涨越大越猛。
通达信指标公式源码:
MA(C,9),LINETHICK2,COLORYELLOW;
MA(C,21),LINETHICK2,COLORRED;
IF(MA(C,9)<REF(MA(C,9),1),MA(C,9),DRAWNULL),LINETHICK2,COLORBLUE;
IF(MA(C,21)<REF(MA(C,21),1),MA(C,21),DRAWNULL),LINETHICK2,COLORGREEN;
VAR1:=((((HHV((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),4)<0)AND((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2)>REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)))AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),1)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)))AND(REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),2)<REF((((EMA(DCLOSE,12)-EMA(DCLOSE,26))-(EMA((EMA(DCLOSE,12)-EMA(DCLOSE,26)),9)))*2),3)));
DRAWICON(VAR1,L*0.98,26);
DRAWTEXT(VAR1,L*0.97,'短买'),COLORYELLOW;
DRAWICON(CROSS(MA(C,3),MA(C,9))ANDC>=REF(C,1)ANDC>O,L*0.98,26)
DRAWTEXT(CROSS(MA(C,3),MA(C,9))ANDC>=REF(C,1)ANDC>O,L*0.97,'加仓'),
COLORMAGENTA;
A:70;
B:90;
波段线:5*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1)-SMA(SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),2,1),NODRAW;
趁火打劫:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),NODRAW;
DRAWBAND(波段线,RGB(150,030,030),趁火打劫,RGB(20,150,20));
IF(波段线>=趁火打劫,波段线,DRAWNULL),COLORLIMAGENTA,LINETHICK2;
IF(波段线<趁火打劫,波段线,DRAWNULL),COLORGREEN,LINETHICK2;
M1:=EMA(MA(波段线,5),3);
STICKLINE(波段线>100AND波段线>=M1,波段线,100,3,1),COLORF0F000;
STICKLINE(波段线<0AND波段线<=M1,波段线,0,3,1),COLORLIGRAY;
底部买:=LLV(波段线,2)=LLV(波段线,8);
买进:=IF(CROSS(波段线,REF(波段线+0.01,1))AND底部买AND波段线<0,20,0);
STICKLINE(波段线<0AND波段线<M1,买进,0,1,0),COLORFF6699;
VAR1:=REF(LOW,1);
VAR2:=SMA(ABS(LOW-VAR1),3,1)/SMA(MAX(LOW-VAR1,0),3,1)*100;
VAR3:=EMA(IF(CLOSE*1.2,VAR2*10,VAR2/10),3);
VAR4:=LLV(LOW,38);
VAR5:=HHV(VAR3,38);
VAR6:=IF(LLV(LOW,90),1,0);
VAR7:=EMA(IF(LOW<=VAR4,(VAR3+VAR5*2)/2,0),3)/618*VAR6;
VAR71:=IF(VAR7>=100,100,VAR7);
主力吸货:VAR71,COLOR0000FF;
吸筹1:STICKLINE(VAR71,0,VAR71,6,0),COLOR0000FF;
吸筹2:STICKLINE(VAR71,0,VAR71,5,0),COLOR6600FF;
吸筹3:STICKLINE(VAR71,0,VAR71,4,0),COLORBB00FF;
吸筹4:STICKLINE(VAR71,0,VAR71,3,0),COLORFF00FF;
吸筹5:STICKLINE(VAR71,0,VAR71,2,0),COLORFF33FF;
吸筹6:STICKLINE(VAR71,0,VAR71,1,0),COLORFF66FF;
吸筹7:STICKLINE(VAR71,0,VAR71,0,0),COLORFF99FF;
MA5:=MA(CLOSE,5);
MA15:=MA(CLOSE,15);
MA30:=MA(CLOSE,30);
MA60:=MA(CLOSE,60);
离散量30:=100*(MA5-(MA15+MA30)/2)/MA30+50,COLOR00FFFF;
离散量60:100*(MA5-(MA15+MA30+MA60)/3)/MA60+50,COLORFFAA00;
粘合K:-3*(离散量30-离散量60)+50,COLORRED,LINETHICK2;
粘合D:=EMA(粘合K,3);
主升:BARSLAST(CROSS(粘合K,粘合D))*(粘合K>粘合D),COLORLIMAGENTA;
STICKLINE(粘合K>108,105,粘合K,5,1),COLORGREEN;
STICKLINE(主升,主升,主升+2,4,1),COLORLIMAGENTA;
DRAWICON(CROSS(离散量60,粘合K),离散量60*1.05,1);
DRAWICON(CROSS(粘合K,离散量60),离散量60*0.98,2);
隔岸观火:VAR5,COLOR0000FF,NODRAW;
关门捉贼:IF(趁火打劫<=10,30,0),COLORFFFF00,NODRAW;
擒贼擒王:IF(CROSS(趁火打劫,2),40,0),COLORFF0000,NODRAW;
RSV:=(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
买入:=(CROSS(K,D)ANDK<30);
买:=买入ANDFILTER(买入,10);
STICKLINE(CROSS(趁火打劫,2),0,15,1,0),COLORWHITE;
STICKLINE(趁火打劫<=10,0,8,2,0),COLORLIGREEN;
STICKLINE(波段线<0AND波段线<M1,买进,0,4,0),COLORFF9900;
DRAWICON(买AND趁火打劫>10,10,9);
DRAWICON(CROSS(趁火打劫,11),-3,23);
XG:=LAST(趁火打劫<REF(趁火打劫,1),2,1)AND趁火打劫>REF(趁火打劫,1)AND趁火打劫>15;
DRAWICON(XG,-11,11);
A01:=DYNAINFO(7);
A03:=BARSCOUNT(CLOSE);
A04:=(SMA((CLOSE/HHV(HIGH,120)),3,1)*100);
A05:=IF((A03>20),A04,0);
A06:=IF((LOW>A01),0,IF((HIGH0)AND(A07>REF(A07,1)))AND(A05<=88)),A07,0);
Var1:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
Var2:=EMA(Var1,8);
Var3:=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(Var3,3)-10;
STICKLINE(趋势>80,趋势,80,6,0);
DRAWTEXT(CROSS(趋势,0),0,'▲'),color0000ff;
STICKLINE((A09>0AND(趋势<20OR趋势>REF(趋势,1)AND趋势<50)),0,A09,5,0),COLORFFFF00;
机构建仓区:0,LINETHICK0,colorFFFF00;
Var4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;
STICKLINE(趋势<=13,0,20,5,0),colorcc9900;
DRAWTEXT(FILTER(趋势<=13,15),30,'准备现金'),colorcc9900;
STICKLINE(趋势<=13ANDVar4>13,0,50,5,0),color0099ff;
Var5:=FILTER((趋势<=13ANDVar4>13),10);
DRAWTEXT(Var5,60,'买入'),color0099ff;
STICKLINE(趋势>=90ANDVar4,0,30,5,0),colorgray;
Var6:=FILTER((趋势>=90ANDVar4),10);
DRAWTEXT(Var6,40,'清仓'),colorgray;
Var7:=LLV(LOW,30);
Var8:=HHV(HIGH,30);
Var9:=EMA((CLOSE-Var7)/(Var8-Var7)*4,4)*25;
STICKLINE(Var9>90,100,105,10,2),colorred;
Var10:=(Var9-LLV(Var9,4))/(HHV(Var9,4)-LLV(Var9,4))*100;
DRAWTEXT(IF(CROSS(Var9,Var10)ANDVar9>87,95,0),88,'险'),Color00FF00;
DRAWTEXT(CROSS(90,Var9),98,'↓'),color0000ff;
Var11:=SMA(ABS(L-REF(L,1)),98,1)/SMA(MAX(L-REF(L,1),0),3,1)*100;
Var12:=HHV(Var11,30)*8;
火焰山:EMA(IF(LOW<=Var7AND趋势<40,(Var11+Var12),0),3)/618,colorred,linethick2;
STICKLINE(火焰山>0,0,火焰山*1.2,8,0),colorred;
Var13:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
Var14:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
趋势线:趋势,colorff0000;
Var16:=MAX(EMA(Var13,2)-EMA(Var14,5),0)*200;
Var17:=EMA(Var16,5);
波浪峰:Var17,STICK,colorff00ff;
STICKLINE(Var17<REF(Var17,1),0,Var17,1,0),color00ff00;
Var18:=MA(趋势线,8);
IF(CROSS(Var2,Var18)ANDVar2<15,50,0),colorred;
DRAWTEXT(CROSS(趋势线,Var2)AND趋势线>REF(趋势线,1)AND趋势线<50,50,'追涨'),COLORFF0000;
[源码注释]通达信公式动态翻译结果
输出XG:(5日内最高价的最高值-5日内最低价的最低值)/5日内最低价的最低值*100<10
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)