通达信板后突破主图指标公式源码

VAR1:=HHV(HHV(LOW,14),240);
VAR2:=CLOSE*vol;
VAR3:=EMA((EMA(VAR2,3)/EMA(VOL,3)+EMA(VAR2,6)/EMA(VOL,6)+EMA(VAR2,12)/EMA(VOL,12)+EMA(VAR2,24)/EMA(VOL,24))/4,13);
VAR4:=EMA(CLOSE,9);
VAR5:=1.06*VAR3;
VAR6:=DMA((H + L + C * 2) / 4,0.9);
VAR7:=EMA(VAR6,5),NODRAW;
穿腰:=L<=VAR7 AND C>=VAR5;
腰比:=Abs(VAR5/VAR7-1)*100,NODRAW;
细:=腰比<=2;
DRAWBAND(VAR5,RGB(40,40,20),VAR7,RGB(120,0,0));
DRAWKLINE(H,O,L,C);
{强弱分界}
弱分界:=EMA(COST(85),10);
分界:=EMA(COST(99),10);
分界比:=分界/弱分界;
分界比1:=分界比<1.11;
主线1:=EMA(EMA(C,1),5);
本1:=EMA(HHV(主线1,5),1);
急:=EMA(HHV(本1,21),1);
稳:=EMA(HHV(急,21),2),;
投:=EMA(HHV(稳,21),3);
散:=EMA(HHV(投,21),4);
集:=EMA(HHV(散,21),5);
马:=EMA(HHV(集,21),6);
角度马:=ATAN((马/REF(马,1)-1)*100)*180/3.1416;
T马:=BARSLAST(NOT(角度马=0));
界:=EMA(EMA(EMA(EMA(MA(MA(MA(SUM(MA(CLOSE,60)/1,1),1),1),1),5),5),12),13)*1.01;
马界比:=马/界;
马界比1:=马界比<1.18;
主T:=BARSLAST(crOSS(MA(C,5),MA(C,60)));
偏离度:=MA(C,5)/REF(MA(C,60),主T);
BBC:=LLV(C,0);
涨幅:=C/BBC;
倍量:=V/REF(MA(V,5),1)>=2&&C>O&&C>EMA(C,13)&&V=HHV(V,4)&&C>REF(C,1);
百日大量:=VOL>REF(HHV(VOL,100),1);
量:=V/REF(V,1)>=2 OR 百日大量;
涨板:=C/REF(C,1)>1.095 AND C=H;
一字板:=涨板 AND C=O AND C=L;
{筹码}
YM1:=90;
YM2:=80;
YM3:=70;
YM4:=10;
YM5:=YM1+(100-YM1)/2;
YM6:=(100-YM1)/2;
YM7:=COST(YM5);
YM8:=WINNER(C)*100;
GS:=COST(YM6);
YMGS:=(YM7-GS)/(YM7+GS);
筹码集中度:=(COST(95)-COST(5))/(COST(95)+COST(5))*100;
三穿标:=BARSLAST(涨板 AND NOT(一字板) AND (偏离度<1.05 OR C<MA(C,60)) AND (倍量 OR 量) AND REF(COUNT(涨板,5),1)<1);
MZTJ:=REF(COUNT(ABS(C/REF(C,1)-1)>0.05,三穿标)<=1,1) AND EVERY(C<=REF(H,三穿标)*1.08,三穿标) AND LLV(C,三穿标)>=(REF(C,三穿标)+REF(O,三穿标))/2 AND REF(H,三穿标-1)/REF(C,三穿标)<1.08 ;
穿高:=L<=REF(H,三穿标-1) AND C>=REF(H,三穿标-1);
YH1:=REF(EVERY(ABS(C/REF(C,1)-1)<0.03,三穿标),1);
YH2:=REF(REF(V,三穿标-1)>=HHV(V,三穿标),1);
YH3:=REF(REF(H,三穿标-1)>=HHV(C,三穿标),1);
YH4:=REF(EVERY(筹码集中度<10,三穿标),1) OR COUNT(筹码集中度<10,8)>=8;
YH5:=REF(EVERY(腰比<3,三穿标),1);
YH6:=REF(EVERY(马界比1,三穿标),1);
YH7:=REF(EVERY(分界比1,三穿标),1);
优化:=YH1+YH2+YH3+YH4+YH5+YH6+YH7>=2 AND 涨幅<1.65 AND 偏离度<1.15 AND (马界比<1.18 OR 分界比<1.12);
突破:=REF(三穿标>=9,1) AND REF(MZTJ,1) AND (CROSS(C,REF(H,三穿标-1)) OR 穿高) AND C/REF(C,1)>1.025 AND 优化;
位置:=IF(MZTJ,(REF(C,三穿标)+REF(O,三穿标))/2,0);
位置1:=IF(MZTJ,REF(H,三穿标-1),0);
STICKLINE(三穿标<=40,位置,位置,3.1,0),COLORWHITE;
STICKLINE(三穿标<=40,位置1,位置1,3.1,0),COLORWHITE;
SBT1:=BARSLAST(涨板 AND REF(涨板,1) AND REF(涨板,2) AND REF(NOT(涨板),3) AND REF(COUNT(涨板,5)<1,3) AND 偏离度<=1.25);
SBT2:=BARSLAST(涨板 AND REF(涨板,1) AND REF(NOT(涨板),2) AND REF(COUNT(涨板,5)<1,2) AND 偏离度<=1.25);
SB1:=REF(COUNT(C>REF(C,SBT1),SBT1)<=2,1) AND 涨幅<1.8 AND LLV(C,SBT1)>REF(L,SBT1+2) AND REF(EVERY(C<REF(C,SBT1)*1.05,SBT1+1),1);
SB2:=涨幅<1.8 AND LLV(C,SBT2)>=REF(L,SBT2+1)*0.99 AND HHV(C,SBT2)<REF(C,SBT2)*1.1;
突破线1:=IF(SB1,REF(REF(C,SBT1),1),0);
突破线2:=IF(SB2,REF(REF(C,SBT2),1),0);
STICKLINE(SBT1<=30,突破线1,突破线1,3.1,0),COLOR80FF80;
STICKLINE(SBT2<=30,突破线2,突破线2,3.1,0),COLOR80FF80;
突破1:=C/REF(C,1)>1.03 AND REF(SBT1>=3,2) AND CROSS(C, 突破线1);
突破2:=C/REF(C,1)>1.03 AND REF(SBT2>=3,2) AND CROSS(C, 突破线2);
STICKLINE(突破 OR 突破1 OR 突破2,H,L,0,0),COLORYELLOW;
STICKLINE(突破 OR 突破1 OR 突破2,CLOSE,OPEN,3.5,0),COLOR00AAFF;
STICKLINE(突破 OR 突破1 OR 突破2,CLOSE,OPEN,2.1,0),COLOR00BBFF;
STICKLINE(突破 OR 突破1 OR 突破2,CLOSE,OPEN,1.5,0),COLOR00CCFF;
STICKLINE(突破 OR 突破1 OR 突破2,CLOSE,OPEN,1,0),COLOR00DDFF;
STICKLINE(突破 OR 突破1 OR 突破2,CLOSE,OPEN,0.6,0),COLOR00EEFF;
STICKLINE(突破 OR 突破1 OR 突破2,CLOSE,OPEN,0.2,0),COLORYELLOW;
STICKLINE(突破,O,L,0,0),COLORB8B872;
STICKLINE(突破,O,REF(H,三穿标-1),3.5,0),COLOR808040;
STICKLINE(突破,O,REF(H,三穿标-1),2.1,0),COLOR8D8D47;
STICKLINE(突破,O,REF(H,三穿标-1),1.5,0),COLOR9C9C4E;
STICKLINE(突破,O,REF(H,三穿标-1),1,0),COLORAAAA55;
STICKLINE(突破,O,REF(H,三穿标-1),0.6,0),COLORB1B163;
STICKLINE(突破,O,REF(H,三穿标-1),0.2,0),COLORB8B872;
STICKLINE(突破1,O,L,0,0),COLORB8B872;
STICKLINE(突破1,O,REF(C,SBT1),3.5,0),COLOR808040;
STICKLINE(突破1,O,REF(C,SBT1),2.1,0),COLOR8D8D47;
STICKLINE(突破1,O,REF(C,SBT1),1.5,0),COLOR9C9C4E;
STICKLINE(突破1,O,REF(C,SBT1),1,0),COLORAAAA55;
STICKLINE(突破1,O,REF(C,SBT1),0.6,0),COLORB1B163;
STICKLINE(突破1,O,REF(C,SBT1),0.2,0),COLORB8B872;
STICKLINE(突破2,O,L,0,0),COLORB8B872;
STICKLINE(突破2,O,REF(C,SBT2),3.5,0),COLOR808040;
STICKLINE(突破2,O,REF(C,SBT2),2.1,0),COLOR8D8D47;
STICKLINE(突破2,O,REF(C,SBT2),1.5,0),COLOR9C9C4E;
STICKLINE(突破2,O,REF(C,SBT2),1,0),COLORAAAA55;
STICKLINE(突破2,O,REF(C,SBT2),0.6,0),COLORB1B163;
STICKLINE(突破2,O,REF(C,SBT2),0.2,0),COLORB8B872;
{标321}
SS1:=涨板;
SS2:=COUNT(SS1,2)=1;
SS3:=SS1 AND SS2;
位21:=O+(C-O)*0.5,NODRAW;
位上31:=O+(C-O)*0.67,NODRAW;
位下31:=O+(C-O)*0.34,NODRAW;
DRAWTEXT(SS3,位21,'-')COLORBROWN;
DRAWTEXT(SS3,位上31,'-')COLORBROWN;
DRAWTEXT(SS3,位下31,'-')COLORBROWN;



未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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