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

获利卖出 [二](通达信公式 副图指标公式 公式、源码 测试图)[通达信公式]

相关标签:

 

cxh1:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));cxh2:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));cxh3:=SUM(cxh1,5);cxh4:=SUM(cxh2,5);cxh5:=IF(cxh3>cxh4,(cxh3-cxh4)/cxh3,IF(cxh3=cxh4,0,(cxh3-cxh4)/cxh4));cxh6:=MA(cxh5,5);cxh8:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));cxh9:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));cxhA:=SUM(cxh8,3);cxhB:=SUM(cxh9,3);cxhC:=IF(cxhA>cxhB,(cxhA-cxhB)/cxhA,IF(cxhA=cxhB,0,(cxhA-cxhB)/cxhB));cxhD:=MA(cxhC,3);风险指数: BARSLAST(EMA(CLOSE,5)<REF(EMA(CLOSE,5),1)), COLORGREEN;cxhE:=HHV(CLOSE,2);cxhF:=BARSLAST(cxhE<REF(cxhE,2));cxh10:=IF(cxhF>=1,LLV(cxhE,cxhF),LOW);cxh11:=cxh10+cxh10*cxhF*0.5/100;cxh12:=IF(cxh11<REF(cxh11,1),MA(LOW,3),cxh11);cxh13:=cxh10+cxh10*(cxhF-1)*1.618/100;控盘:= COUNT(EMA(CLOSE,5)>REF(EMA(CLOSE,5),1),5),COLORYELLOW;cxh14:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));cxh15:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));cxh16:=SUM(cxh8,3);cxh17:=SUM(cxh9,3);cxh18:=IF(cxhA>cxhB,(cxhA-cxhB)/cxhA,IF(cxhA=cxhB,0,(cxhA-cxhB)/cxhB));cxh19:=MA(cxhC,3);买入或持股:= (控盘>0,风险指数,0,2,0), COLORRED;STICKLINE(控盘>0,风险指数,0,2,0), COLORRED;cxh1A:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));cxh1B:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));cxh1C:=SUM(cxh8,3);cxh1D:=SUM(cxh9,3);cxh1E:=IF(cxhA>cxhB,(cxhA-cxhB)/cxhA,IF(cxhA=cxhB,0,(cxhA-cxhB)/cxhB));cxh1F:=MA(cxhC,3);获利卖出:= (控盘>0,风险指数,控盘,2,1), COLORGREEN;STICKLINE(控盘>0,风险指数,控盘,2,1), COLORF0F000;cxh20:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));cxh21:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));cxh22:=SUM(cxh8,3);cxh23:=SUM(cxh9,3);cxh24:=IF(cxhA>cxhB,(cxhA-cxhB)/cxhA,IF(cxhA=cxhB,0,(cxhA-cxhB)/cxhB));cxh25:=MA(cxhC,3);观望: STICKLINE(控盘=0 AND 风险指数=0,0,1,4,1), COLORBLUE;cxh26:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));cxh27:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));cxh28:=SUM(cxh8,3);cxh29:=SUM(cxh9,3);cxh2A:=IF(cxhA>cxhB,(cxhA-cxhB)/cxhA,IF(cxhA=cxhB,0,(cxhA-cxhB)/cxhB));cxh2B:=MA(cxhC,3);植被:= (控盘<风险指数,风险指数,控盘,1,0), COLOR00FF00;STICKLINE(控盘<风险指数,风险指数,控盘,1,0), COLOR00FF00;cxh2C:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));cxh2D:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));cxh2E:=SUM(cxh8,3);cxh2F:=SUM(cxh9,3);cxh30:=IF(cxhA>cxhB,(cxhA-cxhB)/cxhA,IF(cxhA=cxhB,0,(cxhA-cxhB)/cxhB));cxh31:=MA(cxhC,3);cxh32:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*10;K:= SMA(SMA(cxh32,2,1),2,1),COLOR00FF00 , ;D:= SMA(SMA(SMA(cxh32,2,1),2,1),3,1), COLORYELLOW;J:= (3*SMA(SMA(cxh32,2,1),2,1)-2*SMA(SMA(SMA(cxh32,2,1),2,1),3,1)), COLORF00FF0;cxh33:=IF(OPEN<=REF(OPEN,1),0,MAX(HIGH-OPEN,OPEN-REF(OPEN,1)));cxh34:=IF(OPEN>=REF(OPEN,1),0,MAX(OPEN-LOW,OPEN-REF(OPEN,1)));cxh35:=SUM(cxh8,3);cxh36:=SUM(cxh9,3);cxh37:=IF(cxhA>cxhB,(cxhA-cxhB)/cxhA,IF(cxhA=cxhB,0,(cxhA-cxhB)/cxhB));cxh38:=MA(cxhC,3);STICKLINE(REF(控盘,1)=0 AND 控盘>0,0,-1,2,0), COLORRED;

 

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

 

 

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

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

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

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

 


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

相关文章

    没有相关内容