生命线主图指标 公式 源码[大智慧公式]
指标公式源码分析及使用参考说明:
源码:
cxh1:=(CLOSE-MA(CLOSE,34))/MA(CLOSE,34)*100;
cxh2:=CLOSE>OPEN AND OPEN-LOW>HIGH-CLOSE;
cxh3:=REF(cxh1,1)<-34 AND cxh2;
cxh4:=REF(cxh1,1)<-34 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
cxh5:=FILTER(cxh3 OR cxh4,3);
cxh6:=OPEN>CLOSE AND HIGH-(IF(CLOSE>OPEN,CLOSE,OPEN))>IF(OPEN<CLOSE,OPEN,CLOSE)-LOW;
cxh7:=REF(cxh1,1)>ABS(-34) AND cxh6;
cxh8:=REF(cxh1,1)>ABS(-34) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
cxh9:=FILTER(cxh7 OR cxh8,3);
cxhA:=REF(cxh1,1)<-13 AND cxh2;
cxhB:=REF(cxh1,1)<-13 AND CLOSE>OPEN AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*1000>20;
cxhC:=FILTER(cxhA OR cxhB,3);
cxhD:=REF(cxh1,1)>ABS(-13) AND cxh6;
cxhE:=REF(cxh1,1)>ABS(-13) AND CLOSE<OPEN AND (REF(CLOSE,1)-CLOSE)/REF(CLOSE,1)*1000>20;
cxhF:=FILTER(cxhD OR cxhE,3);
DRAWICON(cxh5*cxh1>0,LOW,1);
DRAWICON(cxh9*cxh1>0,HIGH,2);
cxh10:=(2*CLOSE+HIGH+LOW+OPEN)/5;
A1:(EMA(cxh10,8)+EMA(cxh10,13)+EMA(cxh10,34)+EMA(cxh10,55))/4;
A2:EMA(A1,3);
A3:EMA(A2,8);
A4:EMA(A3,13);
生命线:EMA(CLOSE,60),CROSSDOT;
cxh11:=LLV(LOW,13);
cxh12:=HHV(HIGH,8);
cxh13:=EMA((cxh10-cxh11)/(cxh12-cxh11)*100,13);
cxh14:=EMA(0.667*REF(cxh13,1)+0.333*cxh13,8);
cxh15:=EMA(cxh10,13)-EMA(cxh10,34);
cxh16:=EMA(cxh15,5);
cxh17:=(-2)*(cxh15-cxh16)*3.8;
cxh18:=(2*CLOSE+LOW+HIGH)/4;
顶线:EMA(cxh18,34)*1.1,colorFFFF10;
底线:EMA(cxh18,34)*0.866;
顶偏离:=(CLOSE-MA(顶线,2))/MA(CLOSE,3)*1000;
底偏离:=(CLOSE-MA(底线,2))/MA(CLOSE,3)*1000;
DRAWTEXT(ABS(底偏离)<15 AND MA(CLOSE,1)<底偏离,LOW,'底'),color10FF10;
DRAWTEXT(ABS(顶偏离)<15 AND MA(CLOSE,1)>顶偏离,HIGH,'顶'),color10FFFF;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容