您现在的位置:程序化交易>> 股票公式>> 通达信>> 通达信公式>>正文内容

大魔王副图指标公式源码[通达信公式]

指标公式分析及使作参考建议:

 

根据给出的指标条件,我们可以得到以下几个魔王条件:

魔王1:Q1 AND Q2 AND C>REF(C,1)*0.91 AND C<REF(C,1)AND INDEXC<REF(INDEXC,1) AND REF(C>REF(C,1),1)
魔王2:BL_01 AND BL_02 AND BL_03 AND BL_05 AND BL_06 AND BL_07 AND BL_08
魔王3:WINNER(C)100<10 AND (WINNER(C1.25)-WINNER(C))*100<20AND C/REF(C,1)>1.0138 AND V/REF(V,1)<1
魔王4:IF(DEA AND REF(CLOSE,1)<=COST(5),1,0) AND C<MA(C,60)
魔王5:BARSLASTCOUNT(REF(JS4,1))=1
魔王6:BARSLASTCOUNT(SHYY)=1
魔王7:BARSLASTCOUNT(SHY)=1
魔王8:cxh31 AND cxh32 AND cxh33 AND cxh34
魔王9:FILTER(YHSY,12)
魔王10:CROSS(AA1,-26) AND BB1
针对以上的魔王条件,我们可以给出以下思路和操作建议:

对于魔王1,条件是指标Q1、Q2以及价格变动满足一定的范围。可以考虑追踪这些股票,并在满足条件时进行买入操作。

魔王2是一种技术指标组合,通过多个技术指标的综合判断来选取股票。可以根据具体的选股结果进行买入操作。

魔王3是根据股票的走势以及成交量变化进行判断,同时还需要满足一定的价格涨幅条件。可以关注这些股票,并在满足条件时进行买入操作。

魔王4是根据股票的均线以及MACD指标判断是否买入。可以根据股票的情况,观察MACD的走势并结合其他条件进行买入操作。

魔王5、魔王6和魔王7都是根据特定条件下的选股结果进行买入操作。可以关注这些选股结果,并在满足条件时进行买入操作。

魔王8是根据几个技术指标的组合判断是否买入,并且需要满足一定的条件。可以观察这些指标的走势,并在满足条件时进行买入操作。

魔王9是根据一组条件筛选出股票进行买入。可以关注这些筛选结果,并在满足条件时进行买入操作。

魔王10是根据一组条件判断是否买入股票。可以观察这些条件的满足情况,并在满足条件时进行买入操作。

总之,以上是根据给出的魔王条件所得到的思路和操作建议。需要注意的是,具体的操作决策还需要考虑市场行情、个人风险承受能力等因素,建议在进行实际操作前充分了解相关知识并谨慎评估风险。

 

源码:

VBR:=C<REF(C,4);NT0:=BARSLASTCOUNT(VBR);TJ21:=NT0=6 ;底6:=COUNT(NT0=6,5)=1;VBR1:=DMA(CLOSE,VOL/SUM(VOL,34));VBR2:=DMA(CLOSE,VOL/SUM(VOL,13));VBR3:=(CLOSE-VBR1)/VBR1*100;VBR4:=(CLOSE-VBR2)/VBR2*100;Y1:=VBR4<=-17 AND VBR3<=-25;去除ST:=IF(NAMELIKE('ST') OR NAMELIKE('*ST'),0,1);去除停牌:=DYNAINFO(4)>0;去除:=去除ST AND 去除停牌;Q1:=底6 AND Y1 AND 去除;超卖区:=MA((CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100 ,2);Q2:=超卖区<-20;BL_01:=O/HHV(C,30)<0.78;BL_02:=C/MA(C,50)<0.78;BL_03:=O=LLV(O,30);BL_04:=C/SMA(C,13,1)-1;BL_05:=REF(BL_04,1)<-0.13;BL_06:=REF(BL_04,1)/BL_04>1.1582;BL_07:=REF(C,1)<=COST(5);BL_08:=COUNT(H>L*1.05,5)>2;DIF:=(CLOSE-SMA(CLOSE,7,1))/SMA(CLOSE,7,1)*(-100);DEA:=REF(DIF,1)>13 AND REF(DIF,1)/DIF>1.3 AND CLOSE/REF(CLOSE,1)>1.03;BIAS0:=(C-MA(C,3))/MA(C,3)*100;HXL:=V/CAPITAL*100;D1:=INDEXC;D2:=MA(D1,5);DR2:=D2>1.05*D1;E1:=(C-HHV(C,13))/HHV(C,13)*10;E2:=(C-REF(C,21))/REF(C,21)*10;E3:=MA(C,5);SJ1:=DR2;SJ2:=E2<-2.30;SJ3:=BIAS0<-2.7;SJ5:=SJ1 AND SJ2 AND SJ3;SJ6:=CROSS(0.55,SJ5);JS1:=CROSS(SJ6,0.5);JS2:=BARSLAST(JS1=1);JS3:=JS2<=5 AND C<REF(C,JS2);JS4:=SJ6 OR JS3;cxh2:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;cxh3:=(CLOSE-MA(CLOSE,12))/MA(CLOSE,12)*100;cxh4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;cxh5:=(cxh2+2*cxh3+3*cxh4)/6;cxh6:=MA(cxh5,3);DDIF:=EMA(CLOSE,12)-EMA(CLOSE,150);DDEA:=EMA(DDIF,9);MACD:=(DDIF-DDEA)*2;cxh7:=MACD<0 AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3) AND REF(MACD,3)<REF(MACD,4);cxh8:=MACD<0 AND REF(MACD,1)<REF(MACD,2) AND REF(MACD,2)<REF(MACD,3);cxh9:=MACD<0 AND REF(MACD,1)<REF(MACD,2);cxh10:=cxh7 OR cxh8 OR cxh9;D3:=cxh10;cxh11:=CLOSE/MA(CLOSE,20)*100<80;cxh12:=CLOSE/MA(CLOSE,40)*100<78;cxh13:=CLOSE/MA(CLOSE,60)*100<72;cxh14:=HIGH>LOW*1.051;cxh15:=cxh14 AND COUNT(cxh14,5)>1;cxh16:=(cxh11 AND cxh12) OR (cxh12 AND cxh13) OR (cxh11 AND cxh13);D4:=cxh15 AND cxh16;趋势线:=(CLOSE-MA(CLOSE,40))/MA(CLOSE,40)*100;AA:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-30) AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-30,趋势线),1) AND CROSS(趋势线,-30)) OR 趋势线=-30;BB:=((REF(趋势线,1)<REF(趋势线,2) AND 趋势线<-20 AND 趋势线>-25) AND 趋势线>=REF(趋势线,1)) OR (REF(CROSS(-20,趋势线),1) AND CROSS(趋势线,-20));D5:=BB;SHYY:=D2 AND D3 AND COUNT(D4,3)>=1 AND COUNT(D5,5)>=1;TU:=C/MA(C,40)<0.80;MMA:=EMA(C,2);SMMA:=EMA(MMA,1);IMPETMMA:=MMA-REF(MMA,1);IMPETSMMA:=SMMA-REF(SMMA,1);DIVMA:=ABS(MMA-SMMA);TDJ:=(H-L)/REF(C,1)>0.05;AVERIMPET:= (IMPETMMA+IMPETSMMA)/2;TDF:=POW(DIVMA,1)*POW(AVERIMPET,3);NTDF:=TDF/HHV(ABS(TDF),15);YUL:=COUNT(TDJ,5)>1;DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);DEAA:=EMA(DIFF,9);MACDD:=(DIFF-DEAA)*2;启动:=TU AND YUL;确定:=CROSS(NTDF,-0.9);选股:=FILTER(REF(启动,1) AND (确定 OR C>REF(C,1)) AND MACDD>-0.58,10);RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;cxhB2:=RSV1/2+22;低买:=(RSV1+2)<cxhB2;TYP:=(HIGH+LOW+CLOSE)/3;CCI1:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));SHY:=低买 AND COUNT(选股,10)>=1 AND CCI1>-108;cxh31A:=DMA(CLOSE,VOL/MA(VOL,4)/4);cxh32A:=DMA(CLOSE,VOL/MA(VOL,32)/32);cxh31:=(CLOSE-cxh31A)/cxh31A*100<-8;cxh32:=(cxh31A-cxh32A)/cxh32A*100<-21;cxh33:=(OPEN-REF(CLOSE,1))/REF(CLOSE,1)>-0.05;cxh34:=COUNT(NOT(C=O),8)>=8;A:=INDEXC/MA(INDEXC,58)<0.848 AND C/EMA(C,58)<0.81;B:=BARSLAST(A)+1;D:=BETWEEN(B,2,15) AND C<REF(C,B);YHSY:=COUNT(A,2) OR D;AA1:=(C-MA(C,90))/MA(C,90)*100;BB1:=(COST(11)-CLOSE)/CLOSE>0.15;AA2:=(CLOSE-SMA(CLOSE,13,1))/SMA(CLOSE,13,1)*(-100);BB2:=REF(AA2,1)>13 AND REF(AA2,1)/AA2>1.23 AND CLOSE/REF(CLOSE,1)>1.03;BAMB:=BB2 AND REF(CLOSE,1)<=COST(5);cxh41:=EMA(CLOSE,24);LDN:=EMA(cxh41*80/100,5);TJ1:=(REF(LDN,1)>REF(C,1) AND C>LDN AND C>REF(C,1)*1.02);BHP:=C/SMA(C,13,1)-1;HXDD:=O/HHV(C,30)<0.78 AND C/MA(C,50)<0.78 AND O=LLV(O,30) AND REF(BHP,1)<-0.13AND REF(BHP,1)/BHP>1.1582 AND REF(C,1)<=COST(5) AND COUNT(H>L*1.05,5)>2;DF1:=EMA(CLOSE,3)-EMA(CLOSE,89);DF2:=EMA(DF1,21);GKCV:=(DF1-DF2)*10;CFOL:=POW(GKCV,3)*0.1+POW(GKCV,2);YET:=IF(GKCV>0.015,CFOL,0)/45;HVR:=YET/REF(YET,3)>1.5 AND YET/REF(YET,1)<1.196;XA_1:=IF(CLOSE>HHV(REF(HIGH,1),2),1,IF(CLOSE<LLV(REF(LOW,1),2),(-1),0));XA_2:=CROSS(XA_1,0);XA_3:=CROSS(0,XA_1);XA_4:=5;XA_5:=10;XA_6:=0.01*EMA(AMOUNT,XA_4)/EMA(VOL,XA_4);XA_7:=(XA_6/REF(XA_6,1)-1)*100;XA_8:=MA(XA_7,XA_5);XA_9:=XA_7<(-1.1) AND XA_8<(-1.1);XA_10:=CROSS(XA_7,XA_8);XA_11:=XA_9 AND XA_10;XA_12:=9;XA_13:=CLOSE-REF(CLOSE,1);XA_14:=100*EMA(EMA(XA_13,XA_12),XA_12)/EMA(EMA(ABS(XA_13),XA_12),XA_12);XA_15:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);XA_16:=REF(CLOSE,1);XA_17:=SMA(MAX(CLOSE-XA_16,0),XA_12,1)/SMA(ABS(CLOSE-XA_16),XA_12,1)*100;XA_18:=(CLOSE-REF(CLOSE,26))/REF(CLOSE,26)*10;魔王1:=Q1 AND Q2 AND C>REF(C,1)*0.91 AND C<REF(C,1)AND INDEXC<REF(INDEXC,1) AND REF(C>REF(C,1),1);魔王2:=BL_01 AND BL_02 AND BL_03 AND BL_05 AND BL_06 AND BL_07 AND BL_08;魔王3:=WINNER(C)*100<10 AND (WINNER(C*1.25)-WINNER(C))*100<20AND C/REF(C,1)>1.0138 AND V/REF(V,1)<1;魔王4:=IF(DEA AND REF(CLOSE,1)<=COST(5),1,0) AND C<MA(C,60);魔王5:=BARSLASTCOUNT(REF(JS4,1))=1;魔王6:=BARSLASTCOUNT(SHYY)=1;魔王7:=BARSLASTCOUNT(SHY)=1;魔王8:=cxh31 AND cxh32 AND cxh33 AND cxh34;魔王9:=FILTER(YHSY,12);魔王10:=CROSS(AA1,-26) AND BB1;

 

公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程

 

 

有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友

可联系技术人员 QQ: 262069696  点击在线交流或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

怎么收费,代编流程等详情请点击查阅!

(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)

 


【字体: 】【打印文章】【查看评论

相关文章

    没有相关内容