您现在的位置:程序化交易>> 股票公式>> 其他>> 其他软件公式>>正文内容

定海神针指标 公式 源码[其他软件公式]

指标公式代码分析及使用参考说明:

这段代码是一个股票交易策略的指标公式,其主要作用是根据一系列技术指标来判断股票的买卖点以及其他信息。

其中,支撑价和阻力价是两个重要的价格指标,用于判断股票价格的上下行趋势;CXH1到CXHE是一系列计算股票价格走势的指标公式,包括均线差、价格振幅等;而CXH13到CXH23是一系列判断买卖点的指标公式,包括价格相对历史最低值和最高值的比例、价格相对均线的位置等。

此外,代码中还涉及到一些细节指标,如CXH1B到CXH1E是判断股票是否处于极端市场情况的指标公式;CXH20到CXH23是判断价格是否处于极端市场情况的指标公式。

总的来说,这段代码主要通过计算不同的技术指标来判断股票的买卖点和市场情况,建议将其结合实际市场情况进行使用,并谨慎决策。同时,需要注意代码中存在一些约定俗成的缩写和简写,需要熟悉相关的术语和知识才能正确理解和使用。



源码:

支撑价:LLV(LOW,19),LINETHICK2 , COLOR00FF00;
阻力价:HHV(HIGH,19),COLORBLUE, LINETHICK2;
CXH1:=EMA(CLOSE,12)-EMA(CLOSE,26);
CXH2:=EMA(CXH1,9);
CXH3:=(CLOSE*2.5/100+CLOSE);
CXH4:EMA(C,3);
CXH5:=LLV(HIGH,240);
CXH6:=100*(CLOSE-CXH5)/CXH5;
CXH7:=REF(LLV(CLOSE,480),1);
CXH8:=REF(HHV(CLOSE,480),1);
CXH9:=100*(CLOSE-CXH7)/(CXH8-CXH7);
CXHA:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100;
CXHB:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100;
CXHC:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100;
CXHD:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100;
CXHE:=CXHC>98.5 OR CXHD>98.5;
CXHF:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4;
CXH13:=CXHA=0 AND CXHC=0 AND CXH6<0;
CXH14:=CXHA=100 AND CXHC=100;
CXH15:=CXHB=0 OR CXHD=0 AND CXH9<0;
CXH16:=CXHB=100 AND CXHD=100;
CXH17:=CXH6<0 AND CXH9<0;
CXH18:=CXH13 AND CXH15;
CXH19:=CXH14 AND CXH16;
CXH1B:=SMA(MAX(CLOSE-REF(CLOSE,1),0),49,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),6,1)*100;
CXH1C:=SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100;
CXH1D:=BARSCOUNT(CLOSE);
CXH1E:=CXH1B<20 AND CXH1C<23 AND CXH1D>35;
CXH1F:=CXH1E AND COUNT(CXH1E,1)=1;
CXH20:=REF(CLOSE,1);
CXH21:=SMA(MAX(CLOSE-CXH20,0),34,1)/SMA(ABS(CLOSE-CXH20),7,1)*100;
CXH22:=SMA(MAX(CLOSE-CXH20,0),13,1)/SMA(ABS(CLOSE-CXH20),13,1)*100;
CXH23:=BARSCOUNT(CLOSE);
CXH24:=CXH21<20 AND CXH22<23 AND CXH23>35;
CXH25:=CXHA=0 AND CXHF<1.2 AND CXH17;

CXH27:=CXH18 AND CXHF<1.2 AND CXH17;

CXH29:=SUM(HIGH-OPEN,77)/SUM(OPEN-LOW,77)*100;
CXH2A:=SUM(MAX(0,HIGH-REF(CLOSE,1)),77)/SUM(MAX(0,REF(CLOSE,1)-LOW),77)*100;
CXH2B:=CROSS(CXH29,69) AND CROSS(CXH2A,80)<150;
CXH2C:=CXH24 AND CXH1F AND COUNT(CXH24,30)=1;
买点:=CXH25 AND CXH2B;
绝对卖点:=(CXH19 OR CXHA)AND CXHF>23 OR CXHE ;
CXH2D:=CXH1F AND CXH2C AND CXH25;
股海万元户:=(CLOSE/REF(CLOSE,1)>1.04 AND (CLOSE>10.8 AND CLOSE<10.83 OR CLOSE>6.86 AND CLOSE<6.88 OR CLOSE>13.82 AND CLOSE<13.84 OR CLOSE>7.28 AND CLOSE<7.3 OR CLOSE>12.4 AND CLOSE<12.42 OR CLOSE>22.33 AND CLOSE<22.35 OR CLOSE>4.68 AND CLOSE<4.7 OR CLOSE>26.29 AND CLOSE<26.31 OR CLOSE>7.65 AND CLOSE<7.67 OR CLOSE>13.4 AND CLOSE<13.42 OR CLOSE>7.58 AND CLOSE<7.6 OR CLOSE>20.43 AND CLOSE<20.45 OR CLOSE>19.57 AND CLOSE<19.59 OR CLOSE>6.26 AND CLOSE<6.28 OR CLOSE>7.14 AND CLOSE<7.16 OR CLOSE>6.61 AND CLOSE<6.63 OR CLOSE>11.9 AND VOL<11.92 OR CLOSE>6.7 AND CLOSE<6.72 OR CLOSE>8.19 AND CLOSE<8.21));
DRAWTEXT(FILTER(绝对卖点>0,3),H,'别贪'), COLOR00FF00;
DRAWTEXT(股海万元户>0,L,'☆追涨'),COLORYELLOW ;
DRAWICON(买点>0,L,4);
DRAWTEXT(买点>0,L,'扫描神针'),COLORF00FF0;
DRAWTEXT(CXHF<0.7 AND CXH27 AND CXH25>0,L,'万元'),COLORYELLOW;
STICKLINE(CXH2D>0,O,C,10,0), COLORRED;
DRAWTEXT(CXH2D>0,L,'大方神针'),COLORRED;
DRAWICON(COUNT(REF(CXH4,1)<REF(CXH4,2),5)=5 AND CXH4>REF(CXH4,1),L*0.98,4);
DRAWICON(FILTER(COUNT(CXH6<0,5)AND CROSS(CXH6,0)AND CXHF>REF(CXHF,1)AND C>O,3),L,1);
DRAWICON(FILTER(REF(CXH4,1)>REF(CXH4,2)AND CXH4<REF(CXH4,1)AND CXHF>17 AND CXH1>CXH2,5),H,2);
DRAWICON(阻力价>REF(阻力价,1)AND CROSS(阻力价,CXH3)AND C<O,H*1.02,5);

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容