几个通达信副图公式改成选股公式

[复制链接]
查看58 | 回复0 | 2022-7-24 06:12:07 | 显示全部楼层 |阅读模式

1

 


 AHC1:=CLOSE*VOL;
 AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22;
起爆:=CROSS(C,通道) AND REF(C,1)*1.05-C<0.008 AND C>O*0.5;
 RRF:=起爆;
STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR000088;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000AA;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000CC;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLORLIMAGENTA;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR770077;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR990099;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORBB00BB;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORFF00FF;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR003300;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR005500;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR007700;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR009900;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR00CC00;
 STICKLINE(RRF,0,3,3,0),COLOR008888;
 STICKLINE(RRF,0,3,3,0),COLOR00AAAA;
 STICKLINE(RRF,0,3,3,0),COLOR00CCCC;
 STICKLINE(RRF,0,3,3,0),COLOR00FFFF;
 DRAWTEXT(RRF,10.5,'黑'),COLORYELLOW;
 DRAWTEXT(RRF,7.5,'马'),COLORYELLOW;
 DRAWTEXT(RRF,4.5,'一'),COLORRED;
 DRAWTEXT(RRF,1.5,'号'),COLORRED;

 

1选股公式........................................................
 AHC1:=CLOSE*VOL;
 AHC22:=EMA((EXPMA(AHC1,23)/EXPMA(VOL,23)+EXPMA(AHC1,54)/EXPMA(VOL,54)+EXPMA(AHC1,108)/EXPMA(VOL,108)+EXPMA(AHC1,316)/EXPMA(VOL,316))/4,34);
通道:=1.0668*AHC22;
起爆:CROSS(C,通道) AND REF(C,1)*1.05-C<0.008 AND C>O*0.5;

854566293.jpg

854566293.jpg

2

 


 A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
 A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
金线王:=EMA(A2,200)*1.118;
金线王2:=EMA(A2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
金K线:=CROSS(C,金线王) AND 条件;
RRF:=金K线,STICK;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR000088;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000AA;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000CC;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLORLIMAGENTA;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR770077;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR990099;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORBB00BB;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORFF00FF;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR003300;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR005500;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR007700;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR009900;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR00CC00;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR666666;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR777777;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR888888;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR999999;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLORDDDDDD;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLORFFFFFF;
 DRAWTEXT(RRF,8.5,'黑'),COLORYELLOW;
 DRAWTEXT(RRF,6,'马'),COLORYELLOW;
 DRAWTEXT(RRF,3.5,'启'),COLORRED;
 DRAWTEXT(RRF,1,'动'),COLORRED;

 

2选股公式......................................................
 A1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));
 A2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),A1);
金线王:=EMA(A2,200)*1.118;
条件:=(C-REF(C,1))/REF(C,1)*100>8;
金K线:CROSS(C,金线王) AND 条件;
 

 

3
 AA05:=MA(C,5);
 AA30:=MA(C,30);
 MA05:=MA(C,5);
 MA10:=MA(C,13);
 MA30:=MA(C,34);
速度5:=SMA(EMA((MA05-REF(MA05,1))/REF(MA05,1),3)*100,3,1);
加速度5:=EMA((速度5-REF(速度5,1)),3);
五日乖离率:=(C-AA05)/AA05*100;
三拾日乖离率:=(C-MA30)/MA30*100;
 MR:=COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
 RRF:=FILTER(MR,10);

 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR000088;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000AA;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000CC;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLOR0000EE;
 STICKLINE(IF(RRF,-120,0),+12,0,3,0),COLORLIMAGENTA;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR770077;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLOR990099;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORBB00BB;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORFF00FF;
 STICKLINE(IF(RRF,-120,0),+9,0,3,0),COLORDD00DD;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR003300;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR005500;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR007700;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR009900;
 STICKLINE(IF(RRF,-120,0),+6,0,3,0),COLOR00CC00;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR666666;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR777777;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR888888;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLOR999999;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLORDDDDDD;
 STICKLINE(IF(RRF,-120,0),+3,0,3,0),COLORFFFFFF;
 DRAWTEXT(RRF,8.5,'黑'),COLORYELLOW;
 DRAWTEXT(RRF,6,'马'),COLORYELLOW;
 DRAWTEXT(RRF,3.5,'必'),COLORRED;
 DRAWTEXT(RRF,1,'抓'),COLORRED;
 

 

3选股公式..........................................................
 AA05:=MA(C,5);
 AA30:=MA(C,30);
 MA30:=MA(C,34);
五日乖离率:=(C-AA05)/AA05*100;
三拾日乖离率:=(C-MA30)/MA30*100;
 MR:COUNT(CROSS(五日乖离率,0),3)>=1 AND 三拾日乖离率>REF(三拾日乖离率,1) AND AA05>REF(AA05,1) AND (C/REF(C,1)-1)*100>5 AND REF(C,1)<AA30;
 

 

4


当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
疯牛线:=EXPMEMA(当日成本,3),LINETHICK1;
龙头线:=EXPMEMA(当日成本,8),LINETHICK2;
慢牛线:=EXPMEMA(当日成本,25),LINETHICK2;
生命线:=EXPMEMA(当日成本,79),LINETHICK3;
牛熊线:=EXPMEMA(当日成本,248),LINETHICK3;
 V2:=EMA(当日成本,13)-EMA(当日成本,34);
 V3:=EMA(V2,5);
 CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
 CYC34:=0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34);
 CYS13:=(CLOSE-CYC13)/CYC13*100;
 CYS34:=(CLOSE-CYC34)/CYC34*100;
 CYC5:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
 CYS5:=(CLOSE-CYC5)/CYC5*100;
 DIVE:=0.01*EXPMA(AMOUNT,5)/EXPMA(VOL,5);
 CYR5:=(DIVE/REF(DIVE,1)-1)*100;
 (REF(CLOSE/REF(CLOSE,1),3)>1.099 OR REF(CLOSE/REF(CLOSE,1),6)>1.099 OR REF(CLOSE/REF(CLOSE,1),4)>1.099 OR REF(CLOSE/REF(CLOSE,1),5)>1.099 OR REF(CLOSE/REF(CLOSE,1),2)>1.099) AND CROSS(龙头线,LOW) AND UPNDAY(慢牛线,3);
 

4选股公式.............................................................

当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
龙头线:=EXPMEMA(当日成本,8),LINETHICK2;
慢牛线:=EXPMEMA(当日成本,25),LINETHICK2;
 XG:REF(CLOSE/REF(CLOSE,1),3)>1.099 OR REF(CLOSE/REF(CLOSE,1),6)>1.099 OR REF(CLOSE/REF(CLOSE,1),4)>1.099 OR REF(CLOSE/REF(CLOSE,1),5)>1.099 OR REF(CLOSE/REF(CLOSE,1),2)>1.099 AND CROSS(龙头线,LOW) AND UPNDAY(慢牛线,3);

 5选股公式...........................................................................

当日成本:=IF(C>REF(C,1),(3*H+4*C+3*OPEN+2*L)/12,(2*H+4*C+3*OPEN+3*L)/12);
 CYC13:=0.01*EXPMA(AMOUNT,13)/EXPMA(VOL,13);
 CYC34:=0.01*EXPMA(AMOUNT,34)/EXPMA(VOL,34);
 CYS13:=(CLOSE-CYC13)/CYC13*100;
 CYS34:=(CLOSE-CYC34)/CYC34*100;
 XG:CROSS(EXPMEMA(当日成本,25),L) AND MA(C,5)>MA(C,30) AND HHV(CYS13,15)>10 AND HHV(CYS34,18)>18 AND EXPMEMA(当日成本,8)>EXPMEMA(当日成本,25) ;

 6选股公式.........................................................................

 M:=500;
 MA13:=MA(C,13);
 MA34:=MA(C,34);
 MA55:=MA(C,55);
 YY1:=O<MA13 AND C>MA13;
 YY2:=O<MA34 AND C>MA34;
 YY3:=O<MA55 AND C>MA55;
 YY4:=C/O>=M;
 YY5:=V>HHV(H,10);
 YY6:=MA13>=REF(MA13,1);
 AQ:YY1 AND YY2 AND YY3 AND YY4 AND YY5 AND YY6;
 

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则