主力进场指标公式源码[同花顺公式]
相关标签: 炒股最好用的6个指标 、 主力进场指标公式源码 、 机构资金趋势指标公式 、 主力资金买卖指标公式 、 超级资金指标公式源码 、 机构资金线指标公式 、 真正的多空资金指标 、 通达信主图指标公式 、 通达信主力控盘指标公式 、 通达信资金趋势指标公式 、 通达信机构买入卖出指标公式 、 通达信机构资金趋势指标 、
买线:=ZIG(3,10);
卖线:=MA(买线,2);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
DRAWTEXT(BU,L*0.95,'机构进场'),coloryellow;
DRAWTEXT(SEL,H*1.05,'机构清仓'),colorblue;
STICKLINE(买线>=卖线,L,H,0,0),colorred;
STICKLINE(买线>=卖线,C,O,2,0),colorred;
STICKLINE(买线<卖线,C,O,2,0),COLORGREEN;//http://www.cxh99.com
STICKLINE(买线<卖线,L,H,0,0),COLORGREEN;//http://www.cxh99.com
STICKLINE(CROSS(买线,卖线),O,C,2,0),coloryellow;
STICKLINE(CROSS(卖线,买线),O,C,2,0),colorblue;
DRAWICON((ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3)),L*0.99,1);
DRAWICON((ZIG(3,5)=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)>=REF(ZIG(3,5),3)),H,2);
//{2.买卖}//www.cxh99.com
cxhC:=(ZIG(3,5)>REF(ZIG(3,5),1)) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND(REF(ZIG(3,5),2)<=REF(ZIG(3,5),3));
cxhD:=(ZIG(3,5)=REF(ZIG(3,5),2)) AND (REF(ZIG(3,5),2)>=REF(ZIG(3,5),3));
DRAWTEXT((cxhC=1),L,'买'),coloryellow;
DRAWTEXT((cxhD=1),H,'卖'),colorblue;
//{3.头部}
V10:=PEAKBARS(3,15,1)<10;
V12:=IF(V10=1,50,0);
头部:= IF(V12=50,100,0);
DRAWTEXT(头部>REF(头部,1),H*1.02,'减仓'),colorwhite,LINETHICK1;
//{4.抄底}
V9:=TROUGHBARS(3,15,1)<10;
V11:=IF(V9=1,50,0);
DRAWTEXT(V11>REF(V11,1),L*0.95,'抄底'),colormagenta;
//{5.短线}
cxhE:=MA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20;
cxhF:=100-3*SMA((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA
((C-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
cxh10:=100-3*SMA((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+2*SMA(SMA
((O-LLV(L,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1);
cxh11:=cxhF<REF(cxh10,1) AND V>REF(V,1) AND C>REF(C,1);
DRAWTEXT(cxh11 AND COUNT(cxh11,30)=1,L*0.95,'B'),colorlimagenta;
cxh12:=(H+L+C)/3;
cxh13:=(cxh12-MA(cxh12,14))/(0.015*AVEDEV(cxh12,14));
cxh14:=(cxh12-MA(cxh12,70))/(0.015*AVEDEV(cxh12,70));
cxh15:=IF(cxh13>=150 AND cxh13<200 AND cxh14>=150 AND cxh14<200,10,0);
cxh16:=IF(cxh13<=-150 AND cxh13>-200 AND cxh14<=-150 AND cxh14>-200,-10,cxh15);
cxh17:=(C-MA(C,13))/MA(C,13)*100;
cxh18:=100-ABS(cxh17);
cxh19:=IF(cxh18<90,cxh18,100);
cxh1A:=IF(cxhE>0,cxhE,0);
cxh1B:=IF(cxh14>=200 AND cxh13>=150,15,IF(cxh14<=-200 AND cxh13<=-150,-15,cxh16))+60;
cxh1C:=cxh1A>48 AND cxh1B>60 AND cxh19<100;
DRAWTEXT(cxh1C AND COUNT(cxh1C,30)=1,H*1.05,'S'),COLORGREEN;//http://www.cxh99.com
//{6.基金部分}
VRE2:=REF(L,1)*0.9;
VRF2:=L*0.9;
VR10:=(VRF2*V+VRE2*(CAPITAL-V))/CAPITAL;
VR11:=EMA(VR10,30);
VR12:=C-REF(C,1);
VR13:=MAX(VR12,0);
VR14:=ABS(VR12);
VR15:=SMA(VR13,7,1)/SMA(VR14,7,1)*100;
VR16:=SMA(VR13,13,1)/SMA(VR14,13,1)*100;
VR17:=BARSCOUNT(C);
VR18:=SMA(MAX(VR12,0),6,1)/SMA(ABS(VR12),6,1)*100;
VR19:=(-200)*(HHV(H,60)-C)/(HHV(H,60)-LLV(L,60))+100;
VR1A:=(C-LLV(L,15))/(HHV(H,15)-LLV(L,15))*100;
VR1B:=SMA((SMA(VR1A,4,1)-50)*2,3,1);
VR1C:=(INDEXC-LLV(INDEXL,14))/(HHV(INDEXH,14)-LLV(INDEXL,14))*100;
VR1D:=SMA(VR1C,4,1);
VR1E:=SMA(VR1D,3,1);
VR1F:=(HHV(H,30)-C)/C*100;
VR20:=VR18<=25 AND VR19<-95 AND VR1F>20 AND VR1B<-30 AND VR1E<30 AND VR11-C>=-0.25 AND VR15<22 AND VR16<28 AND VR17>50;
VR21:=(H+L+C)/3;
VR22:=(VR21-MA(VR21,14))/(0.015*AVEDEV(VR21,14));
VR23:=(VR21-MA(VR21,70))/(0.015*AVEDEV(VR21,70));
VR24:=VR22>=150 AND VR22<200 AND VR23>=150 AND VR23<200;
DRAWTEXT(VR20 AND COUNT(VR20,1)=1,H*0.99,'建仓'),colormagenta;
DRAWTEXT(VR24 AND COUNT(VR24,1)=1,L*1.1,'清仓'),colorblue;
公式导入教程: 【通达信公式源码导入方法教程】 【同花顺公式源码导入方法教程】 【大智慧新一代公式源码导入方法教程】
有思路,想编写各种指标公式,交易模型,选股公式,还原公式的朋友
可联系技术人员 QQ: 262069696 或微信:cxhjy888 进行 有偿收费 编写!(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
(注:由于人数限制,QQ或微信请选择方便的一个联系我们就行,加好友时请简单备注下您的需求,否则无法通过。谢谢您!)
相关文章
-
没有相关内容