通达信首板五日油副图 向前测试一年仅3只全是大牛股 源码 附图

{四去+流通盘}
剔停牌:=NOT(DYNAINFO(4)=0);
剔ST:=NOT(NAMELIKE('S') OR NAMELIKE('*'));
剔创业板:=NOT(CODELIKE('3'));
剔科创板:=NOT(CODELIKE('688'));
SQ:=剔停牌 AND 剔ST AND 剔创业板 AND 剔科创板;
XIAO:=CAPITAL<100000000;
DA:=CAPITAL>1;
LTP:=DA AND XIAO;
SQLT:=SQ AND LTP;
{底部涨幅}
TT:=BARSLAST(WINNER(C)*100<1);
D18:=REF(C/REF(C,TT)<=1.8,1);
D15:=REF(C/REF(C,TT)<=1.5,1);
D13:=REF(C/REF(C,TT)<=1.3,1);
D3:=REF(C/REF(C,TT)<=3,1);

{前高}
TY:=C;
A10:=REF(TY,10)=HHV(TY,2*10+1); B10:=FILTER(A10,10); C10:=BACKSET(B10,10+1); HD:=FILTER(C10,10);
A20:=REF(TY,10)=LLV(TY,2*10+1); B20:=FILTER(A20,10); C20:=BACKSET(B20,10+1); LD:=FILTER(C20,10);
前期高位:=REF(C,BARSLAST(HD));
前期低位:=REF(C,BARSLAST(LD));
次前高位:=REF(C,SUMBARS(HD,2)-1);
KZ0:=CROSS(C,前期高位) AND CROSS(C,MA(C,60)*1.015);

KZ:=C/REF(C,1)>1.095 AND C=H AND V/REF(MA(V,5),1)>2.5 AND V>=REF(V,1)*1.91 AND KZ0;

{均线多头}
MA1:=MA(C,5);
MA2:=MA(C,10);
MA3:=MA(C,20);
MA4:=MA(C,60);
JUN:=MA1>MA2 AND MA2>=MA3 AND (MA3>MA4 OR MA4>=REF(MA4,1));
JUN1:=MA1>MA2 AND MA2>MA3;
角度MA1:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416>0;
角度MA2:=ATAN((MA2/REF(MA2,1)-1)*100)*180/3.1416>0;
角度MA3:=ATAN((MA3/REF(MA3,1)-1)*100)*180/3.1416>0;
角度MA4:=ATAN((MA4/REF(MA4,1)-1)*100)*180/3.1416>=0;
角度5:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
角度MA601:=角度MA4>=-5;
多头:=JUN AND 角度MA1 AND 角度MA2 AND 角度MA3 AND 角度MA4;
多头全:=JUN1 AND 角度MA1 AND 角度MA2 AND 角度MA3 AND 角度MA601;
JUNK:=MA1<MA2 AND MA2<MA3 AND MA3<MA4;
空头:=REF(EVERY(JUNK,3),1);
多头3:=EVERY(多头 OR 多头全 ,5);

{高控盘}
VAR1:=EMA(EMA(CLOSE,13),13);
VAR2:=100*WINNER(CLOSE*0.95);
KP:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
GDKP:=VAR2>50 AND COST(85)<CLOSE AND KP>0;
控盘程度:=EVERY(GDKP,3);
高控盘天:=COUNT(GDKP,BARSLAST(CROSS(控盘程度,100)))>=10 AND BARSLAST(CROSS(控盘程度,100))>=40;

{粘合横盘}
MAVARMA:=MAX(MA1,MAX(MA2,MA3));
MIN_MA:=MIN(MA1,MIN(MA2,MA3));
粘合:=(MAVARMA-MIN_MA)/MIN_MA*100;
粘合度:=EMA(MA(EMA(粘合,2),2),3);
粘合5:=EVERY(粘合度<=6.5,5);
涨幅:=SUM((C/REF(C,1)-1)*100,5)/5;{5日涨幅};
涨幅5:=EMA(涨幅,3)>-1 AND EMA(涨幅,3)>-1<=2;


{粘合度60}
MAVARMA1:=MAX(MA1,MAX(MA2,MAX(MA3,MA4)));
MIN_MA1:=MIN(MA1,MIN(MA2,MIN(MA3,MA4)));
粘合60:=(MAVARMA1-MIN_MA1)/MIN_MA*100;

{控盘}
A1:=AMOUNT/VOL/100;
A2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
A3:=SUM(AMOUNT,40)/A1/100;
A4:=SUM(AMOUNT,80)/A1/100;
B1:=DMA(A2,VOL/A3);
B2:=DMA(A2,VOL/A4);
B3:=(CLOSE-B1)/B1*100;
B4:=(CLOSE-B2)/B2*100;
B5:=MAX(B3,B4);




KZ1:=BARSLAST(KZ)=5 AND EVERY(C>MA1,5);
KZ2:=EVERY(多头,5) AND EVERY(C/REF(C,1)<=1.05,5);
KZ3:=COUNT(GDKP,5)>=2 AND COUNT(角度5>=50,5)>=4;
ZK4:=C/REF(C,5)<=1.12;

KZD:=(C/REF(C,1))<=1.03 AND (C/REF(C,1))>=0.97;
ZK5:=COUNT(KZD,5)>=4 AND COUNT(C/REF(C,1)>1.095 AND C=H,30)<=1;
ZK6:=BARSLAST(CROSS(B5,0))=5;


XG:KZ1 AND KZ2 AND KZ3 AND ZK4 AND ZK5 AND ZK6 AND D18 AND SQLT;



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

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

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