专栏名称: 游资八戒
财经股票基金
目录
相关文章推荐
北美留学生观察  ·  四大名著迎来王炸!特装刷边收藏版:赠6大好礼 ... ·  11 小时前  
北美留学生观察  ·  中国AI“三叉戟”震惊全球!DeepSeek ... ·  11 小时前  
北美留学生观察  ·  救命!DeepSeek惨遭“围剿”!美国对中 ... ·  11 小时前  
北美留学生观察  ·  今年不吐槽了!这届春晚其实,“杀疯了” ·  2 天前  
北美留学生观察  ·  留学生10大显眼包行为,玩这么野真的好吗? ·  4 天前  
51好读  ›  专栏  ›  游资八戒

【妖股操盘套装】——1主图2幅图(2选股)

游资八戒  · 公众号  ·  · 2024-07-26 23:25

正文

注意:本文属于八戒改编指标公式,源码可以用于通达信软件,第一部分源码属于主图或副图;第二部分属于选股公式源码(多个选股公式请分别使用);第三部分属于图片示例。

注意2:防止源码复制粘贴出错,请先把源码复制到WORD文档排序,再从WORD文档中复制源码!




【龙头板块】商业航天。7月23日,从中国航天科技集团六院获悉,未来用于载人登月的新一代载人运载火箭,其三级液氢液氧发动机近日完成了高空模拟环境长程试验,验证了该发动机在太空中长时间工作的可行性,试验取得圆满成功。


随着“航天强国”建设进入实质性阶段,2024年,我国有望出台更多支持航天产业发展的政策,向航天产业倾斜更多资源。商业航天发展至今,从基础设施、企业主体构成、商业应用等方面取得了一系列进展,基本完成了从“0到1”的验证,商业航天的逻辑逐步形成闭环,产品具备了交付能力。


龙头

补涨



第一部分 【妖股操盘主图公式】 手机/电脑


【妖股操盘主图公式】由5个部分组成:

1、代表支撑压力的色带,咖啡色带代表支撑,青色带代表压力;

2、K线由红绿2色组成,红色K线代表多头K线,绿色K代表空头K线;

3、每个主升波段由绿色的压力线 和 橙色的75日均线来表示

4、关键K线(2个选股公式)


【龙头波段】套装主图编写如下:

DRAWKLINE(H,O,L,C);


MA75:MA(CLOSE,75)LINETHICK3,COLOR0080FF;


DRAWTEXT(ISLASTBAR,MA75,'◆MA75')LINETHICK9,COLOR0080FF;


CC0:=IF(CURRBARSCOUNT<18,CONST(REF(C,1)),DRAWNULL);


止损:0.977*CC0,LINETHICK3,COLORGREEN;


DRAWTEXT(ISLASTBAR,止损,'止损')LINETHICK3,COLORGREEN;


八戒1:=1;


八戒02:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);


八戒03:=EMA(CLOSE,3);


八戒04:=(2*CLOSE+LOW+HIGH)/4*八戒1;


八戒05:=八戒02-八戒03;


JJJ:=IF(DYNAINFO(8)>0.01,0.01*DYNAINFO(10)/DYNAINFO(8),DYNAINFO(3));


DDD:=(DYNAINFO(5)<0.01 || DYNAINFO(6)<0.01);


JJJT:=IF(DDD,1,(JJJ(DYNAINFO(6)-0.01)));


一:=IF(JJJT,0.01*EXPMA(AMOUNT,7)/EXPMA(V,7),EMA((H+L+C)/3,7));


二:=IF(JJJT,0.01*EXPMA(AMOUNT,14)/EXPMA(V,14),EMA((H+L+C)/3,14));


三:=IF(JJJT,0.01*EXPMA(AMOUNT,21)/EXPMA(V,21),EMA((H+L+C)/3,21));


四:=IF(JJJT,0.01*EXPMA(AMOUNT,28)/EXPMA(V,28),EMA((H+L+C)/3,28));


五:=IF(JJJT,0.01*EXPMA(AMOUNT,35)/EXPMA(V,35),EMA((H+L+C)/3,35));


六:=IF(JJJT,0.01*EXPMA(AMOUNT,42)/EXPMA(V,42),EMA((H+L+C)/3,42));


七:=IF(JJJT,0.01*EXPMA(AMOUNT,49)/EXPMA(V,49),EMA((H+L+C)/3,49));


八:=IF(JJJT,0.01*EXPMA(AMOUNT,98)/EXPMA(V,98),EMA((H+L+C)/3,98));


九:=IF(JJJT,0.01*EXPMA(AMOUNT,147)/EXPMA(V,147),EMA((H+L+C)/3,147));


均:=IF(JJJT,0.01*EXPMA(AMOUNT,1)/EXPMA(VOL,1),EMA((HIGH+LOW+CLOSE)/3,1))COLORWHITE,NODRAW;


虚高:=HHV(H,52),COLORFF5BAD,NODRAW;


上轨:HHV(均,49),COLOR009700,NODRAW;


下轨:LLV(均,14),COLOR9E51CC,NODRAW;


虚低:=LLV(L,27),COLORFF5BAD,NODRAW;


压:=HHV(均,147)POINTDOT,LINETHICK3,COLORFFBC79;


STICKLINE(上轨


STICKLINE(下轨>虚低,下轨,虚低,5,0),COLOR282242;{下影}


STICKLINE(下轨


STICKLINE(压>REF(压,1),压,虚高,5,0),COLOR27004F;{突破上影};


A00:=(L+H+C*2)/4;


A01:=EMA(A00,14),COLORBLUE,LINETHICK2;


A002:=EMA(A00,25);


A1X0:=(A01-REF(A01,1))/REF(A01,1)*100;


A2X0:=(A002-REF(A002,1))/REF(A002,1)*100;


出击:IF(A1X0>=0 AND BARSLAST(CROSS(A1X0,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X0,0))),DRAWNULL),COLORMAGENTA,LINETHICK2;


逃遁:IF(A1X0<0 AND BARSLAST(CROSS(0,A1X0))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X0))),DRAWNULL),COLORGREEN,LINETHICK2;


X1:=(C+L+H)/3; 


X2:=EMA(X1,6); 


X3:=EMA(X2,5);


DRAWICON(CROSS(X2,X3),L*0.97,7); 


DRAWICON(CROSS(X3,X2),H*1.02,8); 


A:EMA(C,21)COLORBLUE,LINETHICK3;


B:=A


IF(B-1,A,DRAWNULL)COLORRED,LINETHICK3;


八戒AA:=EMA(C,3) > EMA(C,21);


八戒BB:=EMA(C,3) < EMA(C,21);


CC:= EMA(C,3) > EMA(C,8);


CC1:=EMA(C,3) < EMA(C,8);


DD:=CLOSE


STICKLINE(八戒AA,H,L,0,0),COLOR007FFF;


STICKLINE(八戒AA,O,C,3,1),COLOR007FFF;


STICKLINE(八戒AA AND DD,O,C,3,0),COLOR007FFF;


STICKLINE(八戒BB,H,L,0,0),COLORGREEN;


STICKLINE(八戒BB,O,C,3,1),COLORGREEN;


STICKLINE(八戒BB AND DD,O,C,3,0),COLORGREEN;


STICKLINE(八戒BB AND CC,H,L,0,1),COLORF00FF0;


STICKLINE(八戒BB AND CC,O,C,3,1),COLORF00FF0;


STICKLINE(八戒BB AND CC AND DD,O,C,3,0),COLORF00FF0;


STICKLINE(八戒AA AND CC1,H,L,0,0),COLORBLUE;


STICKLINE(八戒AA AND CC1,O,C,3,1),COLORBLUE;


STICKLINE(八戒AA AND CC1 AND DD,O,C,3,0),COLORBLUE;


买线:=MA(CLOSE,9),LINETHICK2;


卖线:=MA(CLOSE,20);


BU:=CROSS(买线,卖线);


SEL:=CROSS(卖线,买线);


DRAWTEXT(BU,L-0.1,'建仓')COLORYELLOW;


DRAWTEXT(SEL,H+0.1,'空仓');


A2:=(C-REF(C,1))/REF(C,1)*100<1.02;


A3:=H>MA(C,5)*1.12;


八戒AAA:= A2 AND A3;


DRAWTEXT(八戒AAA,H*1.05,'卖点'),COLORWHITE;


EMA13:=EMA(C,13),COLOR0000FF,LINETHICK2;


EMA34:=EMA(C,34),COLORYELLOW;


EMA55:=EMA(C,55),COLORFF00FF;


EMA120:=EMA(C,120),COLORFFCC66;


游资八戒1:=EMA55>EMA34 AND EMA34>EMA13;


游资八戒2:=BARSLAST((C-EMA13)/EMA13*100


游资八戒3:=EMA13>=REF(EMA13,2);


游资八戒4:=COUNT(CROSS(C,EMA13),游资八戒2)=1;


游资八戒5:=游资八戒1 AND 游资八戒2 AND 游资八戒3 AND 游资八戒4;


游资八戒6:=游资八戒5 AND FILTER(游资八戒5,10);


DRAWTEXT(游资八戒6,L-0.09,'启动'),COLORYELLOW;


STICKLINE(游资八戒6,H,L,3,0),LINETHICK2,COLORYELLOW;


八戒BR1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5) ,5)=5;


八戒BR2:=ABS((EMA13-EMA34)+(EMA34-EMA55))/C<0.2;


八戒BR3:=C>EMA55 AND (REF(C,1)


八戒BR4:=八戒BR1 AND 八戒BR2 AND 八戒BR3;


DRAWTEXT(八戒BR4 AND FILTER(八戒BR4,10),L-0.09,'上升'),COLOR00C5FF;


STICKLINE(八戒BR4 AND FILTER(八戒BR4,10),O,C,3,1),LINETHICK2,COLOR00C5FF;


八戒CR1:=(C-REF(C,1))/REF(C,1)*100>0.5;


八戒CR2:=V>MA(V,5)*0.6;


八戒CR3:=COUNT(CROSS(EMA13,EMA55),3)=1;


八戒CR4:=ABS(EMA34-EMA55)/EMA55<0.03;


八戒CR5:=EMA55<=EMA120 AND EMA55>=REF(EMA55,1);


八戒CR6:=FILTER(八戒CR1 AND 八戒CR2 AND 八戒CR3 AND 八戒CR4 AND 八戒CR5,2);


STICKLINE(八戒CR6,O,C,3,1),LINETHICK2,COLORF00FF0;


DRAWTEXT(八戒CR6,L-0.09,'涨升'),COLORF00FF0;


八戒DR1:=EMA13>EMA34 AND EMA34


八戒DR2:=BARSLAST(CROSS(C,EMA55) );


八戒DR3:=H=HHV(H,八戒DR2);


八戒DR4:=BARSLAST(八戒DR3);


八戒DR5:=COUNT(O>C AND CEMA55 AND BETWEEN((C-EMA55)/EMA55,0,0.02),八戒DR4)=1;


八戒DR6:=C>REF(C,1) ;


八戒DR7:= 八戒DR1  AND 八戒DR5 AND 八戒DR6 ;


八戒DR8:=八戒DR7 AND FILTER(八戒DR7 ,10);


DRAWTEXT(八戒DR8,L-0.09,'出击'),COLORD6BA63;


ER:=BARSLAST(REF(CROSS(EMA55,EMA34),1)) AND CROSS(EMA34,EMA55);


DRAWTEXT(ER,L-0.09,'金叉'),COLOR0099FF;


FR:=BARSLAST(REF(CROSS(EMA34,EMA13),1)) AND CROSS(EMA13,EMA34);


DRAWTEXT(FR,L-0.09,'加仓'),COLORWHITE;


八戒GR1:=BARSLAST(BETWEEN("BIAS.BIAS2"(6,13,24),0,5) );


八戒GR2:=EMA13>EMA34 AND EMA34>EMA55 AND EMA13>REF(EMA13,1);


八戒GR3:=COUNT("BIAS.BIAS2"(6,13,24)>10 AND H=HHV(H,八戒GR1),八戒GR1);


八戒GR4:=H=HHV(H,八戒GR1);


八戒GR5:="MACD.MACD"(12,26,9)


八戒GR6:=八戒GR2 AND 八戒GR3 AND 八戒GR4;


八戒GR7:=八戒GR2 AND 八戒GR3 AND 八戒GR4 AND 八戒GR5;


DRAWTEXT(八戒GR6 AND 八戒GR7,H+0.13,'了结'),COLOR00FF00;


HR2:=EMA13>=REF(EMA13,3) AND EMA34>=REF(EMA34,1) AND EMA55>=REF(EMA55,1) AND CROSS(C,EMA13) AND CROSS(C,EMA34) AND CROSS(C,EMA55);


DRAWTEXT(HR2 AND FILTER(HR2,10),L-0.3,'推进'),COLORFFC8FF;


STICKLINE(HR2 AND FILTER(HR2,10),O,C,3,1),LINETHICK2,COLORFFC8FF; 


EMA3:=EMA(C,3),COLORWHITE; 


EMA8:=EMA(C,8),COLORYELLOW; 


EMA21:=EMA(C,21),COLORFF00FF; 


EMA43:=MA(C,43),COLORFFCC66; 


八戒2:=(2*CLOSE+HIGH+LOW)/4; 


八戒3:=IF(YEAR>=2099 AND MONTH>2,0,1); 


八戒4:=LLV(LOW,5); 八戒5:=HHV(HIGH,4); 


散户:=EMA((八戒2-八戒4)/(八戒5-八戒4)*100,4)*八戒3; 


庄家:=EMA(0.667*REF(散户,1)+0.333*散户,2)*八戒3; 


DRAWTEXT(CROSS(散户,庄家) AND 散户<30,L-0.08,'←提示低吸'),COLORLIRED; 


DRAWTEXT(CROSS(庄家,散户) AND 散户>70,H+0.08,'←提示高抛'),COLORGREEN; 


DRAWICON(CROSS(散户,庄家) AND 散户<30,L-0.05,1); 


DRAWICON(CROSS(庄家,散户) AND 散户>70,H+0.05,2); 


八戒9:=CLOSE-REF(CLOSE,5); 


八戒A:=EMA(EMA(八戒9,5),5)/EMA(EMA(ABS(八戒9),5),5); 


八戒C:=EMA(EMA(八戒9,20),20)/EMA(EMA(ABS(八戒9),20),20); 


卖出:=IF(八戒A>0 AND CROSS(八戒C,八戒A),90,100); 


DRAWICON(卖出<0,H+0.05,2); 买线0:=EMA(CLOSE,2); 


卖线0:=EMA(SLOPE(CLOSE,21)*20+CLOSE,42); 


B1:IF(CROSS(买线0,卖线0),L-0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORMAGENTA; 


S1:IF(CROSS(80,RSI)*30,H+0.02,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW; 


VC:=((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100+(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100+(CLOSE-MA (CLOSE,32))/MA(CLOSE,32)*100)/3;


S2:=IF(VC>20 AND FILTER(VC< REF(VC,1),5),H+0.02,DRAWNULL),CIRCLEDOT,LINETHICK3,COLORGREEN; 


A0:=(L+H+C*2)/4;


A1:EMA(A0,14)COLORBLUE,LINETHICK2;


A02:=EMA(A0,25)COLORLIBLUE,LINETHICK2;


A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;


A2X:=(A02-REF(A02,1))/REF(A02,1)*100,NODRAW;


看多:IF(A1X>=0 AND BARSLAST(CROSS(A1X,0))>0,REF((C+O)/2,BARSLAST(CROSS(A1X,0))),DRAWNULL),COLORMAGENTA{,LINETHICK2};


逃顶:IF(A1X<0 AND BARSLAST(CROSS(0,A1X))>0,REF((C+O)/2,BARSLAST(CROSS(0,A1X))),DRAWNULL),COLORCYAN,{LINETHICK2};


买入持股:IF(A1X>=0,A1,DRAWNULL)COLORRED,LINETHICK3;


卖出空仓:IF(A1X<0 AND A2X<0,A1,DRAWNULL)COLORGREEN,LINETHICK3;


STICKLINE(CROSS(A1X,0),H,L,0,0 ),COLOR9933FF;


STICKLINE(CROSS(A1X,0),C,O,3,0 ),COLOR0000CC; 


STICKLINE(CROSS(A1X,0),C,O,1,0 ),COLOR0033FF; 


STICKLINE(CROSS(0,A1X),L,H,0,0 ),COLOR66CC33;



第二部分【暴力妖股】副图①手机/电脑


【暴力妖股】副图,以暴力妖股、异常交易、涨停攻击、盘中炸板4部分组成


【暴力妖股】副图①编写如下:

AA2:=V/REF(MA(V,5),1);

AA:=(C-REF(C,1))/REF(C,1)*100; 

八戒1:=H;

八戒2:=REF(H,1);

八戒3:=C;

八戒4:=L;

AA1:=REF(C,1);



MA1:=MA(八戒3,60);

MA2:=八戒3>MA(八戒3,3);

MA3:=八戒3>MA(八戒3,5);

MA4:=八戒3>MA(八戒3,13);

涨停S:=(八戒3-REF(八戒3,1))/REF(八戒3,1)*100>=9.93;

A1:=BARSLAST(涨停S);


DIF:=EMA(八戒3,12)-EMA(八戒3,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

A:=CROSS(八戒3,MA1) AND MA2 AND MA3 AND MA4  AND A1<=7 AND 八戒1>八戒2  AND (MACD<0 OR (MACD>0 AND REF(MACD,1)>0) )  ;



STICKLINE(A, 0,10, 0.2, 0),COLORLIMAGENTA;

STICKLINE(A, 0,5, 0.8, 0),COLORYELLOW;

DRAWTEXT(A,7.4,'★暴力妖股'),COLORYELLOW;

DRAWICON(A,10,17);

DRAWICON(A,11,18);



DRAWTEXT( A=1 AND (AA2>=5 OR AA>=6),4.3,'★异常交易'),COLORMAGENTA;

DRAWTEXT( A=1 AND AA>=9.91,2.6,'★涨停攻击'),COLORRED;

DRAWTEXT( A=1 AND 八戒1/AA1>=1.097 AND 八戒1>八戒3,2.6,'★盘中炸板'),COLORGREEN;



第二部分【资金动能】副图② 手机/电脑

【资金动能】副图编写如下:

VAR0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;

VAR3:=SMA(VAR0,3,1);

VAR1:=SMA(VAR3,4,1)-10;

VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;

VAR5:=SMA(VAR4,3,1);

VAR2:=SMA(VAR5,4,1)-90;

STICKLINE(REF(VAR1,1)

STICKLINE(REF(VAR1,1)>VAR1,VAR1,REF(VAR1,1),5,0),COLOR00FF00;

STICKLINE(REF(VAR2,1)>VAR2,VAR2,REF(VAR2,1),10,0),COLOR0000FF;

STICKLINE(REF(VAR2,1)

REFLINE:0;

DIFF:=EMA(CLOSE,3)-EMA(CLOSE,8);

DEA:=EMA(DIFF,5);

MACD := 2*(DIFF-DEA);

X1:=EMA(DIFF,5)*20;

均距:=((EMA(CLOSE,3)-EMA(CLOSE,8)))*50;

X3:IF(均距>0,均距,0),POINTDOT,COLORRED;

X4:IF(均距<0,均距,0),POINTDOT,COLORGREEN;

STICKLINE(均距>0,0,均距,2.8,0),COLORRED;

STICKLINE(均距>0,0,均距,2.8,0),COLOR000088;

STICKLINE(均距>0,0,均距,2.6,0),COLOR000099;

STICKLINE(均距>0,0,均距,2.4,0),COLOR0000AA;

STICKLINE(均距>0,0,均距,2.2,0),COLOR0000BB;

STICKLINE(均距>0,0,均距,2,0),COLOR0000CC;

STICKLINE(均距>0,0,均距,1.8,0),COLOR0000DD;

STICKLINE(均距>0,0,均距,1.5,0),COLOR0000EE;

STICKLINE(均距>0,0,均距,1.0,0),COLOR0000FF;

STICKLINE(均距>0,0,均距,0.0,0),COLOR0000FF;

STICKLINE(均距<0,0,均距,2.8,0),COLORGREEN;

STICKLINE(均距<0,0,均距,2.8,0),COLOR007700;

STICKLINE(均距<0,0,均距,2.6,0),COLOR008800;

STICKLINE(均距<0,0,均距,2.6,0),COLOR009900;

STICKLINE(均距<0,0,均距,2.4,0),COLOR00BB00;

STICKLINE(均距<0,0,均距,2.0,0),COLOR00CC00;

STICKLINE(均距<0,0,均距,1.8,0),COLOR00DD00;

STICKLINE(均距<0,0,均距,1.5,0),COLOR00EE00;

STICKLINE(均距<0,0,均距,1,0),COLOR00FF00;

STICKLINE(均距<0,0,均距,0,0),,COLOR00FF00;

资金动能A:均距,COLORYELLOW,LINETHICK2;

资金动能B:X1,COLORFFFF00,LINETHICK2;

DRAWICON((CROSS(资金动能A,资金动能B) AND 资金动能B

DRAWICON((CROSS(资金动能B,资金动能A) AND 资金动能A>0.25),资金动能A,2);




第三部分【选股公式】 手机/电脑


【暴力妖股】选股①编写如下:

AA2:=V/REF(MA(V,5),1);

AA:=(C-REF(C,1))/REF(C,1)*100; 

八戒1:=H;

八戒2:=REF(H,1);

八戒3:=C;

八戒4:=L;

AA1:=REF(C,1);



MA1:=MA(八戒3,60);

MA2:=八戒3>MA(八戒3,3);

MA3:=八戒3>MA(八戒3,5);

MA4:=八戒3>MA(八戒3,13);

涨停S:=(八戒3-REF(八戒3,1))/REF(八戒3,1)*100>=9.93;

A1:=BARSLAST(涨停S);


DIF:=EMA(八戒3,12)-EMA(八戒3,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

暴力妖股:CROSS(八戒3,MA1) AND MA2 AND MA3 AND MA4  AND A1<=7 AND 八戒1>八戒2  AND (MACD<0 OR (MACD>0 AND REF(MACD,1)>0) ) ;



【异常交易】选股编写如下:

AA2:=V/REF(MA(V,5),1);

AA:=(C-REF(C,1))/REF(C,1)*100; 

八戒1:=H;

八戒2:=REF(H,1);

八戒3:=C;

八戒4:=L;

AA1:=REF(C,1);



MA1:=MA(八戒3,60);

MA2:=八戒3>MA(八戒3,3);

MA3:=八戒3>MA(八戒3,5);

MA4:=八戒3>MA(八戒3,13);

涨停S:=(八戒3-REF(八戒3,1))/REF(八戒3,1)*100>=9.93;

A1:=BARSLAST(涨停S);


DIF:=EMA(八戒3,12)-EMA(八戒3,26);

DEA:=EMA(DIF,9);

MACD:=(DIF-DEA)*2;

暴力妖股:=CROSS(八戒3,MA1) AND MA2 AND MA3 AND MA4  AND A1<=7 AND 八戒1>八戒2  AND (MACD<0 OR (MACD>0 AND REF(MACD,1)>0) )  ;




异常交易: 暴力妖股=1 AND (AA2>=5 OR AA>=6);