通达信【机构牛】主副图 主抓低位翻倍 信号少而精 源码附图

{机构牛主图源码如下}
所属板块:=STRCAT(STRCAT(HYBLOCK,DYBLOCK),GNBLOCK);
DRAWTEXT_FIX(1,0,0,0,所属板块),COLORYELLOW;
DRAWTEXT_FIX(1,0.005,0.07,0,'◆风格:'),COLORWHITE;
DRAWTEXT_FIX(1,0.05,0.07,0,FGBLOCK),COLORGREEN;
STICKLINE(CLOSE>REF(CLOSE,1),HIGH,LOW,0,1),COLORRED;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR000055;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR000088;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR0000AA;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLOR0000CC;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORRED;
STICKLINE(CLOSE>REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOR0000EE;
STICKLINE(CLOSE<REF(CLOSE,1),HIGH,LOW,0,1),COLOR666600;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR555500;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR888800;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLORAAAA00;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBB00;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORCCCC00;
STICKLINE(CLOSE<REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLOREEEE00;
STICKLINE(CLOSE=REF(CLOSE,1),HIGH,LOW,0,1),COLORWHITE;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,3.1,0),COLOR555555;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.7,0),COLOR777777;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,2.1,0),COLOR999999;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,1.5,0),COLORBBBBBB;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.9,0),COLORDDDDDD;
STICKLINE(CLOSE=REF(CLOSE,1),OPEN,CLOSE,0.3,0),COLORWHITE;
X_1:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.058 AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)<0.095;
X_2:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)>=0.098;
STICKLINE(X_1,OPEN,CLOSE,0,1),COLOR9B37FF;
STICKLINE(X_1,OPEN,CLOSE,3,0),COLOR6300C6;
STICKLINE(X_1,OPEN,CLOSE,2.7,0),COLOR6D00DB;
STICKLINE(X_1,OPEN,CLOSE,2.1,0),COLOR7800F0;
STICKLINE(X_1,OPEN,CLOSE,1.5,0),COLORLIMAGENTA;
STICKLINE(X_1,OPEN,CLOSE,0.9,0),COLOR8F20FF;
STICKLINE(X_1,OPEN,CLOSE,0.3,0),COLOR9B37FF;
STICKLINE(X_2,CLOSE,OPEN,3,0),COLOR00AAFF;
STICKLINE(X_2,CLOSE,OPEN,2.1,0),COLOR00BBFF;
STICKLINE(X_2,CLOSE,OPEN,1.5,0),COLOR00CCFF;
STICKLINE(X_2,CLOSE,OPEN,1,0),COLOR00DDFF;
STICKLINE(X_2,CLOSE,OPEN,0.6,0),COLOR00EEFF;
STICKLINE(X_2,CLOSE,OPEN,0.2,0),COLORYELLOW;
X_3:=MA(CLOSE,20);
标准上轨:=X_3+2*STD(CLOSE,20),DOTLINE,COLORYELLOW;
标准下轨:=X_3-2*STD(CLOSE,20),DOTLINE,COLORRED;
X_4:=MA(CLOSE,120);
X_5:=MA(CLOSE,250);
X_6:=MA(CLOSE,20*5);
超级上轨:=X_6+2*STD(CLOSE,20*5),COLORYELLOW,LINETHICK2;
超级下轨:=X_6-2*STD(CLOSE,20*5),COLORRED,LINETHICK2;
A1AA:=9;
A2AA:=(REF(CLOSE,A1AA+1)<CLOSE);
DRAWTEXT(FILTER((A2AA>-0.5),84),(HIGH)*(1.03),'小心变盘'),COLORFFFFFF;
DRAWTEXT(CROSS(83,RSI),H*1.04,'')COLORYELLOW;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:(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;
马线:MA(牛线,6),COLORYELLOW,LINETHICK2;
MAA5:MA(C,5),COLORFF00FF,LINETHICK2;

{机构牛副图源码如下}
AA:=C/REF(C,1)>1.04 AND REF(MA(C,250)/MA(C,120)<1.15,1) AND REF(COUNT(MAX(C,O)/MIN(C,O)<1.02,10)>7,1) AND REF(C,1)/REF(LLV(L,700),2)<1.5 AND REF(EVERY(MA(C,60)/REF(MA(C,60),1)>0.995,10) AND EVERY(MA(C,120)/REF(MA(C,120),1)>0.998,10),1);
BB:=NOT(REF(EVERY(MA(C,60)/MA(C,120)<0.93,100),1)) AND REF(EVERY(MAX(MA(C,60),MA(C,120))/MIN(MA(C,60),MA(C,120))<1.08,8),1) AND (REF(C,1)/REF(MA(C,20),1)<1.04 OR REF(C,1)/REF(MA(C,60),1)<1.04) AND V/REF(V,1)>3 AND V>REF(HHV(V,35),1);
VAR1:=EMA(C,30)*1.09;
TYP:=(HIGH+LOW+CLOSE)/3;
VAR3:=(TYP-MA(TYP,38))*1000/(15*AVEDEV(TYP,38));
XG:=REF(EVERY(C<VAR1,10) AND EVERY(MA(C,60)>MA(C,120),4),1) AND C>VAR1 AND MA(C,60)>MA(C,120) AND V/REF(V,1)>1.2 AND REF(C,1)/REF(C,2)<1.08 AND REF(C,2)/REF(C,13)<1.07 AND C>REF(HHV(H,30),1) AND MA(C,20)/MA(C,250)<1.4 AND VAR3>140;
A1:=REF(AA AND BB,1) AND XG;
A2:=AA AND BB AND REF(XG,1);
A3:=XG AND AA AND BB;
XGZ:=A1 OR A2 OR A3;
STICKLINE(XGZ,0,1,3,0),COLORRED;
STICKLINE(XGZ,1,2,2,0),COLORMAGENTA;
STICKLINE(XGZ,2,3,1,0),COLORYELLOW;
DRAWTEXT(XGZ,2.5,' ★★★★★ 机构牛'),COLORYELLOW;




来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图