股龙归心战无不胜买卖指标 公式 源码[通达信公式]
指标公式代码分析及使用参考说明:
1. 支撑和阻力:通过计算得到的cxh4和cxh5分别表示支撑和阻力位。支撑位是在价格下跌到一定程度时可能出现的反弹点,而阻力位是在价格上涨到一定程度时可能出现的回落点。可以根据这些位的数值进行交易决策,比如在接近支撑位时考虑买入,接近阻力位时考虑卖出。
2. 均线:通过计算得到的MA5和MA13分别表示5日均线和13日均线。均线可以用来判断价格的趋势和支撑阻力水平,当价格位于均线之上时,说明市场处于上涨趋势,反之则处于下跌趋势。
3. 强攻和回调:根据计算得到的cxh9,可以判断市场的强攻和回调情况。当cxh9大于前一天的值且大于0时,表示市场处于强攻状态,可以考虑追涨操作;当cxh9小于前一天的值且小于0时,表示市场处于回调状态,可以考虑逢低买入。
4. 趋势和反转信号:根据cxh10、cxh11、cxh12、cxh13和cxh14的条件判断,可以得到趋势和反转信号。这些信号可以用于判断市场的短期走势和可能的反转点,可以作为交易决策的参考。
5. 量能分析:通过计算得到的cxh17、cxh18和cxh19,可以进行量能分析。这些指标可以帮助判断市场的买卖力度和价格走势的可靠性,可以在交易时进行参考。
综上所述,以上给出的分析指标公式可以用于辅助技术分析和交易决策。但需要注意的是,技术分析并不能完全预测市场未来的走势,建议在使用时结合其他分析方法和风险管理策略,谨慎决策。
源码:
cxh1:=5;cxh2:=13;cxh3:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);cxh4:=(1-7/100)*DMA(CLOSE,cxh3);cxh5:=(1+7/100)*DMA(CLOSE,cxh3);cxh6:=MA((LOW+HIGH+CLOSE)/3,5);支撑:REFDATE(cxh4,DATE),POINTDOT,COLORCC66FF,LINETHICK3;阻力:REFDATE(cxh5,DATE),POINTDOT,COLORGREEN,LINETHICK3;cxh7:=MEMA(CLOSE,5);cxh8:=ATAN((cxh7/REF(cxh7,1)-1)*100)*180/3.1416;cxh9:=IF(cxh8>0,cxh8,cxh8);MA5:MA(CLOSE,cxh1),COLOR888899;MA13:MA(CLOSE,cxh2),COLORFF9900,LINETHICK2;cxh10:=CLOSE=HHV(CLOSE,4) AND (REF(CLOSE,1)>=REF(CLOSE,2) OR REF(CLOSE,1)>=REF(CLOSE,3)) OR REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE>=REF(CLOSE,2) OR REF(CLOSE,2)=HHV(CLOSE,4) AND REF(CLOSE,3)=LLV(CLOSE,4) AND CLOSE>=REF(CLOSE,1) OR REF(CLOSE,3)=HHV(CLOSE,4) AND CLOSE>=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh11:=CLOSE=HHV(CLOSE,4) AND REF(CLOSE,1)=LLV(CLOSE,4);cxh12:=CLOSE=LLV(CLOSE,4) AND (REF(CLOSE,1)<REF(CLOSE,2) OR REF(CLOSE,1)<REF(CLOSE,3)) OR REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE<REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE<REF(CLOSE,1) OR REF(CLOSE,3)=LLV(CLOSE,4) AND CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);cxh13:=REF(CLOSE,1)=LLV(CLOSE,4) AND CLOSE>=REF(CLOSE,2) OR REF(CLOSE,2)=LLV(CLOSE,4) AND REF(CLOSE,1)<=REF(CLOSE,3) AND REF(CLOSE,2)<REF(CLOSE,4) AND CLOSE>=REF(CLOSE,1);cxh14:=REF(CLOSE,1)=HHV(CLOSE,4) AND CLOSE<REF(CLOSE,2) OR (REF(CLOSE,2)=HHV(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,3) OR REF(CLOSE,3)=HHV(CLOSE,4) AND REF(CLOSE,1)>REF(CLOSE,2)) AND REF(CLOSE,2)>=REF(CLOSE,4) AND CLOSE<REF(CLOSE,1);cxh15:=cxh6>REF(cxh6,1) AND REF(cxh6,1)<REF(cxh6,2);cxh16:=LOW<HHV(cxh6,13) AND HIGH>HHV(cxh6,13) AND CLOSE>REF(CLOSE,1) AND CLOSE>OPEN;cxh17:=cxh16 AND COUNT(cxh15,2);cxh18:=100*EMA(EMA(CLOSE-REF(CLOSE,1),6),6)/EMA(EMA(ABS(CLOSE-REF(CLOSE,1)),6),6);cxh19:=EMA(MA(CLOSE,13),13);cxh20:=FILTER((LLV(cxh18,2)=LLV(cxh18,7) AND COUNT(cxh18<0,2) AND CROSS(cxh18,MA(cxh18,2)))=1,5);cxh21:=FILTER((HHV(cxh18,2)=HHV(cxh18,7) AND COUNT(cxh18>50,2) AND CROSS(MA(cxh18,2),cxh18))=1,1);cxh22:=SMA(EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,1),5)*100,3,1)*10;cxh23:=FILTER((CROSS(cxh22,0) OR CROSS(CLOSE,cxh19) AND cxh20)=1,3);cxh24:=MA(CLOSE,18)>=REF(MA(CLOSE,18),3) AND CROSS(CLOSE,MA(CLOSE,18));cxh25:=cxh17 AND NOT(REF(cxh17,1));强攻:IF(cxh9>REF(cxh9,1) AND cxh9>=0,MA13,DRAWNULL),COLORYELLOW,LINETHICK2;回调:IF(cxh9<REF(cxh9,1) AND cxh9>0,MA13,DRAWNULL),COLORGREEN,LINETHICK2;cxh26:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;cxh27:=SMA(cxh26,3,1);{程序化久久公式网}cxh28:=SMA(cxh27,3,1);cxh29:=3*cxh27-2*cxh28;cxh30:=CROSS(cxh29,cxh28);cxh31:=CROSS(cxh28,cxh29);cxh32:=cxh23 OR cxh24 AND cxh20;cxh33:=cxh23 OR cxh24 AND cxh13;cxh34:=cxh23 OR cxh24 AND cxh11;cxh35:=cxh11 AND cxh20 OR (cxh13 AND cxh20);cxh36:=cxh30 AND cxh13 OR (cxh30 AND cxh11) OR (cxh30 AND cxh20);STICKLINE(CLOSE>REF(CLOSE,1)*1.0985 AND CLOSE=HIGH,CLOSE,OPEN,4,(-1)),COLORYELLOW;STICKLINE(CLOSE<REF(CLOSE,1)*0.9015 AND CLOSE=LOW,CLOSE,OPEN,4,(-1)),COLORGREEN;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,3,0),COLORFF7700;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,2.2,0),COLORFF9900;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,1.5,0),COLORFFBB00;STICKLINE(OPEN>=CLOSE,CLOSE,OPEN,0.5,0),COLORCYAN;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0),COLOR000099;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2.2,0),COLOR0000CC;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1.5,0),COLORRED;STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0.5,0),COLORCC66FF;STICKLINE(cxh12,OPEN,(OPEN+CLOSE)/2,3,0),COLOR009900;STICKLINE(cxh12,OPEN,(OPEN+CLOSE)/2,2.2,0),COLOR00BB00;STICKLINE(cxh12,OPEN,(OPEN+CLOSE)/2,1.5,0),COLOR00DD00;STICKLINE(cxh12,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORGREEN;STICKLINE(cxh13,OPEN,(OPEN+CLOSE)/2,3,0),COLOR999999;STICKLINE(cxh13,OPEN,(OPEN+CLOSE)/2,2.2,0),COLORBBBBBB;STICKLINE(cxh13,OPEN,(OPEN+CLOSE)/2,1.5,0),COLORDDDDDD;STICKLINE(cxh13,OPEN,(OPEN+CLOSE)/2,0.5,0),COLORWHITE;STICKLINE(cxh30,OPEN,CLOSE,0.5,0),COLORYELLOW;STICKLINE(cxh31,OPEN,CLOSE,0.5,0),COLOR000099;DRAWICON(cxh25,LOW-0.02,7);DRAWICON(cxh32 OR cxh33 OR cxh34 OR cxh35 OR cxh36,LOW-0.01,1);DRAWICON(cxh31 OR cxh21 OR CROSS(40,cxh18),HIGH+0.01,2);cxh37:=MA(CLOSE,3);cxh38:=(3*CLOSE+LOW+OPEN+HIGH)/6;牛线:(20*cxh38+19*REF(cxh38,1)+18*REF(cxh38,2)+17*REF(cxh38,3)+16*REF(cxh38,4)+15*REF(cxh38,5)+14*REF(cxh38,6)+13*REF(cxh38,7)+12*REF(cxh38,8)+11*REF(cxh38,9)+10*REF(cxh38,10)+9*REF(cxh38,11)+8*REF(cxh38,12)+7*REF(cxh38,13)+6*REF(cxh38,14)+5*REF(cxh38,15)+4*REF(cxh38,16)+3*REF(cxh38,17)+2*REF(cxh38,18)+REF(cxh38,20))/210,COLORRED;马线:MA(牛线,6),POINTDOT,COLORYELLOW,LINETHICK4;买:马线-2*STD(CLOSE,20),COLORFF937F,LINETHICK2;卖:马线+2*STD(CLOSE,20),COLORGREEN,LINETHICK2;等待:IF(cxh37<=牛线,马线,DRAWNULL),POINTDOT,COLORRED,LINETHICK4;cxh39:=CLOSE>REF(CLOSE,1) AND CLOSE>REF(CLOSE,2);cxh40:=REF(cxh39,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh41:=REF(cxh40,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh42:=REF(cxh41,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh43:=REF(cxh42,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh44:=REF(cxh43,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh45:=REF(cxh44,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh46:=REF(cxh45,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh47:=REF(cxh46,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh48:=REF(cxh47,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh49:=REF(cxh48,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh50:=REF(cxh49,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);持股:IF(cxh39 OR cxh40 OR cxh41 OR cxh42 OR cxh43 OR cxh44 OR cxh45 OR cxh46 OR cxh47 OR cxh48 OR cxh49 OR cxh50,牛线,DRAWNULL),COLORRED;cxh51:=CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2);cxh52:=REF(cxh51,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh53:=REF(cxh52,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh54:=REF(cxh53,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh55:=REF(cxh54,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh56:=REF(cxh55,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh57:=REF(cxh56,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh58:=REF(cxh57,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh59:=REF(cxh58,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh60:=REF(cxh59,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);cxh61:=REF(cxh60,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2);cxh62:=REF(cxh61,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2);持币:IF(VA
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容