操盘手必备指标 公式 源码[通达信公式]
指标公式源码分析及使用参考说明:
源码:MA5:MA(CLOSE,5),COLORWHITE;MA10:MA(CLOSE,10),COLORYELLOW;MA20:MA(CLOSE,20),COLORMAGENTA,LINETHICK2;cxh1:=MA(CLOSE,31);MA60:MA(CLOSE,60),COLORGREEN;MA120:MA(CLOSE,120),COLOR0080FF;cxh2:=MA(CLOSE,250);cxh3:=SUM(AMOUNT,1)/SUM(VOL,1)/100;cxh4:=0.01*AMOUNT/VOL;cxh5:=EMA(cxh4,5);DRAWICON(CROSS(MA(CLOSE,18),MA(CLOSE,31)),HIGH*1.02,42);DRAWICON(CROSS(EMA(CLOSE,20),EMA(CLOSE,89)),LOW*0.98,9);cxh6:=STRCAT(CON2STR(100*FINANCE(30)/FINANCE(19),2),14);cxh7:=STRCAT(CON2STR(FINANCE(34),2),1);cxh8:=STRCAT(CON2STR(FINANCE(43),2),14);DRAWTEXT_FIX(1,0.22,0,0,15),COLORFF8080;DRAWTEXT_FIX(1,0.26,0,0,cxh7),COLORFF8080;DRAWTEXT_FIX(1,0.31,0,0,16),COLORFF8080;DRAWTEXT_FIX(1,0.36,0,0,cxh6),COLORFF8080;DRAWTEXT_FIX(1,0.43,0,0,17),COLORFF8080;DRAWTEXT_FIX(1,0.51,0,0,cxh8),COLORFF8080;cxh9:=STRCAT(CON2STR(VOL*10000/FINANCE(46),2),1);DRAWTEXT_FIX(1,0.6,0,0,18),COLORFF8080;DRAWTEXT_FIX(1,0.66,0,0,cxh9),COLORFF8080;cxh10:=CLOSE/REF(CLOSE,1)>1.097;STICKLINE(cxh10,OPEN,CLOSE,0.8,0),COLORMAGENTA;cxh11:=HIGH/REF(CLOSE,1)>1.097 AND CLOSE<HIGH;STICKLINE(cxh11,OPEN,CLOSE,0.8,0),COLOR0080FF;涨停:REF(CLOSE,1)*1.1,NODRAW,COLORRED;DRAWTEXT(涨停 AND CURRBARSCOUNT<=1,涨停,24),COLORRED;cxh12:=OPEN>REF(CLOSE,1) AND CLOSE>OPEN AND LOW>REF(CLOSE,1);STICKLINE(cxh12,OPEN,OPEN+(CLOSE-OPEN)/3,(-1),0),COLORWHITE;cxh13:=OPEN>REF(CLOSE,1) AND CLOSE>OPEN AND LOW<=REF(CLOSE,1);STICKLINE(cxh13,OPEN,OPEN+(CLOSE-OPEN)/3,(-1),0),COLORD32CC7;STICKLINE(CROSS(MA20,MA60),OPEN,CLOSE,(-1),0),COLORYELLOW;STICKLINE(CROSS(MA60,MA20),OPEN,CLOSE,(-1),0),COLORGREEN;STICKLINE(CROSS(MA5,MA20),IF(CLOSE>OPEN,OPEN,CLOSE)+(IF(CLOSE>OPEN,CLOSE,OPEN)-IF(CLOSE>OPEN,OPEN,CLOSE))*1/5,IF(CLOSE>OPEN,OPEN,CLOSE)+(IF(CLOSE>OPEN,CLOSE,OPEN)-IF(CLOSE>OPEN,OPEN,CLOSE))*2/3,(-1),0),COLORRED;STICKLINE(CROSS(MA20,MA5),IF(CLOSE>OPEN,OPEN,CLOSE)+(IF(CLOSE>OPEN,CLOSE,OPEN)-IF(CLOSE>OPEN,OPEN,CLOSE))*1/5,IF(CLOSE>OPEN,OPEN,CLOSE)+(IF(CLOSE>OPEN,CLOSE,OPEN)-IF(CLOSE>OPEN,OPEN,CLOSE))*2/3,(-1),0),COLOR008000;cxh14:=HHV(VOL,100)=VOL;cxh15:=BARSLAST(cxh14) AND CURRBARSCOUNT<240;DRAWLINE(REFX(cxh15=0,0),IF(CLOSE>OPEN,CLOSE,OPEN),REF(REFX(cxh15=0,0),1),REF(IF(CLOSE>OPEN,CLOSE,OPEN),1),1),COLORRED;cxh16:=IF(CURRBARSCOUNT>1,VOL,(-1));cxh17:=BARSLAST(cxh16=HHV(cxh16,20));cxh18:=IF(REF(CLOSE,cxh17)>REF(OPEN,cxh17),REF(CLOSE,cxh17),REF(OPEN,cxh17));DRAWLINE(CURRBARSCOUNT=CONST(cxh17)+1,cxh18,ISLASTBAR,REF(cxh18,cxh17),0),COLORWHITE;{程序化久久公式网}cxh19:=90;cxh20:=3;cxh21:=REF(LLV(LOW,cxh19),cxh20);cxh22:=REFDATE(cxh21,DATE);cxh23:=cxh22=LOW AND (CLOSE-LOW>0-CLOSE OR OPEN-LOW>CLOSE-OPEN);DRAWTEXT(cxh23,HIGH*1.015,30),COLORBLUE;cxh24:=EMA(CLOSE,5);cxh25:=EMA(CLOSE,10);cxh26:=EMA(CLOSE,21);cxh27:=EMA(CLOSE,34);cxh28:=EMA(CLOSE,55);cxh29:=EMA(CLOSE,89);cxh30:=cxh24>cxh25 AND cxh25>cxh26;cxh31:=cxh24>REF(cxh24,1) AND cxh25>REF(cxh25,1) AND cxh26>REF(cxh26,1);cxh32:=CLOSE>MAX(cxh24,cxh29) AND cxh30 AND cxh31;cxh33:=VOL/MA(VOL,5)>1.47 AND KDJ.K>REF(KDJ.K,1);DRAWICON(cxh32 AND cxh33,LOW,7);cxh34:=EMA(VOL,5);cxh35:=EMA(VOL,20);cxh36:=CROSS(cxh34,cxh35) AND CLOSE>REF(CLOSE,1) AND EMA(CLOSE,20)>REF(EMA(CLOSE,20),1);DRAWTEXT(cxh36,HIGH*1.01,21),COLORBLUE;{程序化交易 www.cxh99.com }
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容