趋势先机公式 指标 选股 源码[其他软件公式]
指标公式源码分析及使用说明参考:
源码:
CXH1:=(CLOSE-LLV(LOW,80))/(HHV(HIGH,80)-LLV(LOW,80))*200;
CXH2:=SMA(CXH1,3,1);
CXH3:=SMA(CXH2,3,1);
CXH4:=3*CXH2-2*CXH3;
CXH5:=LLV(LOW,5);
CXH6:=HHV(HIGH,5);
CXH7:=EMA((CLOSE-CXH5)/(CXH6-CXH5)*100,4)*2;
CXH8:=EMA(0.667*REF(CXH7,1)+0.333*CXH7,2);
CXH9:=3*CXH7-2*CXH8;
CXHA:=POW(MA(CLOSE,5),2)+MA(CLOSE,5);
CXHB:=POW(MA(LOW,5),2)+MA(LOW,5);
CXHC:=POW(MA(HIGH,5),2)+MA(HIGH,5);
CXHD:=(CXHA-LLV(CXHB,64))/(HHV(CXHC,64)-LLV(CXHB,64))*150+65-10;
CXHE:=SMA(CXHD,3,1)*1.5-100;
CXHF:=SMA(CXHE,3,1);
CXH10:=3*CXHE-2*CXHF;
CXH11:=(HIGH+LOW+CLOSE*2)/4;
CXH12:=EMA(CXH11,13);
CXH13:=STD(CXH11,13);
CXH14:=(CXH11-CXH12)*100/CXH13;
CXH15:=EMA(CXH14,5);
CXH17:=EMA(CXH15,13)+200-100;
CXH18:=EMA(CXH17,10);
CXH19:=3*CXH17-2*CXH18;
CXH1A:=CXH2+CXH7+CXHE+CXH17;
CXH1B:=CXH3+CXH8+CXHF+CXH18;
CXH1C:=CXH4+CXH9+CXH10+CXH19;
CXH1D:=(HIGH+LOW+CLOSE)/3;
CXH20:=(CXH1D-MA(CXH1D,34))/(0.015*AVEDEV(CXH1D,34));
CXH21:=DMA(AMOUNT/VOL/100,VOL/CAPITAL);
CXH22:=(HIGH+LOW+CLOSE+CXH1D)/4;
CXH23:=EMA(CXH22,24);
CXH24:=STD(CXH22,24);
CXH25:=(CXH22-CXH23)/CXH24*100;
CXH26:=(CXH1D-MA(CXH1D,24))/(0.015*AVEDEV(CXH1D,24));
CXH27:=EMA(CXH25,5);
CXH2A:=((CXH27+CXH26+CXH20)/3+165)/4;
CXH2B:=(EMA(EMA(EMA(CXH2A,15),10),5)-25)*2+CXH21;
CXH2C:=(CXH1A+CXH1B+CXH1C*30)/32/5-15;
CXH2D:=EMA(CXH2C,13);{13}
CXH2E:=(CXH2A+CXH2C)/2/1.1;
短期趋势:EMA(CXH2E,3) ;
辅助线:=ema(短期趋势,5);
PARTLINE(短期趋势>=REF(短期趋势,1),短期趋势),colorred;
PARTLINE(短期趋势<REF(短期趋势,1),短期趋势),COLORGREEN;{http://www.cxh99.com}
PARTLINE(辅助线>REF(辅助线,1),辅助线),colorff00f0;
PARTLINE(辅助线<=REF(辅助线,1),辅助线),colorwhite;
中期趋势:EMA((CXH2B+CXH2D)/2,2),coloryellow;
判断线:ref(中期趋势,1),COLORCYAN,linedot;
DRAWicon(cross(中期趋势,判断线),中期趋势,1),linethick2;
DRAWicon(cross(判断线,中期趋势),中期趋势,2),linethick2;
MACD :=2*(短期趋势-辅助线);
STICKLINE(MACD>0,25,50+MACD,0.5,0),COLOR6666ff;
STICKLINE(MACD<0,25,50+MACD,0.5,0),COLORcyan;
A33:=EMA(IF(L<= LLV(L,40),SMA(ABS(L-REF(L,1)),40,1)/SMA(MAX(L-REF(L,1),0),40,1),0),3)*10;
庄家吸筹:STICKLINE(A33,0,-A33/2,4,0),Color00AAFF;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE - LC),0),5,1) / SMA(ABS((CLOSE - LC)),5,1)) * 100);
TRr:=SUM(MAX(MAX((HIGH - LOW),ABS((HIGH - REF(CLOSE,1)))),ABS((LOW - REF(CLOSE,1)))),10);
HD:=(HIGH - REF(HIGH,1));
LD:=(REF(LOW,1) - LOW);
DMP:=SUM(IF(((HD > 0) AND (HD > LD)),HD,0),10);
DMM:=SUM(IF(((LD > 0) AND (LD > HD)),LD,0),10);
PDI:=((DMP * 100) / TRr);
MDI:=((DMM * 100) / TRr);
ADX:=MA(((ABS((MDI - PDI)) / (MDI + PDI)) * 100),5);
AV:=(RSI5 + ADX);
DXR:=(((ADX + REF(ADX,5)) / 2) + RSI5);
WR10:=((100 * (HHV(HIGH,10) - CLOSE)) / (HHV(HIGH,10) - LLV(LOW,10)));
NEWVOL:=(RSI5 - WR10);
阶段底部:=(AV + NEWVOL);
派红包:STICKLINE((阶段底部 < 0),0,阶段底部/3,4,0),COLORRED;
牛线:(100),linedot,PRECISion0,colorgray;
强弱分界:(50),linedot,PRECISion0,colorgray;
休息线:(25),linedot,PRECISion0,colorgray;
A40:=EMA((((CLOSE - (LLV(LOW,25))) / ((HHV(HIGH,25)) - (LLV(LOW,25)))) * 4),4);
DRAWICON((FILTER((A40 < 0.25),5)),50,4),colorRed;
DRAWICON((FILTER((A40 > 3.6),10)),50,5),COLORGREEN;{http://www.cxh99.com}
A42:=(EMA((((CLOSE - (LLV(LOW,33))) / ((HHV(HIGH,21)) - (LLV(LOW,33)))) * 100),20)) * 0.998;
A43:=EMA(((0.667 * (REF(A42,1))) + (0.333 * A42)),1);
STICKLINE((A43 < 20),0,(0 + 6),4,0),colorMagenta;{程序化交易 www.cxh99.com }
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容