超级短线王 指标 公式 源码[通达信公式]
该AFL代码包括多个技术指标,用于确定股票的买入或卖出信号。以下是各个组件的详细说明和中文思路:
M50: 计算股票收盘价在过去50天内的移动平均值。
CC11和CC22:这是其他计算中用作参考的前一天收盘价。
cxhl: 此条件检查当前股票价格是否显著低于50天移动平均线。
cxh2: 此条件检查最近的价格趋势是否为正。
cxh3: 此条件检查当前价格是否接近过去27天的交易区间下限。
A97: 当满足cxh1、cxh2、cxh3和其他技术条件(如高交易量和近期价格上涨)时,会触发买入信号。
B97: 在A97信号的基础上增加了其他过滤条件,以过滤噪音和错误信号。
cxh9-cxhF: 这些是一系列技术指标,主要重点在于确定股票交易量的趋势。
A98: 当满足DARA、cxh2、cxh3和其他技术条件(如高交易量和近期价格上涨)时,会触发买入信号。
M50:=MA(CLOSE,50);CC11:=REF(CLOSE,1);CC22:=REF(CLOSE,2);{97-425}cxh1:=(CLOSE-M50)/M50*100<-23;cxh2:=SMA(MAX(CLOSE-CC11,0),3,1)/SMA(ABS(CLOSE-CC11),3,1)*100>16;cxh3:=100*(HHV(HIGH,27)-C)/(HHV(HIGH,27)-LLV(LOW,27));A97:=cxh1 AND cxh2 AND CROSS(cxh3,79) AND (O>C OR O<C) AND(OPEN-CC11)/CC11<0.05 AND V>MA(VOL,23) AND DATE>940630,COLORWHITE ;{97-520}MA3:=MA(CLOSE,3);C0:=CC22*0.865;C1:=REF(CLOSE,13)*0.772;BOT:=MIN(C0,C1);HSL:=100*V/CAPITAL;MA13:=MA(CLOSE,13);B97:=IF((CLOSE-BOT)/C<6/100 AND SUM(HSL,5)/5<1.8 AND WINNER(C)*100<0.1,1,0)AND (CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-23,COLORYELLOW;{98-2348}cxh9:=INDEXC;cxhA:=MA(cxh9,6);cxhB:=MA(cxh9,24);cxhC:=MA(cxh9,32);cxhD:=MA(cxh9,62);cxhE:=MA(cxh9,105);cxhF:=cxhD<REF(cxhD,1) AND cxhE<REF(cxhE,1) AND cxhD<cxhE*0.98;cxh10:=cxhC>cxhA*1.11 AND cxhB>cxhA*1.095;cxh11:=cxhA>cxh9*0.95;DARA:=(CLOSE-MA(CLOSE,28))/MA(CLOSE,28)*100<-23;A98:=(DARA AND cxh2 AND CROSS(cxh3,79) AND (O>C OR O<C) AND(OPEN-CC11)/CC11<0.05 AND V>MA(VOL,23) OR cxhF AND cxh10 ANDcxh11 AND C/COST(8)<=0.8 AND COUNT(C>O OR C<O,2)=2) ,COLORRED;{B97-3074}cxhA1:=C/MA(CLOSE,48)*100<67;cxhA2:=C/M50*100<69;cxhA3:=H>L*1.078;cxhA4:=cxhA3 AND COUNT(cxhA3,4)>2;C97:=cxhA4 AND (cxhA1 OR cxhA2) OR cxhF AND cxh10 ANDcxh11 AND C/COST(8)<=0.8 AND COUNT(C>O OR C<O,2)=2,COLORGREEN;{98-2436}YAR1:=PWINNER(1,C);YAR2:=FORCAST(YAR1,10);YAR3:=MA(YAR2,3);YAR4:=MA(YAR3,12);YAR5:=MA(YAR4,16);YAR6:=MA(YAR5,31);YAR7:=MA(YAR6,55);YAR8:=YAR6<REF(YAR6,1) AND YAR7<REF(YAR7,1) AND YAR6<YAR7*0.98;YAR9:=YAR5>YAR3*1.11 AND YAR4>YAR3*1.095;YARA:=YAR3>YAR2*0.95;YAR11:=cxhD<cxhE*0.97;YAR14:=IF(H=L AND C=O AND L=C AND C>0 ANDREF(HIGH,1)=REF(LOW,1) AND CC11=REF(OPEN,1) ANDREF(HIGH,1)=CC11 AND CC11>0,0,1)>0;B98:=(YAR11 AND cxh10 AND cxh11 AND C/COST(8)<=0.799 AND(COUNT(C=L,4)<3 OR C>CC11) AND YAR14 OR YAR8 AND YAR9AND YARA AND C/COST(5)<=0.8 AND YAR2<>O ANDREF(YAR2,1)<>REF(OPEN,1) AND YAR14),COLOR6699FF;{96}AA:=("1A0001$C"/REF("1A0001$C",20)-1)*100<-16AND (C/REF(CLOSE,27)-1)*100<-35 ;A96:=FILTER(AA ,3 );{98}VBR1:=(CC22-CC11)/CC22>0.05;VBR2:=(REF(CLOSE,3)-CC22)/REF(CLOSE,3)>0.05;VBR3:=REF(HIGH,2)-REF(HIGH,1);VBR4:=REF(HIGH,1)-VBR3;VBR5:=V/CAPITAL*100;VBR6:=1-(VBR5<15 AND (HIGH-L)/C>0.045 AND C>VBR4 AND VBR1 AND VBR2 AND C>O AND MA(CLOSE,60)-MA(CLOSE,9)/2.68>C);VBR7:=VBR6;C98:=CROSS(0.5,VBR7),COLOR99CCFF;{98}VBR11:=REF(OPEN,1)<REF(OPEN,2);VBR12:=CC11<CC22;VBR13:=REF(LOW,1)<REF(LOW,2);VBR14:=O>CC11 AND O/CC11>=1.1;VBR15:=C>O AND C/O>1.03;D98:= VBR11 AND VBR12 AND VBR13 AND VBR14 AND VBR15,COLORFFFF33;{96-150}VBR16:=AMOUNT;VBR17:=IF(H*V<=VBR16,(LOW+H)/2*V*100,VBR16);VBR18:=IF(C<200,VBR17/V/100,(HIGH+L)/2);VBR19:=MA(CLOSE,70)-MA(CLOSE,10)/2.5;VBR20:=MA(CLOSE,60)-MA(CLOSE,10)/2.5;VBR21:=M50-MA(CLOSE,10)/2.36;VBR22:=MA(VBR17,12)/1.39;VBR23:=MA(VBR17,12)/1.09;VBR24:=MA(VBR17,5);VBRA:=MA(VBR22,360)/5.2;VBRB:=MA(VBR17,150)/2;VBRC:=MA(VBR22,360)/3.8;E96:=(CROSS(VBR22,VBRA) AND C<VBR19 OR CROSS(VBR23,VBRB) AND C<VBR20 OR CROSS(VBR24,VBRC) AND C<VBR21) ,COLOR009933;{98}VBR41:=1;cxh13:=V/CAPITAL;REC1:=CC11;VBR42:=IF(EMA(CLOSE,5)/EMA(EMA(CLOSE,9),16)<=0.85 AND C/REC1>0.905 AND C/REC1<1.05 AND cxh13*100<5,50,0);VBR43:=(-100)*(HHV(HIGH,34)-C)/(HHV(HIGH,34)-LLV(LOW,34))+100;VBR44:=(-100)*(HHV(HIGH,50)-C)/(HHV(HIGH,50)-LLV(LOW,50))+100;VBR45:=(-100)*(HHV(HIGH,70)-C)/(HHV(HIGH,70)-LLV(LOW,70))+100;VBR46:=((CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100+10)*5;VBR47:=((CLOSE-M50)/M50*100+10)*5;VBR48:=((CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100+10)*5;VBR49:=(VBR43+VBR44+VBR45+VBR46+VBR47+VBR48)/6;VBR60:=EMA(VBR49,3);VBR61:=ABS(VBR46-VBR48);VBR62:=(VBR49+VBR61)/2;VBR63:=(-1)*(EMA(100*(1-WINNER(C)),1)-50)+50;VBR64:=VBR63+VBR62;VBR65:=IF(VBR42>0 AND VBR64<0,200,0);VBR50:=IF(VBR62<0 AND C=LLV(CLOSE,5) AND C/REC1>0.905 AND C/REC1<1.05 AND cxh13*100<5,-50,0);VBR51:=IF(VBR64<0 AND VBR50=-50,100,0);VBR52:=MA(CLOSE,3);VBR53:=CC22*0.865;VBR54:=REF(CLOSE,13)*0.772;VBR55:=MIN(VBR53,VBR54);VBR56:=100*cxh13;VBR57:=MA(CLOSE,13);VBR58:=IF((CLOSE-VBR55)/C<0.03 AND SUM(VBR56,5)/5<1.8,1,0);VBR59:=IF(VBR58>0 AND (VBR50<0 OR VBR42>0),100,0);VBR1A:=VBR59;VBR1B:=IF(VBR65>0 AND VBR51>0 AND SUM(cxh13*100,5)/5<1 OR VBR58>0 AND REC1/CC22>0.902OR (VBR65>0 AND VBR51>0 AND SUM(cxh13*100,5)/5<1 OR VBR58>0) AND (VBR50<0 OR VBR42>0) AND VBR59<10,50,0);VBR1C:=(VBR65>0 AND VBR51>0 AND SUM(cxh13*100,5)/5<1 OR VBR58>0) AND (VBR50<0 OR VBR42>0);VBR1D:=VBR65>0 AND VBR51>0 AND SUM(cxh13*100,5)/5<1 OR VBR58>0 AND REC1/CC22>0.902;VBR1E:=VBR1C OR VBR1D;VBR1F:=MA(CLOSE,80)-MA(CLOSE,10)/2.5;F98:=VBR1A AND C<VBR1F*VBR41,COLORMAGENTA;{AA--99-594 }VR3:=INDEXC;VR4:=MA(VR3,8);VR5:=MA(VR3,22);VR6:=MA(VR3,28);VR7:=MA(VR3,73);VR8:=MA(VR3,106);VR9:=VR7<REF(VR7,1) AND VR8<REF(VR8,1) AND VR7<VR8*0.98;VRA:=VR6>VR4*1.11 AND VR5>VR4*1.095;VRB:=VR4>VR3*0.95;VRC:= VR9 AND VRA AND VRB AND C/COST(8)<=0.8 AND (C>O OR C<O) AND(REC1>REF(OPEN,1) OR REC1<REF(OPEN,1));A99:= VRC,COLOR009999;CBR26:=CC11;ABR1:=DMA(CLOSE,V/MA(VOL,4)/4);ABR2:=DMA(CLOSE,V/MA(VOL,31)/31);ABR3:=(CLOSE-ABR1)/ABR1*100<-10;ABR4:=(ABR1-ABR2)/ABR2*100<-16;ABR5:=ABR3 AND ABR4;ABR6:=(CLOSE-M50)/M50*100<-23;ABR7:=SMA(MAX(CLOSE-CBR26,0),3,1)/SMA(ABS(CLOSE-CBR26),3,1)*100>16;ABR8:=100*(HHV(HIGH,27)-C)/(HHV(HIGH,27)-LLV(LOW,27));ABR9:=INDEXC;ABRA:=MA(ABR9,6);ABRB:=MA(ABR9,24);ABRC:=MA(ABR9,32);ABRD:=MA(ABR9,62);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容