指标公式源码分析及使用说明:
源码:
VL:=REF(LOW,1);
CXH1:=(SMA(ABS(LOW-VL),13,1))/(SMA(MAX(LOW-VL,0),13,1))*100;
CXH2:=MA(CXH1,13);
CXH3:=LLV(LOW,34);
CXH4:=EMA(IF(LOW<=CXH3,CXH2,0),3);
CXH5:=SMA(SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1),5,1);
CXH6:=SMA((CLOSE-LLV(LOW,54))/(HHV(HIGH,54)-LLV(LOW,54))*100,7,1)*16.18-CXH5*10.9;
率先选股:FILTER(IF(CXH6<=CXH5 AND CXH4>REF(CXH4,1),CXH4*8,0),20);
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
BOLL:=MA(CLOSE,20);
UPPER:=BOLL+2*STD(CLOSE,20);
LOWER:=BOLL-2*STD(CLOSE,20);
MA1:=MA(CLOSE,5);
阳线买:CCI<-200 AND J<0 AND CLOSE<LOWER AND CLOSE<MA1/1.1;
{抄底特准}
CXH1:=REF(CLOSE,1);
CXH2:=SMA(MAX(CLOSE-CXH1,0),7,1)/SMA(ABS(CLOSE-CXH1),7,1)*100;
抄底特准:FILTER(REF(CXH2,1)<20 AND CXH2>REF(CXH2,1),5);
CXH1B:=CLOSE/MA(CLOSE,40)*100 < 78;
CXH2B:=CLOSE/MA(CLOSE,60)*100 < 74;
CXH3B:=HIGH > LOW*1.051;
CXH4B:=CXH3B AND COUNT(CXH3B,5) > 1;
CXH5B:=CXH4B AND (CXH1B OR CXH2B);
Xar1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
Xar2:=(CLOSE-xar1)/xar1*100+30-(REF(HIGH,13)/CLOSE-1.35)*100;
Xar3:=(CLOSE-ref(CLOSE,5))/CLOSE*100<-9;
当前获利:=WINNER(CLOSE);
大盘涨跌:=ema((INDEXC-ma(INDEXC,10))/INDEXC*100,14)<-4.9;
换手率:=(ma(v,5)-VOL)/CAPITAL*100<0.8;
量能变化:=(vol-MA(vol,21))/vol*100;
买入信号:=大盘涨跌 AND Xar3 AND 当前获利<0.12 AND
换手率 AND 量能变化>18;
AXXY:=大盘涨跌 AND Xar3 AND 当前获利<0.12 AND
换手率 AND 量能变化>18 and CXH5B;
CXH1:=MA(CLOSE,13);
CXH2:=MA(CLOSE,27);
CXH3:=(CXH1-CLOSE)/CLOSE>2/100;
CXH4:=(CXH2-CXH1)/CXH1>0.030;
CXH5:=LLV(CLOSE,32)=LLV(CLOSE,119);
CXH6:=CXH3 AND CXH4 AND CXH5 ;
CXH1a:=INDEXC;
CXH2a:=MA(CXH1a,6);
CXH3a:=MA(CXH1a,24);
CXH4a:=MA(CXH1a,32);
CXH5a:=MA(CXH1a,62);
CXH6a:=MA(CXH1a,105);
CXH7a:=CXH5a<REF(CXH5a,1) AND CXH6a<REF(CXH6a,1) AND CXH5a<CXH6a*0.98;
CXH8a:=CXH4a>CXH2a*1.115 AND CXH3a>CXH2a*1.095;
CXH9a:=CXH2a>CXH1a*0.96;
赚个够:CXH6 and CXH7a AND CXH8a AND CXH9a AND CLOSE/COST(8)<=0.790 AND
(CLOSE>OPEN OR CLOSE<OPEN) AND (REF(CLOSE,1)>REF(OPEN,1) OR
REF(CLOSE,1)<REF(OPEN,1)) OR AXXY;
{底部反转}
CXH1:=MA(CLOSE,26);
CXH2:=CXH1+2*STD(CLOSE,26);
CXH3:=CXH1-2*STD(CLOSE,26);
CXH4:=CLOSE>OPEN;
CXH5:=(HIGH-CLOSE)/OPEN;
CXH6:=(CLOSE-OPEN)/OPEN;
CXH7:=CXH4 AND CXH5/CXH6<0.5;
CXH8:=CROSS(CLOSE,CXH3) AND LLV(CXH3,3)=LLV(CXH3,90) AND CXH7;
底部反转:if(CXH8 AND REF(BARSLAST(CXH8),1)>10,1,0),linethick3,colorf0f000;
drawtext(底部反转,1,'底部反转'),,color1373c0;
drawtext(底部反转,1,''),colorred;
{经典抄底}
CS:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;
经典抄底:IF((EMA(CS,2))*2>REF((EMA(CS,2))*2,1) AND REF((EMA(CS,2))*2,1)<REF((EMA(CS,2))*2,2) AND (EMA(CS,2))*2<26,1,0);
XG:率先选股 AND 阳线买;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
发表评论