机构操盘趋势主图指标公式源码[通达信公式]
当多空指数上穿或下穿其上下轨时,可能预示着市场趋势即将发生转变;
当MACD类似指标出现金叉或死叉时(即短期均线上穿或下穿长期均线),可能预示着市场即将上涨或下跌;
当买卖信号点出现时(如红持、粉变等),可以根据自己对市场走势和风险承受能力的判断进行相应操作;
cxh1:=EMA(C,7);cxh2:=EMA(C,13);L3:EMA(C,18);cxh3:=EMA(C,34);M1:EMA(EMA(EMA(L3,1),1),1),COLORGREEN,LINETHICK3;IF(M1>=REF(M1,1),M1,DRAWNULL),COLORRED,LINETHICK3;cxh4:=MAX(cxh1,cxh2);cxh5:=MAX(cxh4,L3);cxh6:=MAX(cxh5,cxh3);cxh7:=MIN(cxh1,cxh2);cxh8:=MIN(cxh7,L3);cxh9:=MIN(cxh8,cxh3);cxh10:=EMA(C,12)-EMA(C,26);cxh11:=MA(cxh10,9);cxh12:=IF(CROSS(cxh10,cxh11),1,0);cxh13:=IF(REF(cxh10,1)<REF(cxh11,1) AND REF(cxh10,2)<REF(cxh11,2) AND REF(cxh10,3)<REF(cxh11,3) AND REF(cxh10,4)<REF(cxh11,4) AND REF(cxh10,5)<REF(cxh11,5) AND REF(cxh10,6)<REF(cxh11,6) AND REF(cxh10,7)<REF(cxh11,7) AND REF(cxh10,8)<REF(cxh11,8) AND REF(cxh10,8)<REF(cxh11,8) AND REF(cxh10,9)<REF(cxh11,9) AND REF(cxh10,10)<REF(cxh11,10),1,0);cxh14:=IF(REF(cxh10,1)>0 AND REF(cxh10,2)>0 AND REF(cxh10,3)>0 AND REF(cxh10,4)>0 AND REF(cxh10,5)>0 AND REF(cxh10,6)>0 AND REF(cxh10,7)>0 AND REF(cxh10,8)>0 AND REF(cxh10,9)>0 AND REF(cxh10,10)>0,1,0);cxh15:=IF((REF(cxh6,1)-REF(cxh9,1))/((REF(C,1)+REF(O,1))/2)<0.1 AND (REF(cxh6,2)-REF(cxh9,2))/((REF(C,2)+REF(O,2))/2)<0.1 AND (REF(cxh6,3)-REF(cxh9,3))/((REF(C,3)+REF(O,3))/2)<0.1,1,0);cxh16:=IF(cxh12+cxh13+cxh14+cxh15=4,1,0);cxh17:=IF(DATE<=1991230,1,0);cxh18:=cxh16=1 AND cxh17=1;cxh19:=IF(FINANCE(7)<2000000000,1,0);DRAWICON(C>O AND C>cxh6 AND L<cxh9 AND DATE<=1991230 AND FILTER(C>O AND C>cxh6 AND L<cxh9 AND DATE<=1991230,20),L,1),COLORWHITE;DRAWICON(cxh16=1 AND cxh17=1,L,1);DRAWICON(C>O AND H>cxh6 AND L<cxh9 AND cxh10>cxh11 AND DATE<=1991230,L,1);DRAWICON(C!=O AND C>O AND REF(C,1)>REF(O,1) AND O>REF(C,1) AND C>REF(H,1) AND C>REF(H,2) AND C>REF(H,3) AND C>REF(H,4) AND C>REF(H,5) AND (C+O)*0.5>REF(H,1) AND O-REF(C,1)>0.3*(REF(H,1)-REF(L,1)) AND FILTER(C!=O AND O>REF(C,1) AND C>REF(H,1) AND C>REF(H,2) AND C>REF(H,3) AND C>REF(H,4) AND C>REF(H,5) AND (C+O)*0.5>REF(H,1) AND O-REF(C,1)>0.3*(REF(H,1)-REF(L,1)),10) AND DATE<=1991230,O,7);cxh20:=BACKSET(REF(C,7)=HHV(C,13),8);cxh21:=CROSS(cxh20,0.9);cxh22:=BACKSET(REF(C,7)=LLV(C,13),8);cxh23:=CROSS(cxh22,0.9);压力:REF(C,BARSLAST(cxh21)),POINTDOT,COLORWHITE;STICKLINE(C,REF(C,BARSLAST(cxh21)),REF(C,BARSLAST(cxh21)),5,0),COLORWHITE;支撑:REF(C,BARSLAST(cxh23)),POINTDOT,COLORYELLOW;STICKLINE(C,REF(C,BARSLAST(cxh23)),REF(C,BARSLAST(cxh23)),5,0),COLORYELLOW;DRAWICON(C>O AND C>压力 AND L<压力,L,1);
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容