本指标属于低吸抄底类指标公式,无未来,指标全套源码,无未来函数,信号收盘后不飘移
注:主图会显示有未来函数,因为主图用到了九转,九转本来属于未来函数,用来判断趋势转折,仅供参考研判主图主号出现9后才会固定,望周知,出现9,意味着可能会转折,但并不是绝对了,并不影响副图的信号主图上的攻击线和趋势线无未来函数,也是用来研判趋势,注意攻击线的方向、趋势线的方向、以及攻击线上穿趋势线
主图
DRAWTEXT_FIX(1,0.0,0.0,0,GNBLOCK)COLORYELLOW;
DRAWTEXT_FIX(1,0.96,0.99,0,HYBLOCK),COLORYELLOW;
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
VARR1:=(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;
VARR2:=MA(VARR1,17);
A1:=C>REF(C,4);
A2:=BARSLASTCOUNT(A1);
A3:=REF(A2,1)=8 AND A2>REF(A2,1);
A4:=REF(BETWEEN(A2,5,8),1) AND A2<REF(A2,1);
A5:=ISLASTBAR AND BETWEEN(A2,1,8);
A6:=(BACKSET(A3>0,9) OR BACKSET(A4>0,A2+1)*0 OR BACKSET(A5>0,A2))*A2;
DRAWTEXT(A6>0,H+H*0.005,VAR2STR(A6,0)),COLOR00FFFF;
DRAWTEXT(A2=9,H+H*0.005,'9'),COLORGREEN;
B1:=C<REF(C,4);
B2:=BARSLASTCOUNT(B1);
B3:=REF(B2,1)=8 AND B2>REF(B2,1);
B4:=REF(BETWEEN(B2,5,8),1) AND B2<REF(B2,1);
B5:=ISLASTBAR AND BETWEEN(B2,1,8);
B6:=(BACKSET(B3>0,9) OR BACKSET(B4>0,B2+1)*0 OR BACKSET(B5>0,B2))*B2;
DRAWTEXT(B6>0,L-L*0.005,VAR2STR(B6,0)),COLORGREEN;
DRAWTEXT(B2=9,L-L*0.005,'9'),COLORRED;
攻击线:VARR1,LINETHICK2,COLORRED;
趋势线:VARR2,LINETHICK2,COLORYELLOW;
副图
去ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
去除创业板:=IF(CODELIKE('300'),0,1);
去除科创板:=IF(CODELIKE('688'),0,1);
去除北交所:=IF(CODELIKE('8'),0,1);
VAR0:=去ST AND 去除科创板 AND 去除北交所;
VAR1:=FRACPART(L)*100=0 OR FRACPART(L)*100=11 OR
FRACPART(L)*100=22 OR FRACPART(L)*100=33
OR FRACPART(L)*100=44 OR FRACPART(L)*100=55
OR FRACPART(L)*100=66 OR FRACPART(L)*100=77
OR FRACPART(L)*100=88 OR FRACPART(L)*100=99;
VAR2:=L=LLV(L,100) AND C<50 ;
VAR3:=BARSLASTCOUNT(C<REF(C,4))>7;
抄底信号:=VAR0 AND VAR1 AND VAR2 ;
STICKLINE(抄底信号,0,1,2,0),COLORYELLOW;
选股
去ST:=NAMELIKE('ST')=0 AND NAMELIKE('*ST')=0 AND NAMELIKE('SST')=0 AND NAMELIKE('S*ST')=0;
去除创业板:=IF(CODELIKE('300'),0,1);
去除科创板:=IF(CODELIKE('688'),0,1);
去除北交所:=IF(CODELIKE('8'),0,1);
VAR0:=去ST AND 去除科创板 AND 去除北交所;
VAR1:=FRACPART(L)*100=0 OR FRACPART(L)*100=11 OR
FRACPART(L)*100=22 OR FRACPART(L)*100=33
OR FRACPART(L)*100=44 OR FRACPART(L)*100=55
OR FRACPART(L)*100=66 OR FRACPART(L)*100=77
OR FRACPART(L)*100=88 OR FRACPART(L)*100=99;
VAR2:=L=LLV(L,100) AND C<50 ;
VAR3:=BARSLASTCOUNT(C<REF(C,4))>7;
抄底密码:VAR0 AND VAR1 AND VAR2 ;