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

黄金坑买点,抄底类指标 公式 源码[通达信公式]

指标公式代码分析及使用参考建议:

根据给出的代码,这个指标可能用于股票或其他市场的技术分析。它使用了多个技术指标和条件判断来生成交易信号。下面是对这个指标的简要思路和操作建议:

1. 首先,该指标使用了移动平均线(EMA、MA)来计算价格的平均值,在短期和长期的时间窗口内进行计算。这可以用来判断价格的趋势和支撑/阻力位。

2. 其次,该指标使用了开盘价、最高价、最低价和收盘价来计算一些技术指标,如相对强弱指标(RSI)、震荡指标(ZIG)等。这些指标可以用来判断市场的超买超卖情况和价格的波动性。

3. 这个指标还使用了两个自定义的指标:cxhE和cxhF。通过计算价格在过去一段时间内的相对位置和波动性,可以判断价格的变动情况和潜在的趋势反转。

4. 最后,该指标根据一系列条件判断生成交易信号。例如,当某些指标(如相对强弱指标、震荡指标)达到特定阈值时,会触发买入或卖出信号。同时,还考虑了价格的相对位置和波动性,以及前一期的点位变动情况。

基于以上分析,这个指标可以用于辅助决策交易。操作建议如下:

- 当交易信号为买入时,可以考虑开仓或增加仓位。
- 当交易信号为卖出时,可以考虑平仓或减少仓位。
- 注意及时跟踪市场的变化,并根据实际情况进行调整和管理风险。
- 结合其他指标和市场分析,综合判断市场趋势,并灵活执行交易策略。

请注意,以上建议仅供参考,具体的投资决策需根据个人实际情况、风险承受能力和市场环境来定。同时,投资有风险,也可能存在误差和不确定性,请谨慎对待。

 

源码:

cxh3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;cxh4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;cxh5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;cxh6:=(cxh3+cxh4+cxh5)/3; cxh7:=EMA(cxh6,5);cxh8:=IF(cxh6<=-20,10,0); cxh9:=HHV(cxh8,10);STICKLINE(cxh8=10,20,10,5,0),COLOR6666FF;cxhA:=IF(cxh9 AND CROSS(MA(CLOSE,3),MA(CLOSE,5)),20,0);cxhB:=BETWEEN(CLOSE,MA(CLOSE,3),MA(CLOSE,5)) AND cxhA>10;cxhC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND(REF(ZIG (3,5),2)<=REF(ZIG(3,5),3)); cxhD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG (3,5),2)>=REF(ZIG(3,5),3));STICKLINE((cxhC=1),(-14),0,4,0),COLOR0000FF; DRAWTEXT((cxhC=1),(-14),'买'),COLOR0000FF; STICKLINE((cxhD=1),14,0,4,0),COLOR00FF00;DRAWTEXT((cxhD=1),18,'卖'),COLOR00FF00;cxhE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;cxhF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);cxh10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA ((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);cxh12:=(HIGH+LOW+CLOSE)/3;cxh13:=(cxh12-MA(cxh12,14))/(0.015*AVEDEV(cxh12,14));cxh14:=(cxh12-MA(cxh12,70))/(0.015*AVEDEV(cxh12,70));cxh15:=IF(cxh13>=150 AND cxh13<200 AND cxh14>=150 AND cxh14<200,10,0);cxh16:=IF(cxh13<=-150 AND cxh13>-200 AND cxh14<=-150 AND cxh14>-200,-10,cxh15); cxh17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;cxh18:=100-ABS(cxh17); cxh19:=IF(cxh18<90,cxh18,100);cxh1A:=IF(cxhE>0,cxhE,0);cxh1B:=IF(cxh14>=200 AND cxh13>=150,15,IF(cxh14<=-200 AND cxh13<=-150,-15,cxh16))+60; cxh1C:=cxh1A>48 AND cxh1B>60 AND cxh19<100;cxh59:=1/WINNER(CLOSE);cxh33:=MA(CLOSE,13);cxh34:=100-ABS((CLOSE-cxh33)/cxh33*100);cxh35:=LLV(LOW,75);cxh36:=HHV(HIGH,75);cxh37:=(cxh36-cxh35)/100;cxh38:=SMA((CLOSE-cxh35)/cxh37,20,1);cxh39:=SMA((OPEN-cxh35)/cxh37,20,1);cxhA3:=3*cxh38-2*SMA(cxh38,15,1);cxhB3:=3*cxh39-2*SMA(cxh39,15,1);cxhC3:=100-cxhB3;cxhE3:=REF(LOW,1)*0.9;cxhF3:=LOW*0.9;cxh40:=(cxhF3*VOL+cxhE3*(CAPITAL-VOL))/CAPITAL;cxh41:=EMA(cxh40,30);cxh42:=CLOSE-REF(CLOSE,1);cxh43:=MAX(cxh42,0);cxh44:=ABS(cxh42);cxh45:=SMA(cxh43,7,1)/SMA(cxh44,7,1)*100;cxh46:=SMA(cxh43,13,1)/SMA(cxh44,13,1)*100;cxh47:=BARSCOUNT(CLOSE);cxh48:=SMA(MAX(cxh42,0),6,1)/SMA(ABS(cxh42),6,1)*100;cxh49:=(-200)*(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))+100;cxh3A:=(CLOSE-LLV(LOW,15))/(HHV(HIGH,15)-LLV(LOW,15))*100;cxh3B:=SMA((SMA(cxh3A,4,1)-50)*2,3,1);cxh3C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;cxh3D:=SMA(cxh3C,4,1);cxh3E:=SMA(cxh3D,3,1);cxh3F:=(HHV(HIGH,30)-CLOSE)/CLOSE*100;cxh50:=cxh48<=25 AND cxh49<-95 AND cxh3F>20 AND cxh3B<-30 AND cxh3E<30 AND cxh41-CLOSE>=-0.25 AND cxh45<22 AND cxh46<28 AND cxh47>50;cxh51:=(HIGH+LOW+CLOSE)/3;cxh52:=(cxh51-MA(cxh51,14))/(0.015*AVEDEV(cxh51,14));cxh53:=(cxh51-MA(cxh51,70))/(0.015*AVEDEV(cxh51,70));cxh54:=IF(cxh52>=150 AND cxh52<200 AND cxh53>=150 AND cxh53<200,10,0);cxh55:=IF(cxh52<=-150 AND cxh52>-200 AND cxh53<=-150 AND cxh53>-200,-10,cxh54);cxh56:=(CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100;cxh57:=REVERSE(cxh56);cxh58:=SMA(cxh56,3,1);cxhFF:=100-3*SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);cxh199:=100-3*SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,65))/(HHV(HIGH,80)-LLV(LOW,65))*100,20,1),15,1);cxh20:=REF(VOL,1) AND CLOSE>REF(CLOSE,1);cxh1:=(CLOSE*2+HIGH+LOW)/4*10;cxh2:=EMA(cxh1,13)-EMA(cxh1,34);cxh333:=EMA(cxh2,5);cxh444:=2*(cxh2-cxh333)*5.5;cxh555:=(HHV(INDEXH,8)-INDEXC)/(HHV(INDEXH,8)-LLV(INDEXL,8))*8;cxh666:=EMA(3*cxh55-2*SMA(cxh55,18,1),5);cxh777:=(INDEXC-LLV(INDEXL,8))/(HHV(INDEXH,8)-LLV(INDEXL,8))*10;cxh888:=(INDEXC*2+INDEXH+INDEXL)/4;cxh999:=EMA(cxh888,13)-EMA(cxh888,34);cxhAA:=EMA(cxh999,3);cxhBBB:=(cxh999-cxhAA)/2;cxhEE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;cxh100:=(HIGH+LOW+CLOSE)/3;cxh11:=(cxh100-MA(cxh100,14))/(0.015*AVEDEV(cxh100,14));cxh122:=(cxh100-MA(cxh100,70))/(0.015*AVEDEV(cxh100,70));cxh133:=IF(cxh11>=150 AND cxh11<200 AND cxh122>=150 AND cxh122<200,10,0);cxh144:=IF(cxh11<=-150 AND cxh11>-200 AND cxh122<=-150 AND cxh122>-200,-10,cxh133);cxh155:=(CLOSE-MA(CLOSE,11))/MA(CLOSE,11)*100;cxh166:=100-ABS(cxh155);cxh177:=IF(cxh166<90,cxh166,100);cxh1AA:=IF(cxhEE>0,cxhEE,0);cxh1BB:=IF(cxh122>=200 AND cxh11>=150,15,IF(cxh122<=-200 AND cxh11<=-150,-15,cxh14))+60;cxh1CC:=cxh1AA>48 AND cxh1BB>60 AND cxh177<100;MA5:=MA(CLOSE,5);MA10:=MA(CLOSE,10);MA30:=MA(CLOSE,30);MA60:=MA(CLOSE,60);MA65:=MA(CLOSE,65);MA250:=MA(CLOSE,250);均线流:(((((MA5 > MA65) AND (MA10 > MA65)) AND (MA30 > MA65)) AND (MA5 < MA30)) * 7),POINTDOT,LINETHICK3;PL1:=(((CLOSE - MA60) / MA60) < 0.1);PL2:=(((CLOSE - MA250) / MA250) < 0.3);DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);DEA :=EMA(DIFF,9);MACD超跌:=(COUNT((DIFF < DEA),10) = 10);MACD:(MACD超跌 * "MACD.MACD"(26,12,9))*(-1),STICK,LINETHICK2,COLORFFFF00;LC:=REF(CLOSE,1);RSI:=SMA(MAX(CLOSE-LC,0),4.1,1)/SMA(ABS(CLOSE-LC),4.1,1)*100;cxh27A:=REF(CLOSE,1);cxh28A:=SMA(MAX(CLOSE-cxh27A,0),5.5,1)/SMA(ABS(CLOSE-cxh27A),6,1)*100;cxhA1:=((AMOUNT)/(VOL))/(100);cxhB1:=((3)*(HIGH)+LOW+OPEN+(2)*(CLOSE))/(7);cxhC1:=((SUM(AMOUNT,7))/(cxhA1))/(100);cxhD1:=DMA(cxhB1,(VOL)/(cxhC1));cxhE1:=((CLOSE-cxhD1)/(cxhD1))*(100);cxhF1:=((CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34)))*(100);cxhJ1:=MA(cxhE1,20)+STD(cxhE1,20);BIAS18:=((CLOSE-MA(CLOSE,18))/(MA(CLOSE,18)))*(100);AA1:=SMA(cxhF1,3,1);SS1:=(REF(BIAS18,1)>=5) AND CROSS(cxhJ1,cxhE1) AND (AA1>79);cxh1AAA:=ZIG(3,10)>REF(ZIG(3,10),2);{ZIG 有未来}cxh2AAA:=ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);果断买入:IF(cxh2AAA AND COUNT(cxh2AAA,3)=1,-15,0),STICK,LINETHICK1,COLORFF00FF;STICKLINE(cxh2AAA,0,-25,4,0),COLORFF00FF;cxh91:=(((CLOSE - LLV(LOW,9)) / (HHV(HIGH,9) - LLV(LOW,9))) * 100);cxh92:=SMA(cxh91,3,1);cxh93:=SMA(cxh92,3,1);cxh94:=((3 * cxh92) - (2 * cxh93));cxh95:=(cxh92 + cxh93);cxh96:=(cxh95 < 55);cxh97:=(cxh95 < 60);

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容