精 彩 内 容 呈 现
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORRED;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORGREEN;
STICKLINE(跌停,H,L,0,1),COLORGREEN;
X1:=(HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21))*100-10;
X2:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
X3:=SMA(X2,13,8);
X4:=CEILING(SMA(X3,13,8));
X5:=SMA(X1,21,8);
AABB:=IF(L,CONST(L),DRAWNULL);
启动:STICKLINE(X4-X5>75,AABB,AABB*0.99,15,1),COLOR0000FF;
AAA:=(3*C+H+L+O)/6;
章鱼哥1:=(8*AAA+7*REF(AAA,1)+6*REF(AAA,2)+5*REF(AAA,3)+4*REF(AAA,4)+3*REF(AAA,5)+2*REF(AAA,6)+REF(AAA,8))/36;
章鱼哥2:=(HHV(章鱼哥1,5)+HHV(章鱼哥1,10)+HHV(章鱼哥1,20))/3;
章鱼哥3:=(LLV(章鱼哥1,5)+LLV(章鱼哥1,10)+LLV(章鱼哥1,20))/3;
章鱼哥4:=(HHV(章鱼哥2,5)+HHV(章鱼哥2,10)+HHV(章鱼哥2,20))/3;
章鱼哥5:=(LLV(章鱼哥3,5)+LLV(章鱼哥3,10)+LLV(章鱼哥3,20))/3;
章鱼哥6:=(LLV(章鱼哥1,2)+LLV(章鱼哥1,4)+LLV(章鱼哥1,6))/3;
DRAWBAND(章鱼哥1,RGB(155,50,50),章鱼哥6,RGB(250,250,0));
下跌:IF(章鱼哥1=章鱼哥6,章鱼哥6,DRAWNULL),COLORGREEN;
TJ1:=VOL=HHV(VOL,10) AND VOL>2*REF(VOL,1) AND CLOSE>章鱼哥1;
立桩量:=FILTER(TJ1,5);
TJ2:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(HIGH,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(HIGH,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(HIGH,3),1,0)));
突破:=TJ2=1;
STICKLINE(CLOSE,REF(HIGH,BARSLAST(立桩量)),REF(HIGH,BARSLAST(立桩量)),1,0),COLORCYAN;
STICKLINE(CLOSE,REF(LOW,BARSLAST(立桩量)),REF(LOW,BARSLAST(立桩量)),1,0),COLORYELLOW;
TJ3:=IF(BARSLAST(立桩量)=1 AND CLOSE>REF(LOW,1),1,IF(BARSLAST(立桩量)=2 AND CLOSE>REF(LOW,2),1,IF(BARSLAST(立桩量)=3 AND CLOSE>REF(LOW,3),1,0)));
三天法则:=TJ3=1;
成立:=三天法则 AND 突破;
条件成立:=FILTER(成立,3);
DRAWTEXT(条件成立,L*0.99,'成立'),COLORFF0000;
STICKLINE(C>=O,C,O,3,0),COLOR000045;
STICKLINE(C>=O,C,O,2.5,0),COLOR000065;
STICKLINE(C>=O,C,O,2,0),COLOR000085;
STICKLINE(C>=O,C,O,1.5,0),COLOR0000A5;
STICKLINE(C>=O,C,O,1,0),COLOR0000C5;
STICKLINE(C>=O,C,O,0.5,0),COLOR0000E5;
STICKLINE(C>=O,H,L,0,0),COLOR0000F5;
STICKLINE(C<O,C,O,3,0),COLOR353500;
STICKLINE(C<O,C,O,2.5,0),COLOR454500;
STICKLINE(C<O,C,O,2,0),COLOR555500;
STICKLINE(C<O,C,O,1.5,0),COLOR656500;
STICKLINE(C<O,C,O,1,0),COLOR757500;
STICKLINE(C<O,C,O,0.5,0),COLOR858500;
STICKLINE(C<O,H,L,0,0),COLOR959500;
HIGHN:=10;
LOWN:=10;
HIGHDISPLAY:=0;
LOWDISPLAY:=0;
ZGDISPLAY:=0;
MADISPLAY:=0;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DRAWICON(CC,H*1.02,2);
鱼哥A:=BARSLAST(CC);
章鱼:=IF(CC,CURRBARSCOUNT,0);
章鱼哥O:=IF(鱼哥A,REF(H,鱼哥A),H);
章鱼哥OTS:=IF(鱼哥A,REF(章鱼,鱼哥A),章鱼);
章鱼哥O1:=REF(章鱼哥O,鱼哥A+1);
鱼哥1:=CONST(章鱼哥OTS);
章鱼哥OTS1:=REF(章鱼哥OTS,鱼哥A+1);
鱼哥2:=CONST(章鱼哥OTS1);
章鱼哥O2:=REF(章鱼哥O1,鱼哥A+1);
MM:=IF(CURRBARSCOUNT>鱼哥2,0,1);
DRAWTEXT_FIX(C>O,0,0.07,0,'更多实用指标公式,请关注微信公众号:通达信指标公式'),COLORMAGENTA;
上轨:DRAWLINE(CURRBARSCOUNT=鱼哥2,H,CURRBARSCOUNT=鱼哥1,H,1) COLORBLUE,LINETHICK1;
DRAWLINE(CURRBARSCOUNT=鱼哥2,H,ISLASTBAR,REF(H,鱼哥2-1),1),COLOR0055FF,POINTDOT;
DRAWLINE(CURRBARSCOUNT=鱼哥1,H,ISLASTBAR,REF(H,鱼哥1-1),1),COLORYELLOW,POINTDOT;
AA1:=REF(L,LOWN)=LLV(L,2*LOWN+1);
QY1:=BACKSET(AA1,LOWN+1);
CC1:=FILTER(QY1,LOWN) AND L=LLV(L,LOWN+1);
DRAWICON(CC1,L*0.98,1);
DD1:=BARSLAST(CC1);
章鱼哥P:=IF(CC1,CURRBARSCOUNT,0);
YDB:=IF(DD1,REF(L,DD1),L);
章鱼哥P1:=IF(DD1,REF(章鱼哥P,DD1),章鱼哥P);
章鱼哥Q1:=CONST(章鱼哥P1);
ZDB:=REF(YDB,DD1+1);
章鱼哥P2:=REF(章鱼哥P1,DD1+1);
章鱼哥Q2:=CONST(章鱼哥P2);
下轨:DRAWLINE(CURRBARSCOUNT=章鱼哥Q2,L,CURRBARSCOUNT=章鱼哥Q1,L,1) COLORRED,LINETHICK1;
ZGSTAR:=(上轨+下轨)/2;
ZGEND:=CONST((上轨+下轨)/2);
STARDAY:=IF(章鱼哥Q2<鱼哥2,章鱼哥Q2,鱼哥2);
中轨:DRAWLINE(CURRBARSCOUNT=STARDAY,ZGSTAR,ISLASTBAR,ZGEND,1),COLORFF55BB,LINETHICK1;
DRAWLINE(CURRBARSCOUNT=章鱼哥Q1,L,ISLASTBAR,REF(L,章鱼哥Q1-1),1),COLORMAGENTA,POINTDOT;
DRAWLINE(CURRBARSCOUNT=章鱼哥Q2,L,ISLASTBAR,REF(L,章鱼哥Q2-1),1),COLORCYAN,POINTDOT;
章鱼哥7:=0;
章鱼哥8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
章鱼哥9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
章鱼哥10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
章鱼哥11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
章鱼哥12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
章鱼哥13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
章鱼哥14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
章鱼哥15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
章鱼哥16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
章鱼哥17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
章鱼哥18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
章鱼哥19:=EMA(CLOSE,2)-EMA(CLOSE,150);
买1:=章鱼哥10;
买2:=(章鱼哥11+章鱼哥13+章鱼哥15+章鱼哥17);
卖1:=(章鱼哥12+章鱼哥14+章鱼哥16+章鱼哥18);
B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买'),COLORRED;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),LOW*0.98,1) ;
DRAWICON((ZIG(3,5)<REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)>=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),HIGH*1.01,2);
ZB:=EMA(EMA(章鱼哥3,5),5)*3, COLORSTICK;
章鱼哥A:=IF(章鱼哥9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);
K:=EMA(章鱼哥7,5)*2, , COLORFF00FF;
D:=EMA(K,5), , COLORWHITE;
J:=K*3-D*2, ,COLORYELLOW;
章鱼哥B:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND J>10;
HS:=VOL/CAPITAL*100, , COLORGREEN;
章鱼哥E:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
章鱼哥F:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
DRAWTEXT(章鱼哥11 AND COUNT(章鱼哥11,30)=1,LOW*0.95,'抄底点'),LINETHICK1,COLORFF00FF;
章鱼哥1A:=IF(章鱼哥E>0,章鱼哥E,0);
章鱼哥1B:=IF(章鱼哥14>=200 AND 章鱼哥13>=150,15,IF(章鱼哥14<=-200 AND 章鱼哥13<=-150,-15,章鱼哥16))+60;
章鱼哥1C:=章鱼哥1A>48 AND 章鱼哥1B>60 AND 章鱼哥19<100;
DRAWTEXT(章鱼哥1C AND COUNT(章鱼哥1C,30)=1,LOW*0.95,'大顶(底)') COLORWHITE;
DRAWTEXT(章鱼哥1,L*0.98,'★做T'),COLORYELLOW;
DRAWTEXT(CROSS(MA(C,3),MA(C,9)) AND C>=REF(C,1) AND C>O,L*0.98,'★加一成仓'),COLORMAGENTA;
下降压力线:DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),LINETHICK2;
STICKLINE(CURRBARSCOUNT=2,L,L,10,0),COLORGREEN,;
DRAWNUMBER(ISLASTBAR,REF(L,1),REF(L,1));
使用说明:
无
.点击下方通达信指标公式公众号名片,关注星标后,每天免费获取更多精彩指标公式!
温馨提示
如果你喜欢本文,请分享到朋友圈,想要获得更多信息,请关注我。